如何在HPUX中安装bash?

本文发布时间: 2019-Mar-22
如何在HP-UX中安装bash?注:HPUX全称是Hewlett Packard UniX是惠普9000系列服务器的Unix操作系统,可以在HP的PA-RISC处理器、Intel的Itanium处理器的电脑上运行。1.bash安装包链接:http://hpux.connect.org.uk/hppd/cgi-bin/search?package=on&description=on&term=bash依赖组件:gettext, libiconv, termcapgettext-0.19.5.1-hppa-11.31.depot.gzlibiconv-1.14-hppa-11.31.depot.gztermcap-1.3.1-hppa-11.31.depot.gzbash-4.3.033-hppa-11.31.depot.gz2.解压所有的到/tmp下cd /tmpgunzip gettext-0.19.5.1-hppa-11.31.depot.gzgunzip libiconv-1.14-hppa-11.31.depot.gzgunzip termcap-1.3.1-hppa-11.31.depot.gzgunzip bash-4.3.033-hppa-11.31.depot.gz3.安装所有的安装包swinstall -s /tmp/gettext-0.19.5.1-hppa-11.31.depotswinstall -s /tmp/libiconv-1.14-hppa-11.31.depotswinstall -s /tmp/termcap-1.3.1-hppa-11.31.depotswinstall -s /tmp/bash-4.3.033-hppa-11.31.depot附带swinstall安装界面步骤:http://www.thegeekstuff.com/2010/06/install-remove-depot-packages/4.安装完启动bash/usr/local/bin/bash5.把/usr/local/bin加到/etc/PATH中并保存# vi /etc/PATH/usr/local/bin# export PATH=$(cat /etc/PATH)参考文档:http://itsiti.com/install-bash-shell-in-hp-ux如果出现下面错误:You do not have permission for this operation. The depot owner, system administrator, or alternate root owner may need to use the "swreg" or "swacl" command to give you permission. Or, to manage applications designed and packaged for nonprivileged mode, see the "run_as_superuser" option in the "sd" man page.那么解决方案是:/sbin/init.d/swagentd stop/sbin/init.d/swagentd startswreg -l depot /tmp/gettext-0.19.5.1-hppa-11.31.depotswreg -l depot /tmp/libiconv-1.14-hppa-11.31.depotswreg -l depot /tmp/termcap-1.3.1-hppa-11.31.depotswreg -l depot /tmp/bash-4.3.033-hppa-11.31.depot然后进入安装界面:http://www.thegeekstuff.com/2010/06/install-remove-depot-packages/


(以上内容不代表本站观点。)
---------------------------------
本网站以及域名有仲裁协议。
本網站以及域名有仲裁協議。

2019-May-25 12:56pm
栏目列表