问题描述:
[root@hadoop03 ggs]$ ./ggsci
./ggsci: error while loading shared libraries: libjvm.so: cannot open shared object file: No such file or directory
解决办法:
1.查看缺少那些.so文件
[root@hadoop03 /]# ldd ggsci
2.查libjvm.so库文件的路径
[root@hadoop03 /]# find / -name libjvm.so
/usr/local/jdk/jre/lib/amd64/server/libjvm.so
3.检查jdk的版本和java_home的路径
[root@hadoop03 /]# java - version
4.在配置文件中加入库文件的路径
vi /etc/profile
export JAVA_HOME=/usr/local/jdk
export JRE_HOME=/usr/local/jdk/jre
export LD_LIBRARY_PATH=/data/ogg_bigdata/lib:$JRE_HOME/lib/amd64/server:$LD_LIBRARY_PATH
5.使配置文件生效
[root@hadoop03 ~]$ source /etc/profile
6.检测是否生效
[root@hadoop03 ggs]$ ./ggsci
标签:libjvm,ggsci,hadoop03,so,file,shared From: https://www.cnblogs.com/yeyuzhuanjia/p/17669655.html