Compiling ICU

This appendix includes sample instructions to download ICU, configure it not to use multi-threading, and compile it for various platforms. Note that download sites, versions of compilers, and milli and micro releases of ICU may have changed ICU since the embedded dates when these instructions were tested making them out-of-date. Therefore, these instructions must be considered examples, not a cookbook.

Although GT.M uses ICU, ICU is not FIS software and FIS does not support ICU. The sample instructions for installing and configuring ICU are merely provided as a convenience to you.

All GT.M versions prior to V5.3-004 require exactly ICU 3.6, however, V5.3-004 (or later) accept ICU 3.6 or later.

Compiling ICU 4.4 on AIX 6.1

As of November 2011, ICU version 4.4 can be compiled on AIX with the following configuration:

Operating System: AIX

Version: AIX 6.1 64-bit

Compilers: IBM XL C/C++ 10, GNU make 3.80

Installation Instructions

  1. Ensure that system environment variable PATH includes the location of all the compilers mentioned above.

  2. Set the environment variable OBJECT_MODE to 64.

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

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

    gunzip -d < icu4c-4_4-src.tgz | tar -xf -
    cd icu/source
    ./runConfigureICU AIX --disable-threads --enable-renaming=no --with-library-bits=64 CC=xlc
    gmake
    gmake -k check
    gmake install
  5. Set the environment variable LIBPATH to point to the location of ICU. AIX uses the environment variable LIBPATH to search for dynamically linked libraries.

This installs ICU in the /usr/local directory.

[Note] Note

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

Compiling ICU 4.2 on AIX 6.1

As of December 2009, ICU version 4.2 can be compiled on AIX with the following configuration:

Operating System: UNIX

Version: AIX 6.1 64-bit

Compilers: IBM XL C/C++ 10, GNU make 3.80

Installation Instructions

  1. Ensure that system environment variable PATH includes the location of all the compilers mentioned above.

  2. Set the environment variable OBJECT_MODE to 64.

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

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

    gunzip -d < icu4c-4_2_1-AIX6_1-VA9.tgz | tar -xf - 
    cd icu/source
    ./configure CC=/usr/vac/bin/cc CXX=/usr/vacpp/bin/xlc++ --disable-threads --disable-renaming 
    gmake
    gmake check 
    gmake install
  5. Set the environment variable LIBPATH to point to the location of ICU. AIX uses the environment variable LIBPATH to search for dynamically linked libraries.

This installs ICU in the /usr/local directory.

[Note] Note

By default, ICU is installed on /usr/local directory.

Compiling ICU 4.2 on AIX 5.3

As of December 2009, ICU version 4.2 could be compiled on AIX with the following configuration:

Operating System: AIX

Version: AIX 5.3 (PowerPC 64-bit)

Compilers: VisualAge 6, GNU make (3.77+), ANSI C compiler

Installation Instructions

  1. Ensure that system environment variable PATH includes the location of all the compilers mentioned above.

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

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

    gunzip -d < icu4c-3_6-src.tgz | tar -xf -
    cd icu/source/
    chmod +x runConfigureICU configure install-sh
    ./configure --disable-renaming --disable-threads --enable-debug CC=cc CFLAGS=-q64
    gmake
    gmake check
    gmake install
  4. Set the environment variable LIBPATH to point to the location of ICU. AIX uses the environment variable LIBPATH to search for dynamically linked libraries.

This installs ICU in the /usr/local directory.

[Note] Note

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

Compiling ICU 3.6 on AIX 5.2

As of January 2007, ICU version 3.6 could be compiled on AIX with the following configuration:

Operating System: AIX

Version: AIX 5.2 (PowerPC 64-bit)

Compilers: VisualAge 6, GNU make (3.77+), ANSI C compiler

Installation Instructions

  1. Ensure that system environment variable PATH includes the location of all the compilers mentioned above.

  2. Download the source code of ICU version 3.6 for C from http://icu.sourceforge.net/download/3.6.html#ICU4C

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

    gunzip -d < icu4c-3_6-src.tgz | tar -xf - 
    cd icu/source/ 
    chmod +x runConfigureICU configure install-sh
    runConfigureICU AIX --disable-64bit-libs --disable-threads 
    gmake
    gmake check 
    gmake install
  4. Set the environment variable LIBPATH to point to the location of ICU. AIX uses the environment variable LIBPATH to search for dynamically linked libraries.

This installs ICU in the /usr/local directory.

[Note] Note

By default, ICU is installed on /usr/local directory. If you need to install ICU on a different directory type:

  • runConfigureICU AIX --prefix=<install_path> --disable-64bit-libs --disable-threads

  • Then, execute the gmake commands, and set the environment variable LIBPATH to point to the appropriate location.

Compiling ICU 4.2 on HP Integrity IA64 HP-UX 11.31

As of November 2009, ICU version 4.2 could be compiled on HP Integrity IA64 HP-UX with the following configuration:

Operating System: UNIX

Version: IA64 HP-UX 11.31

Compilers: HP C/aC++ B3910B A.06.15, GNU make (3.81)

Installation Instructions

  1. Ensure that system environment variable PATH includes the location of all the compilers mentioned above.

  2. Download the source code of ICU (in this example version 3.6 for C from http://icu.sourceforge.net/).

  3. At the shell prompt, run the following commands:

    gunzip -d < icu4c-4_2_1-src.tgz | tar -xf -
    cd icu/source/
    chmod +x runConfigureICU configure install-sh
    ./runConfigureICU HP-UX/ACC --disable-renaming --disable-threads --with-library-bits=64
    gmake
    gmake check
    gmake install
  4. Set the environment variable LD_LIBRARY_PATH to point to the location of ICU. HP-UX uses the environment variable LD_LIBRARY_PATH to search for dynamically linked libraries.

This installs ICU in the /usr/local directory.

[Note] Note

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

Compiling ICU 3.6 on HP Integrity IA64 HP-UX 11.31

As of November 2009, ICU version 3.6 could be compiled on HP Integrity IA64 HP-UX with the following configuration:

Operating System: UNIX

Version: IA64 HP-UX 11.31

Compilers: HP C/aC++ B3910B A.06.15, GNU make (3.81)

Installation Instructions

  1. Ensure that system environment variable PATH includes the location of all the compilers mentioned above.

  2. Download the source code of ICU (in this example version 3.6 for C from http://icu.sourceforge.net/download/3.6.html#ICU4C).

  3. At the shell prompt, run the following commands:

    gunzip -d <  icu4c-3_6-src.tgz | tar -xf -
    cd icu/source/
    chmod +x runConfigureICU configure install-sh
    runConfigureICU HP-UX/ACC --disable-threads
    gmake
    gmake check
    gmake install
    
  4. Set the environment variable LD_LIBRARY_PATH to point to the location of ICU. HP-UX uses the environment variable LD_LIBRARY_PATH to search for dynamically linked libraries.

This installs ICU in the /usr/local directory.

[Note] Note

By default, ICU is installed in the /usr/local directory. If you install ICU in a different directory, type:

  • runConfigureICU HP-UX/ACC --prefix=<install_path> --disable-threads

  • Then run the gmake commands, and set the environment variable LD_LIBRARY_PATH to point to the appropriate location.

Compiling ICU 3.6 on HP PA-RISC HP-UX 11.31 (11iv3)

As of November 2009, ICU version 3.6 could be compiled on HP PA-RISC HP-UX with the following configuration:

Operating System: UNIX

Version:HP-UX 11.31 (11iv3)

Compiler: cc HP C/aC++ B3910B A.06.12, aCC HP C/aC++ B3910B A.06.15, GNU Make 3.81

Installation Instructions

  1. Ensure that system environment variable PATH includes the location of all the compilers mentioned above.

  2. Download the source code of ICU (in this example, version 3.6 for C from http://icu.sourceforge.net/download/3.6.html#ICU4C)

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

    gunzip -d < icu4c-3_6-src.tgz | tar -xf -
    cd icu/source/
    chmod +x runConfigureICU configure install-sh
    runConfigureICU HP-UX/ACC --disable-64bit-libs? --enable-rpath --disable-threads
    gmake
    gmake check
    gmake install
    
  4. Set the environment variable LD_LIBRARY_PATH to point to the location of ICU. HP-UX uses the environment variable LD_LIBRARY_PATH to search for dynamically linked libraries.

This installs ICU in the /usr/local directory.

[Note] Note

By default, ICU is installed in /usr/local. If you install ICU in a different directory, type:

  • runConfigureICU HP-UX/ACC --prefix=<install_path> --enable-64bit-libs? --enable-rpath --disable-threads

  • Then execute the gmake commands, and set the environment variable LD_LIBRARY_PATH to point to the appropriate location.

Compiling ICU 3.6 on HP PA-RISC HP-UX 11.11

As of January 2007, ICU version 3.6 could be compiled on PA-RISC HP-UX with the following configuration:

Operating System: UNIX

Version: HP-UX 11.11

Compilers: aCC A.03.50, cc B.11.11.08, GNU make (3.77+)

Installation Instructions

  1. Ensure that system environment variable PATH includes the location of all the compilers mentioned above.

  2. Download the source code of ICU version 3.6 for C from http://icu.sourceforge.net/download/3.6.html#ICU4C

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

    DEFAULT_LIBS = -lstd_v2 -lCsup_v2 -lcl
  4. At the shell prompt, execute the following commands:

    gunzip -d < icu4c-3_6-src.tgz | tar -xf - 
    cd icu/source/ 
    chmod +x runConfigureICU configure install-sh
    runConfigureICU HP-UX/ACC --disable-64bit-libs --disable-threads
    gmake 
    gmake check 
    gmake install
  5. Set the environment variable LD_LIBRARY_PATH to point to the location of ICU. HP-UX uses the environment variable LD_LIBRARY_PATH to search for dynamically linked libraries.

This installs ICU in the /usr/local directory.

[Note] Note

By default, ICU is installed in the /usr/local directory. If you need to install ICU on a different directory type:

  • runConfigureICU HP-UX/ACC --prefix=<install_path> --disable-64bit-libs --disable-threads

  • Then execute the gmake commands, and set the environment variable LD_LIBRARY_PATH to point to the appropriate location.

Compiling ICU 4.2 on Red Hat Enterprise Linux 4 Update 2

As of December 2009, ICU version 4.2 could be compiled on x86_64 Linux with the following configuration:

Operating System: x86_64 Linux

Version: Red Hat Enterprise Linux 4 Update 2

Compilers: gcc 3.4.4, GNU make (3.77+), ANSI C compiler

Installation Instructions

  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. At the shell prompt, execute the following commands:

    gunzip -d < icu4c-3_6-src.tgz | tar -xf -
    cd icu/source/
    chmod +x runConfigureICU configure install-sh
    ./runConfigureICU Linux --disable-renaming --disable-threads --with-library-bits=64
    gmake
    gmake check
    gmake install
  4. Set the environment variable LD_LIBRARY_PATH to point to the location of ICU. Linux uses the environment variable LD_LIBRARY_PATH to search for dynamically linked libraries to be loaded.

This installs ICU in the /usr/local directory.

[Note] Note

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

Compiling ICU 3.6 on Red Hat Enterprise Linux 4 Update 2

As of January 2007, ICU version 3.6 could be compiled on x86 Linux with the following configuration:

Operating System: x86 Linux

Version: Red Hat Enterprise Linux 4 Update 2

Compilers: gcc 3.4.4, GNU make (3.77+), ANSI C compiler

Installation Instructions

  1. Ensure that system environment variable PATH includes the location of all the compilers mentioned above.

  2. Download the source code of ICU version 3.6 for C from http://icu.sourceforge.net/download/3.6.html#ICU4C

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

    gunzip -d < icu4c-3_6-src.tgz | tar -xf - 
    cd icu/source/ 
    chmod +x runConfigureICU configure install-sh
    runConfigureICU Linux --disable-64bit-libs --disable-threads
    gmake 
    gmake check 
    gmake install
  4. Set the environment variable LD_LIBRARY_PATH to point to the location of ICU. Linux uses the environment variable LD_LIBRARY_PATH to search for dynamically linked libraries to be loaded.

This installs ICU in the /usr/local directory.

[Note] Note

By default, ICU is installed on /usr/local directory. If you need to install ICU on a different directory type:

  • runConfigureICU Linux --prefix=<install_path> --disable-64bit-libs --disable-threads

  • Then execute the gmake commands, and set the environment variable LD_LIBRARY_PATH to point to the appropriate location.

Compiling ICU 4.4 on Solaris 9 (SunOS 5.9)

As of December 2009, ICU version 4.2 could be compiled on Solaris with the following configuration:

Operating System: Solaris

Version: Solaris 9 (SunOS 5.9)

Compilers: Sun Studio 8 (Sun C++ 5.5), GNU make (3.77+), ANSI C compiler

Installation Instructions

  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:

    DEFAULT_LIBS = -lCstd -lCrun -lm -lc
  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] 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.

Compiling ICU 4.2 on Solaris 9 (SunOS 5.9)

As of December 2009, ICU version 4.2 could be compiled on Solaris with the following configuration:

Operating System: Solaris

Version: Solaris 9 (SunOS 5.9)

Compilers: Sun Studio 8 (Sun C++ 5.5), GNU make (3.77+), ANSI C compiler

Installation Instructions

  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:

    DEFAULT_LIBS = -lCstd -lCrun -lm -lc
  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 --disable-renaming --disable-threads --enable-64bit-libs
    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] 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.

Compiling ICU 3.6 on Solaris 9 (SunOS 5.9)

As of January 2007, ICU version 3.6 could be compiled on Solaris with the following configuration:

Operating System: Solaris

Version: Solaris 9 (SunOS 5.9)

Compilers: Sun Studio 8 (Sun C++ 5.5), GNU make (3.77+), ANSI C compiler

Installation Instructions

  1. Ensure that system environment variable PATH includes the location of all the compilers mentioned above.

  2. Download the source code of ICU version 3.6 for C from http://icu.sourceforge.net/download/3.6.html#ICU4C>

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

    DEFAULT_LIBS = -lCstd -lCrun -lm -lc
  4. At the shell prompt, execute the following commands:

    gunzip -d < icu4c-3_6-src.tgz | tar -xf - 
    cd icu/source/ 
    chmod +x runConfigureICU configure install-sh
    runConfigureICU Solaris --disable-64bit-libs --disable-threads
    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] Note

By default, ICU is installed in the /usr/local directory. If you need to install ICU on a different directory type:

  • runConfigureICU Solaris --prefix=<install_path> --disable-64bit-libs --disable-threads

  • Then execute the gmake commands, and set the environment variable LD_LIBRARY_PATH to point to the appropriate location.