跳过正文
  1. Posts/

HP-UX 安装工具以及一些使用总结

·374 字·1 分钟· ·
目录

安装 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

# if swinstall not found
/usr/sbin/swinstall -s /tmp/Itanium_JDK_8.0.18_June_2019_Z7550-96733_java8_18018_ia.depot

安装成功后,会在根目录 opt 下多了一个 java8 目录,检查下 java 版本:

bash-5.0$ pwd
/opt/java8
bash-5.0$ cd bin
bash-5.0$ java -version
java version "1.8.0.18-hp-ux"
Java(TM) SE Runtime Environment (build 1.8.0.18-hp-ux-b1)
Java HotSpot(TM) Server VM (build 25.18-b1, mixed mode)

创建软连接

sudo ln -s /opt/java8/bin/java /bin/java

安装 gzip 和 gunzip
#

# 安装 gzip
/usr/bin/sudo /usr/local/bin/depothelper gzip

如果你机器上已经有 zip 和 gunzip 了,只需要软连接一下即可,防止出现命令找不到的问题

/usr/bin/sudo ln -s /usr/contrib/bin/gzip /usr/bin/gzip
/usr/bin/sudo ln -s /usr/contrib/bin/gunzip /usr/bin/gunzip

Can not use bash in HP-UX
#

For example, when you run bash command, you have the following error:

$ bash
/usr/lib/hpux64/dld.so: Unable to find library 'libtermcap.so'.

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 command depothelper

    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]

沈显鹏
作者
沈显鹏
Engineer. Builder. Maintainer.

相关文章

AIX 上安装工具以及一些使用总结

·256 字·1 分钟
记录在使用 AIX 时所遇到的问题和解决办法,以备以后遇到同样问题不要再因为这些再浪费时间,希望也能帮助到你。

Jenkins Warnings Next Generation 插件

·7730 字·16 分钟
本文介绍了 Jenkins Warnings Next Generation 插件的功能和配置方法,包括如何收集编译器警告和静态分析工具报告的问题,并可视化结果。

Git 历史统计信息生成器

·1133 字·3 分钟
GitStats,一个用 Python 编写的 Git 历史统计信息生成工具,能够生成详细的代码提交统计报告,帮助开发者分析项目活跃度和贡献者情况。