|
|
最近需要安装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
-
查看全部评分 View all ratings
|