4 Replies Latest reply: Jul 21, 2008 11:05 AM by billmcn
billmcn Level 1 Level 1
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)
Reply by Clea Rees on Jul 11, 2008 5:39 PM Helpful
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

All replies

  • billmcn Level 1 Level 1
    The --detect-prefix switch gives the same error message. The file libicuuc.dylib is not on my system.
  • billmcn Level 1 Level 1
    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.)
  • Clea Rees Level 4 Level 4
    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
  • billmcn Level 1 Level 1
    Here's a relevant link: http://aarone.org/2006/12/10/libicucore-on-mac-os-x/.

    Apparently the libraries ship in OS X, but the headers don't. This isn't clearly documented anywhere. So maybe the fink package is taking the right strategy.