跳过正文
Background Image
  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]

相关文章

最有用的 Linux 命令行技巧
·198 字·1 分钟
本文介绍了一些最有用的 Linux 命令行技巧,以提高开发和运维的效率。
通过 Jenkins 定期自动给老板提供 Git 仓库的多维度代码分析报告
·1045 字·3 分钟
本文介绍了如何使用 Jenkins 定期自动生成 Git 仓库的多维度代码分析报告,包括手动执行和定时执行的实现方式,帮助开发者和团队更好地了解代码质量和贡献情况。
AIX 上安装工具以及一些使用总结
·256 字·1 分钟
记录在使用 AIX 时所遇到的问题和解决办法,以备以后遇到同样问题不要再因为这些再浪费时间,希望也能帮助到你。
Solaris 安装工具以及一些使用总结
·61 字·1 分钟
本文记录了在使用 Solaris 时遇到的问题和解决办法,包括安装工具、配置网络、安装软件包等,帮助用户更高效地使用 Solaris 系统。