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. したがって、これらの命令は、手引書(クックブック)ではなく、参考例として考慮する必要があります。

Although GT.M uses ICU, ICU is not FIS software and FIS does not support ICU. ICUのインストールおよび設定のためのサンプルの手順は、単にユーザーの便宜として提供されています。

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.

AIX 6.1 でICU 4.4をコンパイル

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 <s0>$PATH</s0> 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.

[注意] 注意

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.

AIX 6.1 でICU 4.2をコンパイル

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 <s0>$PATH</s0> 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.

[注意] 注意

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

AIX 5.3 でICU 4.2をコンパイル

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 <s0>$PATH</s0> 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.

[注意] 注意

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.

AIX 5.2 でICU 3.6をコンパイル

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 <s0>$PATH</s0> 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.

[注意] 注意

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.

HP Integrity IA64 HP-UX 11.31でICU 4.2をコンパイル

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 <s0>$PATH</s0> 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, execute 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. [参考] ICUの位置をポイントするために、環境変数LD_LIBRARY_PATHを使用します(AIXではLIBPATH)。HP-UX uses the environment variable LD_LIBRARY_PATH to search for dynamically linked libraries.

This installs ICU in the /usr/local directory.

[注意] 注意

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.

HP Integrity IA64 HP-UX 11.31でICU 3.6をコンパイル

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 <s0>$PATH</s0> 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-threads
    gmake
    gmake check
    gmake install
    
  4. [参考] ICUの位置をポイントするために、環境変数LD_LIBRARY_PATHを使用します(AIXではLIBPATH)。HP-UX uses the environment variable LD_LIBRARY_PATH to search for dynamically linked libraries.

This installs ICU in the /usr/local directory.

[注意] 注意

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> --enable-64bit-libs?

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

HP PA-RISC HP-UX 11.31 (11iv3)でICU3.6をコンパイル

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 <s0>$PATH</s0> 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. [参考] ICUの位置をポイントするために、環境変数LD_LIBRARY_PATHを使用します(AIXではLIBPATH)。HP-UX uses the environment variable LD_LIBRARY_PATH to search for dynamically linked libraries.

This installs ICU in the /usr/local directory.

[注意] 注意

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.

HP PA-RISC HP-UX 11.11で ICU 3.6をコンパイル

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 <s0>$PATH</s0> 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.

[注意] 注意

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.

Red Hat Enterprise Linux 4 Update 2 でICU 4.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 <s0>$PATH</s0> 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. [参考] ICUの位置をポイントするために、環境変数LD_LIBRARY_PATHを使用します(AIXではLIBPATH)。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.

[注意] 注意

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.

Red Hat Enterprise Linux 4 Update 2 でICU 3.6をコンパイル

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 <s0>$PATH</s0> 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. [参考] ICUの位置をポイントするために、環境変数LD_LIBRARY_PATHを使用します(AIXではLIBPATH)。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.

[注意] 注意

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.

Solaris 9 (SunOS 5.9)でICU 4.4をコンパイル

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 <s0>$PATH</s0> 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. [参考] ICUの位置をポイントするために、環境変数LD_LIBRARY_PATHを使用します(AIXではLIBPATH)。Solaris uses the environment variable LD_LIBRARY_PATH to search for dynamically linked libraries to be loaded.

[参考] ICU is now installed in <s0>/usr/local</s0>.

[注意] 注意

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.

Solaris 9 (SunOS 5.9)でICU 4.2をコンパイル

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 <s0>$PATH</s0> 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. [参考] ICUの位置をポイントするために、環境変数LD_LIBRARY_PATHを使用します(AIXではLIBPATH)。Solaris uses the environment variable LD_LIBRARY_PATH to search for dynamically linked libraries to be loaded.

[参考] ICU is now installed in <s0>/usr/local</s0>.

[注意] 注意

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.

Solaris 9 (SunOS 5.9)でICU 3.6をコンパイル

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 <s0>$PATH</s0> 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. [参考] ICUの位置をポイントするために、環境変数LD_LIBRARY_PATHを使用します(AIXではLIBPATH)。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. 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.

inserted by FC2 system