DEFAULT_LIBS = -lCstd -lCrun -lm -lc
Ensure that system environment variable PATH includes the location of all the compilers mentioned above.
Download the source code of ICU version 4.2 for C from http://site.icu-project.org/download
Add the following line in the configuration file source/config/mh-solaris to include the appropriate C++ runtime libraries:
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
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.
![]() | |
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. |