怎样在HP-UX中安装bash?

本文详细介绍如何在HP-UX操作系统上安装bash shell,包括所需依赖组件的下载、解压及安装过程,并提供了遇到权限问题时的解决方案。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >



怎样在HP-UX中安装bash?


注:HPUX全称是Hewlett Packard UniX是惠普9000系列server的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, 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.解压全部的到/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.安装全部的安装包


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
附带swinstall安装界面步骤:http://www.thegeekstuff.com/2010/06/install-remove-depot-packages/


4.安装完启动bash


/usr/local/bin/bash


5.把/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 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

然后进入安装界面:http://www.thegeekstuff.com/2010/06/install-remove-depot-packages/



posted on 2017-06-18 21:23 mthoutai 阅读( ...) 评论( ...) 编辑 收藏

转载于:https://www.cnblogs.com/mthoutai/p/7045434.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值