我正在尝试从https://github.com/plumed/plumed2.git安装一个名为PLUMED的软件。但是,在执行命令./configure --prefix=/home/wei-tse/Documents/Software/PLUMED/plumed2_build
时,我始终收到以下错误消息:
configure: Optional modules are disabled by default
checking for mpic++... mpic++
checking whether the C++ compiler works... no
configure: error: in `/home/wei-tse/Documents/Software/PLUMED/plumed2':
configure: error: C++ compiler cannot create executables
See `config.log' for more details
这很奇怪,因为当我第一次安装PLUMED时(例如一年前),我没有此错误消息。我已经检查过config.log
并查找了该问题的可能解决方案,但对于如何解决这个问题我仍然一无所知。有人可以帮我吗? config.log
如下所示。非常感谢!!
config.log
的内容:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by PLUMED configure 2, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure --prefix=/home/wei-tse/Documents/Software/PLUMED/plumed2_build
## --------- ##
## Platform. ##
## --------- ##
hostname = castlepeak
uname -m = x86_64
uname -r = 5.3.0-40-generic
uname -s = Linux
uname -v = #32~18.04.1-Ubuntu SMP Mon Feb 3 14:05:59 UTC 2020
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /usr/local/bin/dssp
PATH: /home/wei-tse/amber18/bin
PATH: /home/wei-tse/Documents/KBD_project
PATH: /home/wei-tse/Documents/Software/openeye/arch/Ubuntu-16.04-x64/quacpac
PATH: /usr/local/bin/dssp
PATH: /home/wei-tse/amber18/bin
PATH: /home/wei-tse/Documents/KBD_project
PATH: /home/wei-tse/Documents/Software/openeye/arch/Ubuntu-16.04-x64/quacpac
PATH: /usr/local/bin/dssp
PATH: /home/wei-tse/amber18/bin
PATH: /home/wei-tse/Documents/KBD_project
PATH: /home/wei-tse/Documents/Software/openeye/arch/Ubuntu-16.04-x64/quacpac
PATH: /usr/local/gromacs/bin
PATH: /usr/local/bin/dssp
PATH: /home/wei-tse/amber18/bin
PATH: /home/wei-tse/Documents/KBD_project
PATH: /home/wei-tse/Documents/Software/openeye/arch/Ubuntu-16.04-x64/quacpac
PATH: /usr/local/bin/dssp
PATH: /home/wei-tse/amber18/bin
PATH: /home/wei-tse/Documents/KBD_project
PATH: /home/wei-tse/Documents/Software/openeye/arch/Ubuntu-16.04-x64/quacpac
PATH: /home/wei-tse/.local/bin
PATH: /usr/local/bin/dssp
PATH: /home/wei-tse/amber18/bin
PATH: /home/wei-tse/Documents/KBD_project
PATH: /home/wei-tse/Documents/Software/openeye/arch/Ubuntu-16.04-x64/quacpac
PATH: /home/wei-tse/anaconda3/bin
PATH: /home/wei-tse/anaconda3/condabin
PATH: /home/wei-tse/.local/bin
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/games
PATH: /usr/local/games
PATH: /snap/bin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2424: Optional modules are disabled by default
configure:3366: checking for mpic++
configure:3382: found /home/wei-tse/anaconda3/bin/mpic++
configure:3393: result: mpic++
configure:3420: checking for C++ compiler version
configure:3429: mpic++ --version >&5
/home/wei-tse/anaconda3/bin/mpic++: line 283: x86_64-conda_cos6-linux-gnu-c++: command not found
configure:3440: $? = 127
configure:3429: mpic++ -v >&5
mpicxx for MPICH version 3.3.2
/home/wei-tse/anaconda3/bin/mpic++: line 299: x86_64-conda_cos6-linux-gnu-c++: command not found
configure:3440: $? = 127
configure:3429: mpic++ -V >&5
/home/wei-tse/anaconda3/bin/mpic++: line 283: x86_64-conda_cos6-linux-gnu-c++: command not found
configure:3440: $? = 127
configure:3429: mpic++ -qversion >&5
/home/wei-tse/anaconda3/bin/mpic++: line 283: x86_64-conda_cos6-linux-gnu-c++: command not found
configure:3440: $? = 127
configure:3460: checking whether the C++ compiler works
configure:3482: mpic++ -O3 conftest.cpp >&5
/home/wei-tse/anaconda3/bin/mpic++: line 283: x86_64-conda_cos6-linux-gnu-c++: command not found
configure:3486: $? = 127
configure:3524: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "PLUMED"
| #define PACKAGE_TARNAME "plumed"
| #define PACKAGE_VERSION "2"
| #define PACKAGE_STRING "PLUMED 2"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3529: error: in `/home/wei-tse/Documents/Software/PLUMED/plumed2':
configure:3531: error: C++ compiler cannot create executables
See `config.log' for more details
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_env_BASH_COMPLETION_DIR_set=
ac_cv_env_BASH_COMPLETION_DIR_value=
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_FCFLAGS_set=
ac_cv_env_FCFLAGS_value=
ac_cv_env_FC_set=
ac_cv_env_FC_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LDSHARED_set=
ac_cv_env_LDSHARED_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_MPIEXEC_set=
ac_cv_env_MPIEXEC_value=
ac_cv_env_PYTHON_BIN_set=
ac_cv_env_PYTHON_BIN_value=
ac_cv_env_SOEXT_set=
ac_cv_env_SOEXT_value=
ac_cv_env_STATIC_LIBS_set=
ac_cv_env_STATIC_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_prog_ac_ct_CXX=mpic++
## ----------------- ##
## Output variables. ##
## ----------------- ##
AR_CR=''
BASH_COMPLETION_DIR=''
CC=''
CFLAGS=''
CPPFLAGS=''
CXX='mpic++'
CXXCPP=''
CXXFLAGS='-O3'
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
FC=''
FCFLAGS=''
GREP=''
LDFLAGS=''
LDSHARED=''
LD_RO=''
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
MPIEXEC=''
OBJEXT=''
OPENMP_CXXFLAGS=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME='PLUMED'
PACKAGE_STRING='PLUMED 2'
PACKAGE_TARNAME='plumed'
PACKAGE_URL=''
PACKAGE_VERSION='2'
PATH_SEPARATOR=':'
PYTHON_BIN=''
SHELL='/bin/bash'
SOEXT=''
STATIC_LIBS=''
ac_ct_CC=''
ac_ct_CXX='mpic++'
ac_ct_FC=''
bindir='${exec_prefix}/bin'
build_alias=''
build_dir=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
disable_dependency_tracking=''
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dot=''
doxygen=''
dvidir='${docdir}'
exec_prefix='NONE'
host_alias=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
make_doc=''
make_pdfdoc=''
make_static_archive=''
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
pkgconfig_bin=''
prefix='/home/wei-tse/Documents/Software/PLUMED/plumed2_build'
program_can_run=''
program_can_run_mpi=''
program_name=''
program_transform_name='s,x,x,'
psdir='${docdir}'
readelf=''
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
use_absolute_soname=''
use_loader_path=''
xxd=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
/* confdefs.h */
#define PACKAGE_NAME "PLUMED"
#define PACKAGE_TARNAME "plumed"
#define PACKAGE_VERSION "2"
#define PACKAGE_STRING "PLUMED 2"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""
configure: exit 77