Error: no Xcode is selected #82

Closed
lwille opened this Issue Aug 25, 2012 · 0 comments

Projects

None yet

2 participants

@lwille
lwille commented Aug 25, 2012

I haven't installed Xcode on my dev machine, but I installed the Command Line Tools to be able to use Homebrew. Homebrew is working fine, now n is throwing a strange error when trying to configure node:

$ n 0.8.7
######################################################################## 100,0%
{ 'target_defaults': { 'cflags': [],
                       'default_configuration': 'Release',
                       'defines': [],
                       'include_dirs': [],
                       'libraries': []},
  'variables': { 'clang': 1,
                 'host_arch': 'x64',
                 'node_install_npm': 'true',
                 'node_install_waf': 'true',
                 'node_prefix': '/usr/local/n/versions/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
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
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/n/versions/0.8.7/include/node/ares.h
installing /usr/local/n/versions/0.8.7/include/node/ares_version.h
installing /usr/local/n/versions/0.8.7/include/node/uv.h
installing /usr/local/n/versions/0.8.7/include/node/v8-debug.h
installing /usr/local/n/versions/0.8.7/include/node/v8-preparser.h
installing /usr/local/n/versions/0.8.7/include/node/v8-profiler.h
installing /usr/local/n/versions/0.8.7/include/node/v8-testing.h
installing /usr/local/n/versions/0.8.7/include/node/v8.h
installing /usr/local/n/versions/0.8.7/include/node/v8stdint.h
installing /usr/local/n/versions/0.8.7/include/node/eio-emul.h
installing /usr/local/n/versions/0.8.7/include/node/ev-emul.h
installing /usr/local/n/versions/0.8.7/include/node/node.h
installing /usr/local/n/versions/0.8.7/include/node/node_buffer.h
installing /usr/local/n/versions/0.8.7/include/node/node_object_wrap.h
installing /usr/local/n/versions/0.8.7/include/node/node_version.h
installing /usr/local/n/versions/0.8.7/include/node/uv-private/eio.h
installing /usr/local/n/versions/0.8.7/include/node/uv-private/ev.h
installing /usr/local/n/versions/0.8.7/include/node/uv-private/ngx-queue.h
installing /usr/local/n/versions/0.8.7/include/node/uv-private/tree.h
installing /usr/local/n/versions/0.8.7/include/node/uv-private/uv-unix.h
installing /usr/local/n/versions/0.8.7/include/node/uv-private/uv-win.h
installing /usr/local/n/versions/0.8.7/share/man/man1/node.1
installing /usr/local/n/versions/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

Why aren't you using pkg files anyway?

@tj tj closed this Jan 18, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment