Skip to content

Instantly share code, notes, and snippets.

@dcardosods
Created September 10, 2012 19:51
Show Gist options
  • Save dcardosods/3693401 to your computer and use it in GitHub Desktop.
Save dcardosods/3693401 to your computer and use it in GitHub Desktop.
Homebrew install node in MAC OS X 10.5.8 - The output from HOMEBREW_MAKE_JOBS=1 VERBOSE=1 brew install node
Node's build system, gyp, requires Python 2.6 or newer.
==> Downloading http://nodejs.org/dist/v0.8.8/node-v0.8.8.tar.gz
Already downloaded: /Library/Caches/Homebrew/node-0.8.8.tar.gz
/usr/bin/tar xf /Library/Caches/Homebrew/node-0.8.8.tar.gz
==> ./configure --prefix=/usr/local/Cellar/node/0.8.8
./configure --prefix=/usr/local/Cellar/node/0.8.8
{ 'target_defaults': { 'cflags': [],
'default_configuration': 'Release',
'defines': [],
'include_dirs': [],
'libraries': []},
'variables': { 'clang': 0,
'gcc_version': 42,
'host_arch': 'ia32',
'node_install_npm': 'true',
'node_install_waf': 'true',
'node_prefix': '/usr/local/Cellar/node/0.8.8',
'node_shared_openssl': 'false',
'node_shared_v8': 'false',
'node_shared_zlib': 'false',
'node_use_dtrace': 'false',
'node_use_etw': 'false',
'node_use_openssl': 'true',
'target_arch': 'ia32',
'v8_no_strict_aliasing': 1,
'v8_use_snapshot': 'true'}}
creating ./config.gypi
creating ./config.mk
==> make install
make install
make -C out BUILDTYPE=Release V=1
/usr/bin/gcc-4.2 '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-D_DARWIN_USE_64_BIT_INODE=1' '-DHTTP_PARSER_STRICT=0' '-DNDEBUG' -I../deps/http_parser -Os -gdwarf-2 -mmacosx-version-min=10.5 -arch i386 -Wall -Wendif-labels -W -Wno-unused-parameter -fno-strict-aliasing -MMD -MF /private/tmp/brew-node-0.8.8-Zvbj/node-v0.8.8/out/Release/.deps//private/tmp/brew-node-0.8.8-Zvbj/node-v0.8.8/out/Release/obj.target/http_parser/deps/http_parser/http_parser.o.d.raw -Os -w -pipe -march=core2 -msse4.1 -mmacosx-version-min=10.5 -c -o /private/tmp/brew-node-0.8.8-Zvbj/node-v0.8.8/out/Release/obj.target/http_parser/deps/http_parser/http_parser.o ../deps/http_parser/http_parser.c
rm -f /private/tmp/brew-node-0.8.8-Zvbj/node-v0.8.8/out/Release/libhttp_parser.a && ./gyp-mac-tool filter-libtool libtool -static -o /private/tmp/brew-node-0.8.8-Zvbj/node-v0.8.8/out/Release/libhttp_parser.a /private/tmp/brew-node-0.8.8-Zvbj/node-v0.8.8/out/Release/obj.target/http_parser/deps/http_parser/http_parser.o
File "./gyp-mac-tool", line 159
fd = os.open(lockfile, os.O_RDONLY|os.O_NOCTTY|os.O_CREAT, 0o666)
^
SyntaxError: invalid syntax
make[1]: *** [/private/tmp/brew-node-0.8.8-Zvbj/node-v0.8.8/out/Release/libhttp_parser.a] Error 1
make: *** [node] Error 2
==> Exit Status: 2
https://github.com/mxcl/master/blob/master/Library/Formula/node.rb#L73
==> Build Environment
HOMEBREW_VERSION: 0.9.3
HEAD: db74b9b4776aced4f4ac59076eebe10a98768f09
CPU: dual-core 64-bit penryn
OS X: 10.5.8-i386
Xcode: 3.1.4
X11: 2.1.6 in /usr/X11
CC: /usr/bin/gcc-4.2
CXX: /usr/bin/g++-4.2
LD: /usr/bin/gcc-4.2
CFLAGS: -Os -w -pipe -march=core2 -msse4.1 -mmacosx-version-min=10.5
CXXFLAGS: -Os -w -pipe -march=core2 -msse4.1 -mmacosx-version-min=10.5
CPPFLAGS: -I/usr/local/opt/openssl/include
LDFLAGS: -L/usr/local/opt/openssl/lib -L/usr/local/lib
MAKEFLAGS: -j1
CMAKE_PREFIX_PATH: /usr/local/opt/openssl
MACOSX_DEPLOYMENT_TARGET: 10.5
PKG_CONFIG_PATH: /usr/local/opt/openssl/lib/pkgconfig
HOMEBREW_MAKE_JOBS: 1
ACLOCAL_PATH: /usr/local/share/aclocal
OBJC: /usr/bin/gcc-4.2
PATH: /usr/local/opt/openssl/bin:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bappend_/local/bin:/usr/X11/bin:/usr/local/bin:/usr/local/Library/Contributions/cmds
Error: Failed executing: make install (node.rb:73)
This link will help resolve the above errors:
https://github.com/mxcl/homebrew/wiki/bug-fixing-checklist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment