mooz / node-icu-charset-detector

A simple binding of ICU character set detection for Node.js
MIT License
86 stars 22 forks source link

Problem compiling for osx #5

Closed hrajchert closed 11 years ago

hrajchert commented 11 years ago

Ive installed icu4c using brew in osx, but when I try to install node-icu-charset-detector I get:

../node-icu-charset-detector.cpp:5:10: fatal error: 'unicode/ucsdet.h' file not found

syohex commented 11 years ago

@hrajchert I've installed icu4c using brew and I successed to install node-icu-charset-detector. And I can find unicode/ucsdet.h at /usr/local/include/unicode/ucsdet.h. Did you do brew link icu4k after installing icu4c ? I think symbolic links of header files are not created if you can't find header file at there.

hrajchert commented 11 years ago

I didnt know there was such an option, it worked great! Thanks!

yamsellem commented 8 years ago

A little note here (because I lost half an hour on a @syohex typo ;-).

brew install icu4c
brew link icu4c

Seems obvious, right, but copy pasting "icu4k" without checking made me lost a lot of time.

syohex commented 8 years ago

Ah, sorry.

yamsellem commented 8 years ago

There's absolutely no problem: that was my fault ;-). @syohex you clearly fix the issue, so thanks again ;-).