计算化学公社

 找回密码 Forget password
 注册 Register
Views: 26888|回复 Reply: 21
打印 Print 上一主题 Last thread 下一主题 Next thread

[其它程序] APBS安装问题

[复制链接 Copy URL]

129

帖子

0

威望

955

eV
积分
1084

Level 4 (黑子)

最近需要安装g_mmpbsa程序进行binding free energy计算。在此之前需要安装Gromacs和APBS应用程序。Gromacs程序已经安装完成,目前使用是5.0.7版本。按照网页上教程所说接下来需要安装APBS1.4版本,使用如下命令:# Download using git from GitHub repository
git clone -b 1.4.1-binary-release --single-branch https://github.com/Electrostatics/apbs-pdb2pqr
cd apbs-pdb2pqr
cd apbs
cd build
sh cleanup.sh
# Installation
cmake -DCMAKE_INSTALL_PREFIX=/opt/apbs -DENABLE_BEM=off -DENABLE_iAPBS=on ..
make
sudo make install

但是,当再执行sh cleanup.sh命令的时候出现如下报错:
[root@localhost build]# sh cleanup.sh
rm: missing operand
Try 'rm --help' for more information.


于是看了一下cleanup.sh脚本文件里的内容:
[root@localhost build]# cat cleanup.sh
#!/bin/bash

rm -rf ../bin/* ../tools/bin/* ../lib/* CMakeFiles CMakeCache.txt cmake_install.cmake Makefile src install_manifest.txt apbs.cbp maloc-prefix tools fontconfig ../tests/*.pyc ../tests/io.mc ../tests/test.log doc ../doc/programmer/html ../doc/programmer/programmer.html ../doc/programmer/mainpage.h ../doc/programmer/Doxyfile ../doc/programmer/latex ../doc/programmer/programmer.pdf

find .. -name '*~' | xargs rm


发现,脚本里要删除的目录或者文件实际上有一些是不存在的,build文件夹上一级目录里的内容显示的就没有bin和lib目录等:
[root@localhost apbs]# ls
build/       BUILD.md          CMakeLists.txt  examples/       include/      README.md  test_jenkins  tools/
BUILD.html  buildWithFETK.sh  contrib/         fetk-1.5_APBS/  README.html  src/        tests/


所以我不清楚是这个脚本写的有问题还是缺少相关文件,还是我操作的问题?

于是先不理会,直接跳到下一步执行cmake命令也是出现了一些错误,如下:
[root@localhost build]# cmake -DCMAKE_INSTALL_PREFIX=/usr/local/apbs -DENABLE_BEM=off -DENABLE_iAPBS=on ..
-- The C compiler identification is GNU 4.8.5
-- The CXX compiler identification is GNU 4.8.5
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Setting project paths
-- Setting lookup paths for headers and libraries
-- Computing machine epsilon values
-- Floating point epsilon is 2.220446e-16
-- Double precision epsilon is 2.220446e-16
-- Looking for time
-- Looking for time - found
-- Looking for rand
-- Looking for rand - found
-- Looking for srand
-- Looking for srand - found
CMake Warning at CMakeLists.txt:231 (message):
  Did not find fetk


CMake Warning at CMakeLists.txt:242 (message):
  External maloc library was not found.


-- Looking for include file maloc/maloc.h
-- Looking for include file maloc/maloc.h - not found
CMake Warning at CMakeLists.txt:255 (message):
  External maloc headers not found.


-- Using internal contributed maloc library
-- Inline functions enabled
-- Checking for OpenMP
-- Found OpenMP_C: -fopenmp (found version "3.1")
-- Found OpenMP_CXX: -fopenmp (found version "3.1")
-- Found OpenMP: TRUE (found version "3.1")  
-- OpenMP support enabled
libs: -L/home/xiaowen/sw/apbs-pdb2pqr/apbs/build/lib -lapbs_geoflow-lmaloc-lm-fopenmp
-- Adding apbs_generic
-- With source files nosh.c;mgparm.c;femparm.c;pbeparm.c;bemparm.c;geoflowparm.c;apolparm.c;vacc.c;valist.c;vatom.c;vpbe.c;vcap.c;vclist.c;vstring.c;vparam.c;vgreen.c
-- With external header files nosh.h;mgparm.h;femparm.h;pbeparm.h;bemparm.h;geoflowparm.h;apolparm.h;vacc.h;valist.h;vatom.h;vpbe.h;vcap.h;vclist.h;vstring.h;vparam.h;vgreen.h;vmatrix.h;vhal.h;vunit.h
-- With internal header files
-- With library dependencies -L/home/xiaowen/sw/apbs-pdb2pqr/apbs/build/lib -lapbs_geoflow;-lmaloc;-lm;-fopenmp
-- Added apbs_generic
-- Adding apbs_pmgc
-- With source files buildAd.c;buildBd.c;buildGd.c;buildPd.c;cgd.c;gsd.c;matvecd.c;mgcsd.c;mgdrvd.c;mgsubd.c;mikpckd.c;mlinpckd.c;mypdec.c;newtond.c;newdrvd.c;powerd.c;smoothd.c;mgfasd.c
-- With external header files buildAd.h;buildBd.h;buildGd.h;buildPd.h;cgd.h;gsd.h;matvecd.h;mgcsd.h;mgdrvd.h;mgsubd.h;mikpckd.h;mlinpckd.h;mypdec.h;newtond.h;newdrvd.h;powerd.h;smoothd.h;mgfasd.h
-- With internal header files
-- With library dependencies -L/home/xiaowen/sw/apbs-pdb2pqr/apbs/build/lib -lapbs_geoflow;-lmaloc;-lm;-fopenmp
-- Added apbs_pmgc
-- Adding apbs_mg
-- With source files vgrid.c;vmgrid.c;vopot.c;vpmg.c;vpmgp.c
-- With external header files vgrid.h;vmgrid.h;vopot.h;vpmg.h;vpmgp.h
-- With internal header files
-- With library dependencies -L/home/xiaowen/sw/apbs-pdb2pqr/apbs/build/lib -lapbs_geoflow;-lmaloc;-lm;-fopenmp;apbs_generic;apbs_pmgc
-- Added apbs_mg
CMake Error at src/CMakeLists.txt:49 (add_subdirectory):
  add_subdirectory given source "geoflow" which is not an existing directory.


--
--  
-- -L/home/xiaowen/sw/apbs-pdb2pqr/apbs/build/lib -lapbs_geoflow;-lmaloc;-lm;-fopenmp apbs_generic;apbs_pmgc;apbs_mg
--  
-- -std=c99
-- Supplemental tools enabled
-- Building mesh
-- libraries: apbs_generic;apbs_mg;apbs_pmgc
-- Building manip
-- libraries: apbs_generic;apbs_mg;apbs_pmgc
-- Installing maloc headers
-- Building of iAPBS interface enabled
-- Configuring incomplete, errors occurred!

目前还不知道是什么原因没有解决,希望各位老师帮忙看一下,很感谢。






评分 Rate

参与人数
Participants 1
eV +1 收起 理由
Reason
国小药 + 1 赞!

查看全部评分 View all ratings

11

帖子

0

威望

216

eV
积分
227

Level 3 能力者

22#
发表于 Post on 2023-2-4 10:41:13 | 只看该作者 Only view this author
我在添加完环境变量后出现了如下的提示:APBS: error while loading shared libraries: libreadline.so.6: cannot open shared object file: No such file or directory
请问要如何解决

4

帖子

0

威望

85

eV
积分
89

Level 2 能力者

21#
发表于 Post on 2021-12-28 10:01:02 | 只看该作者 Only view this author
apbs: error while loading shared libraries: libreadline.so.7: cannot open shared object file: No such file or directory
求助各位老师,出现这个错可能是什么原因?

70

帖子

0

威望

233

eV
积分
303

Level 3 能力者

20#
发表于 Post on 2021-5-14 15:39:53 | 只看该作者 Only view this author
小土豆 发表于 2020-6-11 09:16
请问怎么添加环境变量呢

请问你解决了么?下面是我添加的环境变量,但是不work,我也不知道什么原因。请问,你现在是怎么添加的?
export LD_LIBRARY_PATH=$HOME/apbs/lib:${LD_LIBRARY_PATH} export
PATH=$HOME/apbs/bin:${PATH}

70

帖子

0

威望

233

eV
积分
303

Level 3 能力者

19#
发表于 Post on 2021-5-14 15:36:20 | 只看该作者 Only view this author
本帖最后由 1900 于 2021-5-14 15:37 编辑

请问我按照如图设置环境变量为什么不work呀?哪里出错了么?
export LD_LIBRARY_PATH=$HOME/apbs/lib:${LD_LIBRARY_PATH} export
PATH=$HOME/apbs/bin:${PATH}

202105141535206889..png (17.49 KB, 下载次数 Times of downloads: 72)

202105141535206889..png

70

帖子

0

威望

233

eV
积分
303

Level 3 能力者

18#
发表于 Post on 2021-5-14 14:14:28 | 只看该作者 Only view this author
你好,请问怎么安装apbs呀?我在网上没有搜到相关的教程。

70

帖子

0

威望

233

eV
积分
303

Level 3 能力者

17#
发表于 Post on 2021-5-10 21:00:19 | 只看该作者 Only view this author
您好,我下载不了您说的apbs-pdb2pqr文件,可以麻烦您上传一下么?多谢

31

帖子

0

威望

187

eV
积分
218

Level 3 能力者

16#
发表于 Post on 2020-6-11 10:21:50 | 只看该作者 Only view this author
M夜J 发表于 2020-4-2 10:51
已经解决了,是因为lib文件夹里面的libmaloc.so.1 等.1文件不知道为什么都不见了,全是后缀为so.1.0.0文件 ...

不好意思打扰一下,因为最近我也想用apbs计算,所以能麻烦您告知一下您是怎么添加环境变量的吗

31

帖子

0

威望

187

eV
积分
218

Level 3 能力者

15#
发表于 Post on 2020-6-11 09:16:19 | 只看该作者 Only view this author
vandenberg 发表于 2020-3-17 11:00
不好意思解决了
/root/APBS-1.5-linux64/lib环境变量不应该设置到PATH中,应该设置到 LD_LIBRARY_PATH中 ...

请问怎么添加环境变量呢

2

帖子

0

威望

364

eV
积分
366

Level 3 能力者

14#
发表于 Post on 2020-4-2 10:51:42 | 只看该作者 Only view this author
M夜J 发表于 2020-4-2 08:07
apbs: error while loading shared libraries: libmaloc.so.1: cannot open shared object file: No such ...

已经解决了,是因为lib文件夹里面的libmaloc.so.1 等.1文件不知道为什么都不见了,全是后缀为so.1.0.0文件了,重新下载安装了就解决了,

2

帖子

0

威望

364

eV
积分
366

Level 3 能力者

13#
发表于 Post on 2020-4-2 08:07:41 | 只看该作者 Only view this author
tjuptz 发表于 2020-2-29 21:14
请教老师,我把1.5解压放进去,然后再~/.bashrc文件种加入 export PATH=$PATH:/app/apbs1.5/bin 咋把环境 ...

apbs: error while loading shared libraries: libmaloc.so.1: cannot open shared object file: No such file or directory
请问按照你说的两个路径都添加了,还是不对,还是显示这句怎么办呢?
附上我的路径export PATH=$PATH:/sob/apbs1.4.8/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/sob/apbs1.4.8/lib
感谢解答

评分 Rate

参与人数
Participants 1
eV +5 收起 理由
Reason
黄舒伟 + 5 正解

查看全部评分 View all ratings

2425

帖子

1

威望

6196

eV
积分
8641

Level 6 (一方通行)

12#
发表于 Post on 2020-3-17 11:00:47 | 只看该作者 Only view this author
vandenberg 发表于 2020-3-17 10:49
我也遇到了这个问题,运行apbs提示
apbs: error while loading shared libraries: libmaloc.so.1: canno ...

请区分 PATH & LD_LIBRAY_PATH。
High-Performance Computing for You
为您专属定制的高性能计算解决方案

更多讯息,请访问:
https://labitc.top
http://tophpc.top:8080
电邮: ask@hpc4you.top

52

帖子

0

威望

223

eV
积分
275

Level 3 能力者

11#
发表于 Post on 2020-3-17 11:00:37 | 只看该作者 Only view this author
vandenberg 发表于 2020-3-17 10:49
我也遇到了这个问题,运行apbs提示
apbs: error while loading shared libraries: libmaloc.so.1: canno ...

不好意思解决了
/root/APBS-1.5-linux64/lib环境变量不应该设置到PATH中,应该设置到 LD_LIBRARY_PATH中
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH/root/APBS-1.5-linux64/lib:$ LD_LIBRARY_PATH

52

帖子

0

威望

223

eV
积分
275

Level 3 能力者

10#
发表于 Post on 2020-3-17 10:49:53 | 只看该作者 Only view this author
tjuptz 发表于 2020-2-29 21:14
请教老师,我把1.5解压放进去,然后再~/.bashrc文件种加入 export PATH=$PATH:/app/apbs1.5/bin 咋把环境 ...

我也遇到了这个问题,运行apbs提示
apbs: error while loading shared libraries: libmaloc.so.1: cannot open shared object file: No such file or directory
这个库文件实际上是存在的,在lib路径里
这是我的环境变量:
export PATH=/opt/gromacs-5.1.2/bin:$PATH
export PATH=/usr/bin/python3.5:$PATH
export PATH=/root/g_mmpbsa/bin:$PATH
export PATH=/root/APBS-1.5-linux64/bin:$PATH
export PATH=/root/APBS-1.5-linux64/lib:$PATH
请大神帮帮忙

224

帖子

5

威望

4581

eV
积分
4905

Level 6 (一方通行)

9#
发表于 Post on 2020-2-29 21:53:22 | 只看该作者 Only view this author
tjuptz 发表于 2020-2-29 21:14
请教老师,我把1.4.2解压放进去,然后再~/.bashrc文件种加入 export PATH=$PATH:/app/APBS-1.4.2-linux64 ...

export去了
我需要一些假日,但我不希望每天都是假日。因为我没有承担痛苦,因为那不是真正的自由。

手机版 Mobile version|北京科音自然科学研究中心 Beijing Kein Research Center for Natural Sciences|京公网安备 11010502035419号|计算化学公社 — 北京科音旗下高水平计算化学交流论坛 ( 京ICP备14038949号-1 )|网站地图

GMT+8, 2026-2-21 11:53 , Processed in 0.221673 second(s), 34 queries , Gzip On.

快速回复 返回顶部 返回列表 Return to list