Installation Instructions

DEFAULT_LIBS = -lCstd -lCrun -lm -lc
  1. Ensure that system environment variable PATH includes the location of all the compilers mentioned above.

  2. Download the source code of ICU version 4.2 for C from http://site.icu-project.org/download

  3. Add the following line in the configuration file source/config/mh-solaris to include the appropriate C++ runtime libraries:

  4. At the shell prompt, execute the following commands:

    gunzip -d < icu4c-4_2_1-src.tgz | tar -xf -
    cd icu/source/
    chmod +x runConfigureICU configure install-sh
    ./configure --with-library-bits=64 --enable-threads=no LDFLAGS="-lCstd -lCrun"
    gmake
    gmake check
    gmake install
  5. Set the environment variable LD_LIBRARY_PATH to point to the location of ICU. Solaris uses the environment variable LD_LIBRARY_PATH to search for dynamically linked libraries to be loaded.

ICU is now installed in the /usr/local directory.

[Note]

By default, ICU is installed in the /usr/local directory. To to install ICU in a different directory, use --prefix=<install_path> with the runConfigure command.