Wednesday, February 9, 2011

Installing Bash on HP-UX Itanium server

Installing Bash on HP-UX is different on different hardware. Currently HP-UX offers support on below hardware
- PA-RISC servers from HP
- Itanium(Intel I64) servers from HP.

I have been facing a difficulty on installing Bash over Itanium server. I found the bash depot in hp web site. Once I finished installation, bash throws an error with below message :
"/usr/lib/hpux32/dld.so: Unable to find library 'libtermcap.so'".

Here is a simple method to deploy Bash on HP-UX Itanium servers.

install bash-4.1.007-ia64-11.31.depot
( swinstall –s <bash-4.1.007-ia64-11.31.depot >
This depot can be downloaded from internet.http://hpux.connect.org.uk/hppd/hpux/Shells/bash-4.1.007/
Then you need to check for the dependencies, which  are installed or not. To check the dependency, go to the bash installed location. Usually the install directory will be /usr/local/bin/bash. Or you can execute below command to know the actual path
# whereis bash
Now you need to execute the bash.
If dependant  libraries are not present, then it will popup with a error message similar bas below :
"/usr/lib/hpux32/dld.so: Unable to find library 'libtermcap.so'"
If dependant libraries are not present in your system, here is the method to get it.
1- note down the bash dependant libraries  from here:

bash-4.1# ldd bash
        libtermcap.so =>        /usr/local/lib/hpux32/libtermcap.so
        libintl.so =>   /usr/local/lib/hpux32/libintl.so
        libiconv.so =>  /usr/local/lib/hpux32/libiconv.so
        libdl.so.1 =>   /usr/lib/hpux32/libdl.so.1
        libc.so.1 =>    /usr/lib/hpux32/libc.so.1
        libc.so.1 =>    /usr/lib/hpux32/libc.so.1

You can download all these files from  here : www.http://cmronweb.com/download/library-UX-itanium.rar

2- Now you need to copy all these files files from your friends machine to /usr/local/lib/hpux32/ folder. If hpux32 folder is not exist, then you can create one and copy the libriries to the folder.

3- Thats it, now you can enjoy the wonderful world of Bash.

2 comments:

  1. Hi CMRTechie,
    The above method is very easy and useful.

    Thanks Again

    Regards,
    shking

    ReplyDelete
  2. Thanks a ton for this post, It was really useful.
    My best regards,
    kirti

    ReplyDelete