Open g3d opened 12 years ago
What are the contents of that /usr/local/share/icu/4.8.1.1/
directory?
Are you sure that's the location where the headers and libraries are?
It`s the target directory for the icu port.
[root@freebsd /usr/local/share/icu/4.8.1.1]# ls -Rla total 20 drwxr-xr-x 3 root wheel 512 Feb 23 03:08 . drwxr-xr-x 3 root wheel 512 Feb 23 03:08 .. drwxr-xr-x 2 root wheel 512 Feb 23 03:08 config -r--r--r-- 1 root wheel 1981 Feb 23 03:08 license.html -r-xr-xr-x 1 root wheel 935 Feb 23 03:08 mkinstalldirs ./config: total 12 drwxr-xr-x 2 root wheel 512 Feb 23 03:08 . drwxr-xr-x 3 root wheel 512 Feb 23 03:08 .. -r--r--r-- 1 root wheel 1824 Feb 23 03:08 mh-bsd-gcc
Where are the libraries and headers?
how can i install it in freebsd?
Assuming you installed icu from a freebsd package, the library could be in /usr/lib
or even /usr/local/lib
- have you tried installing the gem without specifying the --with-icu-dir
option?
yes, of course. i find that option in error report from installing the gem without specifying the --with-icu-dir
option
Hi, I was experiencig the same problem. After many hours, I finally found a solution for FreeBSD:
gem install charlock_holmes -- --with-icu-dir=/usr/lib --with-opt-include=/usr/local/include/
you have this lib "libicu-dev" ??
Got it working on freeBSD with this patch https://github.com/brianmario/charlock_holmes/pull/20/files
and installing icu (I installed it from source, not from ports, may work also) and setting these options
or
it works as expected under fbsd after installing devel/icu from ports
Thanks a lot, @jirihelmich! You saved my day! haha! I was about 3-4 hours looking for a solution for this issue! :+1:
@hmschreiner Glad to help!
@herrBeesch Your solution works for me with FreeBSD 10.1. Thanks!
I had to do a bit extra to get this working with GitLab's upgrade process:
sudo -u git -H bundle config build.charlock_holmes --with-icu-dir=/usr/lib --with-opt-include=/usr/local/include/
sudo -u git -H bundle install -j4
If you don't set the config the flags needed will never be used with bundle install
.
Tried to install gem with defined icu path on freebsd 9
System information: