centos7下安装nmon后,无法运行,提示 cannot execute binary file或/lib64/ld64.so.1不存在

在centos 7.1上安装nmon后,从管网(http://nmon.sourceforge.net/pmwiki.php?n=Site.Download)下载tar包解压后,两台机器一台提示 cannot execute binary file,另一台提示/lib64/ld64.so.1不存在

找了好久都没找到解决方法,换rpm安装方式解决

rpm 下载地址

http://rpm.pbone.net/index.php3/stat/4/idpl/29435642/dir/redhat_el_7/com/nmon-14g-1.el7.rf.x86_64.rpm.html

下载完成后,直接rpm -ivh 安装

再次运行nmon,可能会提示-bash: /usr/local/bin/nmon: No such file or directory

那是因为nmon默认安装在/usr/bin中,将目录加入环境变量

vi /etc/profile
export PATH=$PATH:$M2_HOME/bin:/usr/bin
source /etc/profile

再次运行nmon,成功。。