Post List

HPUX gcc install guide

 

1. Download HPUX GCC Package

    [download url]

    http://hpux.connect.org.uk/hppd/hpux/Gnu/gcc-4.2.3/



2. Uncompress package file (.gz -> .tar)

    # gzip -d gcc-4.2.3-ia64_32-11.31.depot.gz


3. Install GCC

    # swinstall -s /package_file_path/gcc-4.2.3-ia64_32-11.31.depot


3-1. swinstall

    1. Check the message and press enter.

    2. Check the instalment list (gcc package)

    3. Press SPACEBAR to sleect an installation item. (gcc package)

    4. Press TAB to select [Actions -> install] and press Enter to install.

    5. Press [OK] to proceed with the installation. 

    6. After completion, press [Done] to complete.

    7. Press TAB to select [FILE -> Exit] and press Enter to end.


4. Reconnect the console.


5. Check gcc

    # gcc -v

      Using built-in specs.

      Target: ia64-hp-hpux11.31

      Configured with: ../gcc/configure 

      Thread model: posix

      gcc version 4.2.3


< If the version doesn't get printed out >


a. Not found gcc


a-1. Find the gcc binary file

    # whereis gcc

    gcc: /usr/local/bin/gcc /usr/local/lib/gcc /usr/local/man/man1/gcc.1


a-2. Create a symbolic link to gcc binary file

    # cd /usr/bin

    # ln -s /usr/local/bin/gcc /usr/bin/gcc


b. Unable to find library 'libintl.so'.


b-1. Find the libintl.so

    # find / -name libintl.so

    /opt/gtk2.6/lib/libintl.so


b-2. Create a symbolic link to libintl.so library file

    # cd /usr/lib/hpux32/

    # ln -s /opt/gtk2.6/lib/libintl.so /usr/lib/hpux32/libintl.so

    # cd /usr/local/ilb/hpux32

    # ln -s /opt/gtk2.6/lib/libintl.so /usr/local/ilb/hpux32/libintl.so


c. Unable to find library '/usr/local/lib/hpux32/libiconv.so'


c-1. Find the libconv.so

    # find / -name libconv.so

    /opt/gtk2.6/lib/libconv.so


c-2. Create a symbolic link to libiconv.so library file

    # cd /usr/local/ilb/hpux32

    # ln -s /opt/gtk2.6/lib/libiconv.so /usr/local/lib/hpux32/libiconv.so

댓글 없음:

댓글 쓰기