Closed arrowtype closed 3 years ago
I tried configuring those flags in so many ways but none of them worked. Eventually it helped to just temporarily prepend PATH according to the information provided by brew info icu4c
(attached at the end):
PATH="/usr/local/opt/icu4c/sbin:/usr/local/opt/icu4c/bin:$PATH"
Then you can simply do the following without worrying about the flags at all:
pip install pyicu
This is on macOS 10.15.3 (19D76) and inside a venv.
An excerpt of the information provided by brew info icu4c
:
==> Caveats
icu4c is keg-only, which means it was not symlinked into /usr/local,
because macOS provides libicucore.dylib (but nothing else).
If you need to have icu4c first in your PATH run:
echo 'export PATH="/usr/local/opt/icu4c/bin:$PATH"' >> ~/.zshrc
echo 'export PATH="/usr/local/opt/icu4c/sbin:$PATH"' >> ~/.zshrc
For compilers to find icu4c you may need to set:
export LDFLAGS="-L/usr/local/opt/icu4c/lib"
export CPPFLAGS="-I/usr/local/opt/icu4c/include"
For pkg-config to find icu4c you may need to set:
export PKG_CONFIG_PATH="/usr/local/opt/icu4c/lib/pkgconfig"
I've followed these instructions and it worked for me: https://github.com/googlefonts/pyfontaine/issues/109#issuecomment-604872347
I tried configuring those flags in so many ways but none of them worked. Eventually it helped to just temporarily prepend PATH according to the information provided by
brew info icu4c
(attached at the end):
PATH="/usr/local/opt/icu4c/sbin:/usr/local/opt/icu4c/bin:$PATH"
Then you can simply do the following without worrying about the flags at all:
pip install pyicu
This is on macOS 10.15.3 (19D76) and inside a venv.
An excerpt of the information provided by
brew info icu4c
:==> Caveats icu4c is keg-only, which means it was not symlinked into /usr/local, because macOS provides libicucore.dylib (but nothing else). If you need to have icu4c first in your PATH run: echo 'export PATH="/usr/local/opt/icu4c/bin:$PATH"' >> ~/.zshrc echo 'export PATH="/usr/local/opt/icu4c/sbin:$PATH"' >> ~/.zshrc For compilers to find icu4c you may need to set: export LDFLAGS="-L/usr/local/opt/icu4c/lib" export CPPFLAGS="-I/usr/local/opt/icu4c/include" For pkg-config to find icu4c you may need to set: export PKG_CONFIG_PATH="/usr/local/opt/icu4c/lib/pkgconfig"
Also worked for me on macOS.
export PKG_CONFIG_PATH="/opt/homebrew/opt/icu4c/lib/pkgconfig"
fixed the issue for me. This should be in the main README.
I'm having a lot of trouble installing this, and I'm not quite sure why. I've talked to a couple of others who had no issues.
I've followed the README instructions, but when I get to setting flags and pip installing, I get the following set of errors:
I tried following the advice given by adding
ICU_VERSION=64.2
to my command, and ended up with another error that is a little less clear:A
brew install pkg-config
(and abrew reinstall pkg-config
) did not change the above error message.When I try adding
-std=c++11
to the command, it fails ā I'm assuming that the message is actually intending to say that I should maybe also install -std=c++11? If so, how should I do so? It's hard to find a direct answer via google.Am I going in the right direction on this, or should I try something else? Thanks for any advice!