how do i install libicu-dev on mac. This is the instruction recommended on the documentation
sudo apt-get install python-numpy libicu-dev
http://polyglot.readthedocs.org/en/latest/Installation.html
I am using anaconda but it seems to always throw up an
In file included from _icu.cpp:27:
    ./common.h:86:10: fatal error: 'unicode/utypes.h' file not found
    #include <unicode/utypes.h>
error
I just got PyICU to install on OSX, after it was failing due to that same error. Here is what I recommend:
brew install icu4c  # Install the library; may be already installedls -l /usr/local/opt/icu4c/include/
brew remove icu4cbrew install icu4cpip install polyglot
CFLAGS=-I/usr/local/opt/icu4c/include LDFLAGS=-L/usr/local/opt/icu4c/lib pip install polyglot
EDIT: There have been further changes. My current process for installing icu:
brew install icu4cbrew link icu4c --forceICU_VERSION=<BREW_ICU_VERSION> CFLAGS=-I/usr/local/opt/icu4c/include LDFLAGS=-L/usr/local/opt/icu4c/lib pip install pyicubrew install icu4c
brew link icu4c --force
https://github.com/imojiengineering/node-icu-tokenizer
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With