计算化学公社

标题: APBS安装问题 [打印本页]

作者
Author:
jackie    时间: 2019-2-16 17:18
标题: APBS安装问题
最近需要安装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!

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







作者
Author:
ene    时间: 2019-2-18 22:50
本帖最后由 ene 于 2019-2-18 22:52 编辑

APBS发布二进制包了啊……
https://sourceforge.net/projects/apbs/files/apbs/apbs-1.4.0/APBS-1.4-linux-static-x86_64.tar.gz/download
作者
Author:
ene    时间: 2019-2-18 22:54
sourceforge上还有其他1.4.x版本的二进制包,上面那个连接是1.4.0的,下载你需要的版本即可。
作者
Author:
mjluan    时间: 2019-9-2 15:30
ene 发表于 2019-2-18 22:50
APBS发布二进制包了啊……
https://sourceforge.net/projects/apbs/files/apbs/apbs-1.4.0/APBS-1.4-linux ...

请问这个安装包下载了之后要如何安装呢?
作者
Author:
ene    时间: 2019-9-2 17:28
mjluan 发表于 2019-9-2 15:30
请问这个安装包下载了之后要如何安装呢?

解压,添加环境变量就完事了。如果告诉缺库,那就缺啥补啥,下载对应的库的安装包补上。
作者
Author:
菜菜菜    时间: 2019-9-12 10:08
你好我现在下的这个二进制包,但是里面没有文件描述怎么添加环境变量?这不是应该有个说明什么的吗?
作者
Author:
jackie    时间: 2019-10-11 09:48
菜菜菜 发表于 2019-9-12 10:08
你好我现在下的这个二进制包,但是里面没有文件描述怎么添加环境变量?这不是应该有个说明什么的吗?

安装成功后确定可执行程序的安装路径,在~/.bashrc文件中source环境变量即可
作者
Author:
tjuptz    时间: 2020-2-29 21:14
本帖最后由 tjuptz 于 2020-2-29 21:39 编辑
ene 发表于 2019-9-2 17:28
解压,添加环境变量就完事了。如果告诉缺库,那就缺啥补啥,下载对应的库的安装包补上。

请教老师,我把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 LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/app/apbs1.5/lib 加上这句就可以了


作者
Author:
ene    时间: 2020-2-29 21:53
tjuptz 发表于 2020-2-29 21:14
请教老师,我把1.4.2解压放进去,然后再~/.bashrc文件种加入 export PATH=$PATH:/app/APBS-1.4.2-linux64 ...

export去了
作者
Author:
vandenberg    时间: 2020-3-17 10:49
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
请大神帮帮忙
作者
Author:
vandenberg    时间: 2020-3-17 11:00
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
作者
Author:
abin    时间: 2020-3-17 11:00
vandenberg 发表于 2020-3-17 10:49
我也遇到了这个问题,运行apbs提示
apbs: error while loading shared libraries: libmaloc.so.1: canno ...

请区分 PATH & LD_LIBRAY_PATH。
作者
Author:
M夜J    时间: 2020-4-2 08:07
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
感谢解答

作者
Author:
M夜J    时间: 2020-4-2 10:51
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文件了,重新下载安装了就解决了,
作者
Author:
小土豆    时间: 2020-6-11 09:16
vandenberg 发表于 2020-3-17 11:00
不好意思解决了
/root/APBS-1.5-linux64/lib环境变量不应该设置到PATH中,应该设置到 LD_LIBRARY_PATH中 ...

请问怎么添加环境变量呢
作者
Author:
小土豆    时间: 2020-6-11 10:21
M夜J 发表于 2020-4-2 10:51
已经解决了,是因为lib文件夹里面的libmaloc.so.1 等.1文件不知道为什么都不见了,全是后缀为so.1.0.0文件 ...

不好意思打扰一下,因为最近我也想用apbs计算,所以能麻烦您告知一下您是怎么添加环境变量的吗
作者
Author:
1900    时间: 2021-5-10 21:00
您好,我下载不了您说的apbs-pdb2pqr文件,可以麻烦您上传一下么?多谢
作者
Author:
1900    时间: 2021-5-14 14:14
你好,请问怎么安装apbs呀?我在网上没有搜到相关的教程。
作者
Author:
1900    时间: 2021-5-14 15:36
本帖最后由 1900 于 2021-5-14 15:37 编辑

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

作者
Author:
1900    时间: 2021-5-14 15:39
小土豆 发表于 2020-6-11 09:16
请问怎么添加环境变量呢

请问你解决了么?下面是我添加的环境变量,但是不work,我也不知道什么原因。请问,你现在是怎么添加的?
export LD_LIBRARY_PATH=$HOME/apbs/lib:${LD_LIBRARY_PATH} export
PATH=$HOME/apbs/bin:${PATH}
作者
Author:
zyj47    时间: 2021-12-28 10:01
apbs: error while loading shared libraries: libreadline.so.7: cannot open shared object file: No such file or directory
求助各位老师,出现这个错可能是什么原因?

作者
Author:
dimoo    时间: 2023-2-4 10:41
我在添加完环境变量后出现了如下的提示:APBS: error while loading shared libraries: libreadline.so.6: cannot open shared object file: No such file or directory
请问要如何解决




欢迎光临 计算化学公社 (http://bbs.keinsci.com/) Powered by Discuz! X3.3