Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How do I install the International Components for Unicode (ICU) libraries?

I am trying to build a program with requires the ICU libraries and it's unclear to me how to install them.

The only ICU-related fink package I can see is libicu32-dev. I installed that but then afterwards when I run icu-config I get an error. For example:

$ icu-config --cppflags
### icu-config: Can't find /usr/lib/libicuuc.dylib - ICU prefix is wrong.
### Try the --prefix= or --exec-prefix= options
### or --detect-prefix
### icu-config: Exitting.

The fink description for libicu32-dev says it contains "Headers for Apple-supplied ICU libraries". So should these libraries already be on my OS X machine, or do I need to get them from somewhere else?

Mac Mini Duo 1.66 GHz, 2 GB (10.4.6); MacBook (10.4.8), Mac OS X (10.4.1)

Posted on Jul 11, 2008 1:21 PM

Reply
4 replies

Jul 11, 2008 1:30 PM in response to billmcn

The error message in the original post was garbled. It should read:

$ icu-config --detect-prefix
icu-config: Can't find /usr/lib/libicuuc.dylib - ICU prefix is wrong.
Try the --prefix= or --exec-prefix= options
or --detect-prefix
icu-config: Exitting.


(I tried editing the original message, but the editing facility on this site appears to be broken.)

Jul 11, 2008 5:39 PM in response to billmcn

Sounds like a fink bug to me. The package assumes you only need the headers and that the libraries are already installed - but they are not. You haven't lost them - I checked my machine for the library it looks for. Maybe the fink package should be specific to another version of OS X? Or something else went wrong?

I'd try asking the fink people about it as it looks like a port problem.

- cfr

How do I install the International Components for Unicode (ICU) libraries?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.