操作系统Centos8
运行gmx_MMPBSA时,出现error while loading shared libraries: libgfortran.so.3: cannot open shared object file错误:

[userrr@localhost gmx_MMPBSA]$ gmx_MMPBSA -O -i mmpbsa.in -cs md.tpr -ci index.ndx -cg 1 14 -ct fbd.xtc -lm UNK_bcc_gaff.mol2
[INFO   ] Starting
[INFO   ] Command-linegmx_MMPBSA -O -i mmpbsa.in -cs md.tpr -ci index.ndx -cg 1 14 -ct fbd.xtc -lm UNK_bcc_gaff.mol2[WARNING] protein_forcefield and ligand_forcefield variables are deprecate since version 1.4.1 and will be remove in the next version. Please, use forcefield instead.
[WARNING] entropy variable is deprecate since version 1.4.2 and will be remove in v1.5.0. Please, use qh_entropy for Quasi-Harmonic approximation and i_entropy for Interaction entropy approximation instead.
[WARNING] entropy_seg variable is deprecate since version 1.4.2 and will be remove in v1.5.0. Please, use ie_segment instead.
[WARNING] entropy_temp variable is deprecated and will be remove in next versions!. Please, use temperature variable instead
[WARNING] offset and probe are molsurf-only options
[INFO   ] Checking external programs...
[INFO   ] cpptraj found! Using /home/user/software/Amber20/amber20/bin/cpptraj
[INFO   ] tleap found! Using /home/user/software/Amber20/amber20/bin/tleap
[INFO   ] parmchk2 found! Using /home/user/software/Amber20/amber20/bin/parmchk2
[INFO   ] mmpbsa_py_energy found! Using /home/user/software/Amber20/amber20/bin/mmpbsa_py_energy
[INFO   ] Using GROMACS version > 5.x.x!
[INFO   ] gmx found! Using /usr/local/gromacs/bin/gmx
[INFO   ] Checking external programs...Done.[INFO   ] Building AMBER Topologies from GROMACS files...
[INFO   ] Checking gmxMMPBSA data folder exists in Amber data...
[INFO   ] Get PDB files from GROMACS structures files...
[INFO   ] Making gmx_MMPBSA index for complex...
[INFO   ] Running command: echo name 1 GMXMMPBSA_REC\n name 14 GMXMMPBSA_LIG\n  1 | 14\n q\n | /usr/local/gromacs/bin/gmx make_ndx -n index.ndx -o _GMXMMPBSA_COM_index.ndx
[INFO   ] Normal Complex: Saving group 1_14 in _GMXMMPBSA_COM_index.ndx file as _GMXMMPBSA_COM.pdb
[INFO   ] Running command: echo GMXMMPBSA_REC_GMXMMPBSA_LIG | /usr/local/gromacs/bin/gmx editconf -f md.tpr -o _GMXMMPBSA_COM.pdb -n _GMXMMPBSA_COM_index.ndx
[INFO   ] Generating ligand parameters from UNK_bcc_gaff.mol2 file...
[INFO   ] Running command: /home/user/software/Amber20/amber20/bin/parmchk2 -i UNK_bcc_gaff.mol2 -f mol2 -o _GMXMMPBSA_UNK_bcc_gaff.frcmod
[INFO   ] No receptor structure file was defined. Using ST approach...
[INFO   ] Using receptor structure from complex to generate AMBER topology
[INFO   ] Normal Complex: Saving group 1 in _GMXMMPBSA_COM_index.ndx file as _GMXMMPBSA_REC.pdb
[INFO   ] Running command: echo 1 | /usr/local/gromacs/bin/gmx editconf -f md.tpr -o _GMXMMPBSA_REC.pdb -n _GMXMMPBSA_COM_index.ndx
[INFO   ] No ligand structure file was defined. Using ST approach...
[INFO   ] Using ligand structure from complex to generate AMBER topology
[INFO   ] Normal ligand: Saving group 14 in _GMXMMPBSA_COM_index.ndx file as _GMXMMPBSA_LIG.pdb
[INFO   ] Running command: echo 14 | /usr/local/gromacs/bin/gmx editconf -f md.tpr -o _GMXMMPBSA_LIG.pdb -n _GMXMMPBSA_COM_index.ndx
[INFO   ] Chains ID found. Ignoring chains ID assignation...
[INFO   ] Generating AMBER Compatible PDB Files...
[INFO   ] Building tleap input files...
[INFO   ] Running command: /home/user/software/Amber20/amber20/bin/tleap -f _GMXMMPBSA_leap.in -I /home/user/anaconda3/lib/python3.7/site-packages/GMXMMPBSA/data
[INFO   ] Cleaning normal complex trajectories...
[INFO   ] Running command: echo GMXMMPBSA_REC_GMXMMPBSA_LIG | /usr/local/gromacs/bin/gmx trjconv -f fbd.xtc -s md.tpr -o COM_traj_0.xtc -n _GMXMMPBSA_COM_index.ndx
[INFO   ] Building AMBER Topologies from GROMACS files...Done.[INFO   ] Loading and checking parameter files for compatibility...Preparing trajectories for simulation...
/home/user/software/Amber20/amber20/bin/cpptraj: error while loading shared libraries: libgfortran.so.3: cannot open shared object file: No such file or directoryFile "/home/user/anaconda3/bin/gmx_MMPBSA", line 8, in <module>sys.exit(gmxmmpbsa())File "/home/user/anaconda3/lib/python3.7/site-packages/GMXMMPBSA/app.py", line 97, in gmxmmpbsaapp.file_setup()File "/home/user/anaconda3/lib/python3.7/site-packages/GMXMMPBSA/main.py", line 146, in file_setupself.external_progs['cpptraj'], self.pre)File "/home/user/anaconda3/lib/python3.7/site-packages/GMXMMPBSA/make_trajs.py", line 68, in make_trajectoriestraj = Trajectory(FILES.complex_prmtop, FILES.complex_trajs, cpptraj)File "/home/user/anaconda3/lib/python3.7/site-packages/GMXMMPBSA/make_trajs.py", line 471, in __init__self.Query()File "/home/user/anaconda3/lib/python3.7/site-packages/GMXMMPBSA/make_trajs.py", line 606, in Queryraise TrajError('%s failed when querying %s' % (self.exe, traj))
TrajError: /home/user/software/Amber20/amber20/bin/cpptraj failed when querying COM_traj_0.xtc
Exiting. All files have been retained.

1) 在路径/home/user/software/Amber20/amber20/lib/ 和 /home/user/software/Amber20/amber20/lib64/ 下均没有libgfortran.so.3
2) 在conda下有libgfortran.so.4.0.0

[userrr@localhost gmx_MMPBSA]$ ll /home/user/anaconda3/lib/libgfortran.so*
lrwxrwxrwx. 1 user user      20 May 28 02:50 /home/user/anaconda3/lib/libgfortran.so -> libgfortran.so.4.0.0
lrwxrwxrwx. 1 user user      20 May 28 02:50 /home/user/anaconda3/lib/libgfortran.so.4 -> libgfortran.so.4.0.0
-rwxrwxr-x. 2 user user 5925928 Aug 18  2018 /home/user/anaconda3/lib/libgfortran.so.4.0.0

3) /usr/lib64/路径下有libgfortran.so.5.0.0

[userrr@localhost gmx_MMPBSA]$ ll /usr/lib64/libgfortran.so.*
lrwxrwxrwx. 1 root root      20 Oct 12  2020 /usr/lib64/libgfortran.so.5 -> libgfortran.so.5.0.0
-rwxr-xr-x. 1 root root 2622416 Oct 12  2020 /usr/lib64/libgfortran.so.5.0.0

解决办法:
libgfortran.so.3 安装网站

[userrr@localhost ~]$ sudo dnf install compat-libgfortran-48
[sudo] password for userrr:
Repository AppStream is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository PowerTools is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Last metadata expiration check: 2:23:10 ago on Fri 23 Jul 2021 01:56:49 AM EDT.
Dependencies resolved.
=============================================================================================================================================================================================================================Package                                                       Arch                                           Version                                                Repository                                         Size
=============================================================================================================================================================================================================================
Installing:compat-libgfortran-48                                         x86_64                                         4.8.5-36.1.el8                                         AppStream                                         275 kTransaction Summary
=============================================================================================================================================================================================================================
Install  1 PackageTotal download size: 275 k
Installed size: 1.1 M
Is this ok [y/N]: y
Downloading Packages:
compat-libgfortran-48-4.8.5-36.1.el8.x86_64.rpm                                                                                                                                              200 kB/s | 275 kB     00:01
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                                                         57 kB/s | 275 kB     00:04
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transactionPreparing        :                                                                                                                                                                                                     1/1Installing       : compat-libgfortran-48-4.8.5-36.1.el8.x86_64                                                                                                                                                         1/1Running scriptlet: compat-libgfortran-48-4.8.5-36.1.el8.x86_64                                                                                                                                                         1/1
/sbin/ldconfig: /usr/local/cuda-11.2/targets/x86_64-linux/lib/libcudnn_ops_train.so.8 is not a symbolic link/sbin/ldconfig: /usr/local/cuda-11.2/targets/x86_64-linux/lib/libcudnn_ops_infer.so.8 is not a symbolic link/sbin/ldconfig: /usr/local/cuda-11.2/targets/x86_64-linux/lib/libcudnn_cnn_train.so.8 is not a symbolic link/sbin/ldconfig: /usr/local/cuda-11.2/targets/x86_64-linux/lib/libcudnn.so.8 is not a symbolic link/sbin/ldconfig: /usr/local/cuda-11.2/targets/x86_64-linux/lib/libcudnn_cnn_infer.so.8 is not a symbolic link/sbin/ldconfig: /usr/local/cuda-11.2/targets/x86_64-linux/lib/libcudnn_adv_train.so.8 is not a symbolic link/sbin/ldconfig: /usr/local/cuda-11.2/targets/x86_64-linux/lib/libcudnn_adv_infer.so.8 is not a symbolic link/sbin/ldconfig: /usr/local/cuda-11.2/targets/x86_64-linux/lib/libcudnn_ops_train.so.8 is not a symbolic link/sbin/ldconfig: /usr/local/cuda-11.2/targets/x86_64-linux/lib/libcudnn_ops_infer.so.8 is not a symbolic link/sbin/ldconfig: /usr/local/cuda-11.2/targets/x86_64-linux/lib/libcudnn_cnn_train.so.8 is not a symbolic link/sbin/ldconfig: /usr/local/cuda-11.2/targets/x86_64-linux/lib/libcudnn.so.8 is not a symbolic link/sbin/ldconfig: /usr/local/cuda-11.2/targets/x86_64-linux/lib/libcudnn_cnn_infer.so.8 is not a symbolic link/sbin/ldconfig: /usr/local/cuda-11.2/targets/x86_64-linux/lib/libcudnn_adv_train.so.8 is not a symbolic link/sbin/ldconfig: /usr/local/cuda-11.2/targets/x86_64-linux/lib/libcudnn_adv_infer.so.8 is not a symbolic linkVerifying        : compat-libgfortran-48-4.8.5-36.1.el8.x86_64                                                                                                                                                         1/1Installed:compat-libgfortran-48-4.8.5-36.1.el8.x86_64Complete!

再次搜索/usr/lib/路径下的libgfortran.so.*,已经有了libgfortran.so.3

[userr@localhost gmx_MMPBSA]$ ll /usr/lib64/libgfortran.so.*
lrwxrwxrwx  1 root root      20 May 13  2019 /usr/lib64/libgfortran.so.3 -> libgfortran.so.3.0.0
-rwxr-xr-x  1 root root 1194336 May 13  2019 /usr/lib64/libgfortran.so.3.0.0
lrwxrwxrwx. 1 root root      20 Oct 12  2020 /usr/lib64/libgfortran.so.5 -> libgfortran.so.5.0.0
-rwxr-xr-x. 1 root root 2622416 Oct 12  2020 /usr/lib64/libgfortran.so.5.0.0

运行gmx_MMPBSA:,没有报错,已经正常计算

[userrr@localhost gmx_MMPBSA]$ gmx_MMPBSA -O -i mmpbsa.in -cs md.tpr -ci index.ndx -cg 1 14 -ct fbd.xtc -lm UNK_bcc_gaff.mol2
[INFO   ] Starting
[INFO   ] Command-linegmx_MMPBSA -O -i mmpbsa.in -cs md.tpr -ci index.ndx -cg 1 14 -ct fbd.xtc -lm UNK_bcc_gaff.mol2[WARNING] protein_forcefield and ligand_forcefield variables are deprecate since version 1.4.1 and will be remove in the next version. Please, use forcefield instead.
[WARNING] entropy variable is deprecate since version 1.4.2 and will be remove in v1.5.0. Please, use qh_entropy for Quasi-Harmonic approximation and i_entropy for Interaction entropy approximation instead.
[WARNING] entropy_seg variable is deprecate since version 1.4.2 and will be remove in v1.5.0. Please, use ie_segment instead.
[WARNING] entropy_temp variable is deprecated and will be remove in next versions!. Please, use temperature variable instead
[WARNING] offset and probe are molsurf-only options
[INFO   ] Checking external programs...
[INFO   ] cpptraj found! Using /home/user/software/Amber20/amber20/bin/cpptraj
[INFO   ] tleap found! Using /home/user/software/Amber20/amber20/bin/tleap
[INFO   ] parmchk2 found! Using /home/user/software/Amber20/amber20/bin/parmchk2
[INFO   ] mmpbsa_py_energy found! Using /home/user/software/Amber20/amber20/bin/mmpbsa_py_energy
[INFO   ] Using GROMACS version > 5.x.x!
[INFO   ] gmx found! Using /usr/local/gromacs/bin/gmx
[INFO   ] Checking external programs...Done.[INFO   ] Building AMBER Topologies from GROMACS files...
[INFO   ] Checking gmxMMPBSA data folder exists in Amber data...
[INFO   ] Get PDB files from GROMACS structures files...
[INFO   ] Making gmx_MMPBSA index for complex...
[INFO   ] Running command: echo name 1 GMXMMPBSA_REC\n name 14 GMXMMPBSA_LIG\n  1 | 14\n q\n | /usr/local/gromacs/bin/gmx make_ndx -n index.ndx -o _GMXMMPBSA_COM_index.ndx
[INFO   ] Normal Complex: Saving group 1_14 in _GMXMMPBSA_COM_index.ndx file as _GMXMMPBSA_COM.pdb
[INFO   ] Running command: echo GMXMMPBSA_REC_GMXMMPBSA_LIG | /usr/local/gromacs/bin/gmx editconf -f md.tpr -o _GMXMMPBSA_COM.pdb -n _GMXMMPBSA_COM_index.ndx
[INFO   ] Generating ligand parameters from UNK_bcc_gaff.mol2 file...
[INFO   ] Running command: /home/user/software/Amber20/amber20/bin/parmchk2 -i UNK_bcc_gaff.mol2 -f mol2 -o _GMXMMPBSA_UNK_bcc_gaff.frcmod
[INFO   ] No receptor structure file was defined. Using ST approach...
[INFO   ] Using receptor structure from complex to generate AMBER topology
[INFO   ] Normal Complex: Saving group 1 in _GMXMMPBSA_COM_index.ndx file as _GMXMMPBSA_REC.pdb
[INFO   ] Running command: echo 1 | /usr/local/gromacs/bin/gmx editconf -f md.tpr -o _GMXMMPBSA_REC.pdb -n _GMXMMPBSA_COM_index.ndx
[INFO   ] No ligand structure file was defined. Using ST approach...
[INFO   ] Using ligand structure from complex to generate AMBER topology
[INFO   ] Normal ligand: Saving group 14 in _GMXMMPBSA_COM_index.ndx file as _GMXMMPBSA_LIG.pdb
[INFO   ] Running command: echo 14 | /usr/local/gromacs/bin/gmx editconf -f md.tpr -o _GMXMMPBSA_LIG.pdb -n _GMXMMPBSA_COM_index.ndx
[INFO   ] Chains ID found. Ignoring chains ID assignation...
[INFO   ] Generating AMBER Compatible PDB Files...
[INFO   ] Building tleap input files...
[INFO   ] Running command: /home/user/software/Amber20/amber20/bin/tleap -f _GMXMMPBSA_leap.in -I /home/user/anaconda3/lib/python3.7/site-packages/GMXMMPBSA/data
[INFO   ] Cleaning normal complex trajectories...
[INFO   ] Running command: echo GMXMMPBSA_REC_GMXMMPBSA_LIG | /usr/local/gromacs/bin/gmx trjconv -f fbd.xtc -s md.tpr -o COM_traj_0.xtc -n _GMXMMPBSA_COM_index.ndx
[INFO   ] Building AMBER Topologies from GROMACS files...Done.[INFO   ] Loading and checking parameter files for compatibility...Preparing trajectories for simulation...
46 frames were processed by cpptraj for use in calculation.Running calculations on normal system...Beginning GB calculations with /home/user/software/Amber20/amber20/bin/mmpbsa_py_energycalculating complex contribution...calculating receptor contribution...calculating ligand contribution...Beginning PB calculations with /home/user/software/Amber20/amber20/bin/mmpbsa_py_energycalculating complex contribution...

gmx-MMPBSA — error while loading shared libraries: libgfortran.so.3: cannot open shared object file相关推荐

  1. 报错解决:cp: error while loading shared libraries: libc.so.6: cannot open shared object file: No such fi

    我的个人博客:zhang0peter的个人博客 先说一下为什么会发生这个错误,我看这篇博客:分享Centos6.5升级glibc过程 ,里面提到了如下命令: $ rm -rf /lib64/libc. ...

  2. ./ffmpeg: error while loading shared libraries: libx264.so.138: cannot open shared object file: No s

    在安装ffmpeg时,执行完 ./configure--enable-libx264 --enable-gpl --disable-yasm --prefix=/usr/local/ffmpeg ma ...

  3. linux android gradle构建机器 error while loading shared libraries: libz.so.1: cannot open shared object

    原因:64位 linux 机器缺少32位lib相关的支持库 如果yum 服务器上有 相关的库最好使用 yum 安装,其他 博客上使用 apt-file 安装. 查看libz.so.1属于 glic 库 ...

  4. 错误./hello: error while loading shared libraries: libQtGui.so.4: cannot open shared object file:

    之前一直想在ARM 上跑qt,但都出现错误: ./hello: error while loading shared libraries: libQtGui.so.4: cannot open sha ...

  5. ./mysqld: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such

    [root@iZbp10xlek93e0is7ye8o6Z bin]# ./mysqld --user=mysql --basedir=/usr/local/mysql-8.0 --datadir=/ ...

  6. ./mysqld: error while loading shared libraries: libnuma.so.1: cannot open shared object file: No suc

    ./mysqld: error while loading shared libraries: libnuma.so.1: cannot open shared object file: No suc ...

  7. nginx启动报错 :./nginx: error while loading shared libraries: libpcre.so.1: cannot open shared object fi

    jnydjky@jnydjky:/usr/local/nginx/sbin$ ./nginx ./nginx: error while loading shared libraries: libpcr ...

  8. 报错:error while loading shared libraries: libz.so.1: cannot open shared object file

    OS: Kali linux Compile toolchian: arm-none-linux-gnueabi# arm-none-linux-gnueabi-gcc hook.c arm-linu ...

  9. 启动Nginx时报错:error while loading shared libraries: librdkafka.so.1: cannot open shared object file: No

    安装了Nginx之后,启动时报错: error while loading shared libraries: librdkafka.so.1: cannot open shared object f ...

  10. snpslmd: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No su

    安装VCS lmg_vcs的时候遇到错误: snpslmd: error while loading shared libraries: libstdc++.so.6: cannot open sha ...

最新文章

  1. android开发重要控件,Android界面编程——Android基本控件
  2. 如何用TensorFlow在安卓设备上实现深度学习推断
  3. Linux学习笔记——例说makefile 综合案例
  4. ARM 之十四 ARMv9 架构前瞻
  5. jQuery使用ajaxStart()和ajaxStop()方法
  6. html中after对应的样式怎么写,css – 如何创建内联样式:before和:after
  7. linux版本的redis bin,Linux下安装Redis4.0版本(简便方法)
  8. 系统学习NLP(二十四)--详解Transformer (Attention Is All You Need)
  9. Scala下载与安装
  10. 数据库系统概念 第三章 习题答案
  11. Borderline-SMOTE算法介绍及Python实现【内附源代码】
  12. mysql 过滤微信昵称表情符号_js 过滤微信昵称的表情符号
  13. 深度Team Building
  14. STM8在STVD下开发所需的中断向量表模版
  15. 【MySQL--03】表的操作
  16. 华为早几年的服务器型号,云服务器一般用几年
  17. Mysql组复制(MGR)——前提及限制
  18. htmllt;pregt;标签,聊一聊HTML pre标签
  19. PHP Curl出现403错误的解决办法 beecloud webhook订单状态返回 服务器403的问题
  20. Android10.0 os定制化系列讲解导读

热门文章

  1. PHP 中的 use function是什么意思
  2. 华师在线计算机基础试题及答案,华师在线计算机基础试题的答案.doc
  3. 记录一次夏令时和冬令时导致的项目BUG
  4. Antd 修改 Table 悬浮颜色、表头背景色
  5. spring boot + Spring Security 入门
  6. 21世纪最牛逼思想家的心路历程小结———哲学、宿命论
  7. windows10笔记本如何开wifi热点
  8. vue 配置 微信SDK wifi功能
  9. VM虚拟机下添加一个硬盘
  10. 503错误的原因和解决方法