ZDOCK -- libg2c.so.0: cannot open shared object file

在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

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值