Skip to content

Instantly share code, notes, and snippets.

@aviflax
Created August 22, 2012 20:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aviflax/3428919 to your computer and use it in GitHub Desktop.
Save aviflax/3428919 to your computer and use it in GitHub Desktop.
Problem upgrading Node
Running 10.8.0 and latest brew.
$ brew upgrade -v node 2>&1 | pbcopy
==> Upgrading node
==> Downloading http://nodejs.org/dist/v0.8.7/node-v0.8.7.tar.gz
Already downloaded: /Library/Caches/Homebrew/node-0.8.7.tar.gz
/usr/bin/tar xf /Library/Caches/Homebrew/node-0.8.7.tar.gz
==> ./configure --prefix=/usr/local/Cellar/node/0.8.7 --without-npm
./configure --prefix=/usr/local/Cellar/node/0.8.7 --without-npm
xcode-select: Error: No Xcode is selected. Use xcode-select -switch <path-to-xcode>, or see the xcode-select manpage (man xcode-select) for further information.
Traceback (most recent call last):
File "tools/gyp_node", line 58, in <module>
run_gyp(gyp_args)
File "tools/gyp_node", line 18, in run_gyp
rc = gyp.main(args)
File "./tools/gyp/pylib/gyp/__init__.py", line 480, in main
generator.GenerateOutput(flat_list, targets, data, params)
File "./tools/gyp/pylib/gyp/generator/make.py", line 2082, in GenerateOutput
part_of_all=qualified_target in needed_targets)
File "./tools/gyp/pylib/gyp/generator/make.py", line 764, in Write
self.Pchify))
File "./tools/gyp/pylib/gyp/generator/make.py", line 1137, in WriteSources
cflags = self.xcode_settings.GetCflags(configname)
File "./tools/gyp/pylib/gyp/xcode_emulation.py", line 259, in GetCflags
sdk_root = self._SdkPath()
File "./tools/gyp/pylib/gyp/xcode_emulation.py", line 248, in _SdkPath
return os.path.join(self._GetSdkBaseDir(), '%s.sdk' % sdk_root)
File "./tools/gyp/pylib/gyp/xcode_emulation.py", line 234, in _GetSdkBaseDir
raise Exception('Error %d running xcode-select' % job.returncode)
Exception: Error 2 running xcode-select
{ 'target_defaults': { 'cflags': [],
'default_configuration': 'Release',
'defines': [],
'include_dirs': [],
'libraries': []},
'variables': { 'clang': 1,
'host_arch': 'x64',
'node_install_npm': 'false',
'node_install_waf': 'true',
'node_prefix': '/usr/local/Cellar/node/0.8.7',
'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': 'x64',
'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
make[1]: Nothing to be done for `all'.
ln -fs out/Release/node node
python tools/install.py install
installing /usr/local/Cellar/node/0.8.7/include/node/ares.h
installing /usr/local/Cellar/node/0.8.7/include/node/ares_version.h
installing /usr/local/Cellar/node/0.8.7/include/node/uv.h
installing /usr/local/Cellar/node/0.8.7/include/node/v8-debug.h
installing /usr/local/Cellar/node/0.8.7/include/node/v8-preparser.h
installing /usr/local/Cellar/node/0.8.7/include/node/v8-profiler.h
installing /usr/local/Cellar/node/0.8.7/include/node/v8-testing.h
installing /usr/local/Cellar/node/0.8.7/include/node/v8.h
installing /usr/local/Cellar/node/0.8.7/include/node/v8stdint.h
installing /usr/local/Cellar/node/0.8.7/include/node/eio-emul.h
installing /usr/local/Cellar/node/0.8.7/include/node/ev-emul.h
installing /usr/local/Cellar/node/0.8.7/include/node/node.h
installing /usr/local/Cellar/node/0.8.7/include/node/node_buffer.h
installing /usr/local/Cellar/node/0.8.7/include/node/node_object_wrap.h
installing /usr/local/Cellar/node/0.8.7/include/node/node_version.h
installing /usr/local/Cellar/node/0.8.7/include/node/uv-private/eio.h
installing /usr/local/Cellar/node/0.8.7/include/node/uv-private/ev.h
installing /usr/local/Cellar/node/0.8.7/include/node/uv-private/ngx-queue.h
installing /usr/local/Cellar/node/0.8.7/include/node/uv-private/tree.h
installing /usr/local/Cellar/node/0.8.7/include/node/uv-private/uv-unix.h
installing /usr/local/Cellar/node/0.8.7/include/node/uv-private/uv-win.h
installing /usr/local/Cellar/node/0.8.7/share/man/man1/node.1
installing /usr/local/Cellar/node/0.8.7/bin/node
Traceback (most recent call last):
File "tools/install.py", line 225, in <module>
run(sys.argv[:])
File "tools/install.py", line 220, in run
if cmd == 'install': return files(install)
File "tools/install.py", line 195, in files
action(['out/Release/node'], 'bin/node')
File "tools/install.py", line 74, in install
def install(paths, dst): map(lambda path: try_copy(path, dst), paths)
File "tools/install.py", line 74, in <lambda>
def install(paths, dst): map(lambda path: try_copy(path, dst), paths)
File "tools/install.py", line 66, in try_copy
return shutil.copy2(source_path, target_path)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 127, in copy2
copyfile(src, dst)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 81, in copyfile
with open(src, 'rb') as fsrc:
IOError: [Errno 2] No such file or directory: 'out/Release/node'
make: *** [install] Error 1
==> Exit Status: 2
https://github.com/mxcl/master/blob/master/Library/Formula/node.rb#L28
==> Build Environment
HOMEBREW_VERSION: 0.9.2
HEAD: 60c05e3223161de849b3b9690337ae3d13c4f8dc
CPU: quad-core 64-bit ivybridge
OS X: 10.8-x86_64
Xcode: 4.4 (guessed)
CLT: 4.4.0.0.1.1249367152
X11: 2.7.2 in /opt/X11
CC: /usr/bin/clang
CXX: /usr/bin/clang++ => /usr/bin/clang
LD: /usr/bin/clang
CFLAGS: -Os -w -pipe -march=native -Qunused-arguments -mmacosx-version-min=10.8
CXXFLAGS: -Os -w -pipe -march=native -Qunused-arguments -mmacosx-version-min=10.8
CPPFLAGS: -isystem /usr/local/include
LDFLAGS: -L/usr/local/lib
MAKEFLAGS: -j4
MACOSX_DEPLOYMENT_TARGET: 10.8
PKG_CONFIG_PATH: /usr/local/Library/Homebrew/pkgconfig
OBJC: /usr/bin/clang
PATH: /Users/avi/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/Library/Contributions/cmds
Error: Failed executing: make install (node.rb:28)
These existing issues may help you:
https://github.com/mxcl/homebrew/issues/13053
https://github.com/mxcl/homebrew/issues/13282
Otherwise, this may help you fix or report the issue:
https://github.com/mxcl/homebrew/wiki/bug-fixing-checklist
ln -s ../Cellar/node/0.8.2/bin/node-waf node-waf
ln -s ../Cellar/node/0.8.2/bin/node node
ln -s ../Cellar/node/0.8.2/include/node node
ln -s ../../../Cellar/node/0.8.2/share/man/man1/node.1 node.1
mkpath /usr/local/lib/node
ln -s ../../Cellar/node/0.8.2/lib/node/wafadmin wafadmin
ln -s ../Cellar/node/0.8.2/lib/dtrace dtrace
ln -s ../../Cellar/node/0.8.2 node
$ brew doctor | pbcopy
Your system is raring to brew.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment