在Centos7上运行ZDOCK,遇到报错:
[user@localhost zdock3.0_XL_linux_64bit]$ ./mark_sur P37108_u.pdb.ms new.pdb ./mark_sur: error while loading shared libraries: libg2c.so.0: cannot open shared object file: No such file or directory
查找 /usr/lib 、/usr/lib64目录下没有libg2c.so.0文件,在网上查找相关的解决方法:
QOCA软件安装(附安装后出现缺少libg2c.so.0报错的解决办法)
ubuntu报错:libg2c.so.0:cannot open shared object file: no such file or directory/wrong ELF class(已解决)
解决办法都是在Ubuntu系统下,但是自己的系统是centos7,后面
找到libf2c,点击下载或者直接在服务器运行命令:
[root@localhost ~]# yum install compat-libf2c-34 Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: ftp.sjtu.edu.cn * centos-sclo-rh: mirrors.njupt.edu.cn * centos-sclo-sclo: ftp.sjtu.edu.cn * epel: mirrors.ustc.edu.cn * extras: ftp.sjtu.edu.cn * updates: mirrors.cn99.com Resolving Dependencies --> Running transaction check ---> Package compat-libf2c-34.x86_64 0:3.4.6-32.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ===================================================================================================================================================================================================================================== Package Arch Version Repository Size ===================================================================================================================================================================================================================================== Installing: compat-libf2c-34 x86_64 3.4.6-32.el7 base 155 k Transaction Summary ===================================================================================================================================================================================================================================== Install 1 Package Total download size: 155 k Installed size: 576 k Is this ok [y/d/N]: y Downloading packages: compat-libf2c-34-3.4.6-32.el7.x86_64.rpm | 155 kB 00:00:00 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : compat-libf2c-34-3.4.6-32.el7.x86_64 1/1 Verifying : compat-libf2c-34-3.4.6-32.el7.x86_64 1/1 Installed: compat-libf2c-34.x86_64 0:3.4.6-32.el7 Complete! [root@localhost ~]# ll /usr/lib64/libg2c.so.0 lrwxrwxrwx 1 root root 15 Oct 18 11:48 /usr/lib64/libg2c.so.0 -> libg2c.so.0.0.0
装上/usr/lib64/libg2c.so.0,重启服务器就可以用ZDOCK



