安装 Java8
安装包下载链接是 https://h20392.www2.hpe.com/portal/swdepot/displayProductInfo.do?productNumber=JDKJRE8018
需要先注册,然后登陆后才能下载,我下载的是 Itanium_JDK_8.0.18_June_2019_Z7550-96733_java8_18018_ia.depot
在线安装文档 https://support.hpe.com/hpesc/public/docDisplay?docId=emr_na-c04481894
swinstall -s /tmp/Itanium_JDK_8.0.18_June_2019_Z7550-96733_java8_18018_ia.depot |
安装成功后,会在根目录 opt 下多了一个 java8 目录,检查下 java 版本:
bash-5.0$ pwd |
创建软连接
sudo ln -s /opt/java8/bin/java /bin/java |
安装 gzip 和 gunzip
# 安装 gzip |
如果你机器上已经有 zip 和 gunzip 了,只需要软连接一下即可,防止出现命令找不到的问题
/usr/bin/sudo ln -s /usr/contrib/bin/gzip /usr/bin/gzip |
Can not use bash
in HP-UX
For example, when you run bash
command, you have the following error:
$ bash |
Here is the solution:https://community.hpe.com/t5/HP-UX-General/Unable-to-use-bash-for-ia-machine-11-23/m-p/3980789#M128592
It bcasue the LIBTERMCAP
is not installed, you can go here to see bash
‘s dependencies include gettext
libiconv
termcap
, etc.
Here are two very useful commands of install and uninstall.
Download
bash
to commanddepothelper
depothelper bash
If you wang to remove the package on your HP-UX system, you can run the command
sudo /usr/sbin/swremove [package-name]