Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue installing on OS X Mavericks #308

Closed
austinhyde opened this issue Jan 18, 2015 · 2 comments
Closed

Issue installing on OS X Mavericks #308

austinhyde opened this issue Jan 18, 2015 · 2 comments

Comments

@austinhyde
Copy link

I'm not sure if this occurs on other versions of OS X, but at least on Mavericks, I got the following error while installing:

$ npm install irc
-
> [email protected] install [redacted]/node_modules/irc/node_modules/node-icu-charset-detector
> node-gyp rebuild

xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

  CXX(target) Release/obj.target/node-icu-charset-detector/node-icu-charset-detector.o
../node-icu-charset-detector.cpp:5:10: fatal error: 'unicode/ucsdet.h' file not found
#include <unicode/ucsdet.h>
         ^
1 error generated.
make: *** [Release/obj.target/node-icu-charset-detector/node-icu-charset-detector.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack     at ChildProcess.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:810:12)
gyp ERR! System Darwin 14.0.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd [redacted]/node_modules/irc/node_modules/node-icu-charset-detector
gyp ERR! node -v v0.10.31
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok 

> [email protected] install [redacted]/node_modules/irc/node_modules/iconv
> node-gyp rebuild

xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

  CC(target) Release/obj.target/libiconv/deps/libiconv/lib/iconv.o
  LIBTOOL-STATIC Release/iconv.a
  CXX(target) Release/obj.target/iconv/src/binding.o
  SOLINK_MODULE(target) Release/iconv.node
  SOLINK_MODULE(target) Release/iconv.node: Finished
npm WARN optional dep failed, continuing [email protected]
[email protected] node_modules/irc
├── [email protected]
├── [email protected] ([email protected])
└── [email protected] ([email protected])

I was able to resolve these errors by

  • Installing the full XCode app (not just the command line tools), and running it once to accept the EULA
  • brew install icu4c
  • ln -s /usr/local/Cellar/icu4c/54.1/include/* /usr/local/include/
  • npm install irc again

Someone familiar with the involved tools/dependencies should verify this is the correct solution, and the install documentation should be updated.

@ghost
Copy link

ghost commented Jan 18, 2015

It actually installed, as you can see (the [email protected] node_modules/irc bit means it installed). The README specifies that there are optional dependencies that should be installed.

@ghost ghost closed this as completed Jan 18, 2015
@ghost
Copy link

ghost commented Jan 19, 2015

To be clear, iconv and node-icu-charset-detector are optional dependencies. This is specified in the README, and I've made it clearer.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant