How do I install bash in a HP-UX?
How do I install bash in a HP-UX?
Note: HPUX stands for Hewlett Packard UniX, a Unix operating system for HP 9000 Series servers that can run on HP's PA-RISC processor, Intel's Itanium processor's computer.
1. bash installation package link:
Http://hpux.connect.org.uk/hppd/cgi-bin/search? Package = on & description = on & term = bash
Dependent components: gettext, libiconv, termcap
Gettext-0.19.5.1-hppa-11.31.depot.gz
Libiconv-1.14-hppa-11.31.depot.gz
Termcap-1.3.1-hppa-11.31.depot.gz
Bash-4.3.033-hppa-11.31.depot.gz
2. Decompress all the files to/tmp.
Cd/tmp
Gunzip gettext-0.19.5.1-hppa-11.31.depot.gz
Gunzip libiconv-1.14-hppa-11.31.depot.gz
Gunzip termcap-1.3.1-hppa-11.31.depot.gz
Gunzip bash-4.3.033-hppa-11.31.depot.gz
3. Install all installation packages
Swinstall-s/tmp/gettext-0.19.5.1-hppa-11.31.depot
Swinstall-s/tmp/libiconv-1.14-hppa-11.31.depot
Swinstall-s/tmp/termcap-1.3.1-hppa-11.31.depot
Swinstall-s/tmp/bash-4.3.033-hppa-11.31.depot
With swinstall installation interface step: http://www.thegeekstuff.com/2010/06/install-remove-depot-packages/
4. Start bash after installation
/Usr/local/bin/bash
5. Add/usr/local/bin to/etc/PATH and save
# Vi/etc/PATH
/Usr/local/bin
# Export PATH = $ (cat/etc/PATH)
If the following error occurs:
You do not
Have permission for this operation. The depot owner, system
Administrator, or alternate root owner may need to use
"Swreg" or "swacl" command to give you permission. Or,
Manage applications designed and packaged for nonprivileged
Mode, see the "run_as_superuser" option in the "sd" man page.
The solution is:
/Sbin/init. d/swagentd stop
/Sbin/init. d/swagentd start
Swreg-l depot/tmp/gettext-0.19.5.1-hppa-11.31.depot
Swreg-l depot/tmp/libiconv-1.14-hppa-11.31.depot
Swreg-l depot/tmp/termcap-1.3.1-hppa-11.31.depot
Swreg-l depot/tmp/bash-4.3.033-hppa-11.31.depot
Then enter the installation interface: http://www.thegeekstuff.com/2010/06/install-remove-depot-packages/