安装xssp(DSSP的新版本)时出错

2024-06-13 21:02:56 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试安装xssp 3.0.9。我已成功下载并解压缩文件。但是配置和构建xssp可执行文件失败,并显示错误消息。对于命令,./autogen.sh运行没有问题,但是对于命令,./configure我得到了这个消息,我认为boost库有问题。你知道吗


checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for perl... perl
checking for cppcheck... no
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for boostlib >= 1.48... configure: We could not detect the boost libraries (version 1.48 or higher). If you have a staged boost library (still not installed) please specify $BOOST_ROOT in your environment and do not give a PATH to --with-boost option.  If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation.
checking whether the Boost::Date_Time library is available... no
checking whether the Boost::Filesystem library is available... no
checking whether the Boost::IOStreams library is available... no
checking whether the Boost::Program_Options library is available... no
checking whether the Boost::Regex library is available... no
checking whether the Boost::System library is available... no
checking whether the Boost::Thread library is available... no
checking whether the Boost::Unit_Test_Framework library is available... no
checking for main in -lzeep... no
configure: WARNING: libzeep not found - fetch-dbrefs is disabled in mkhssp
./configure: line 6868: test: : integer expression expected
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking bzlib.h usability... yes
checking bzlib.h presence... yes
checking for bzlib.h... yes
checking for main in -lbz2... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for main in -lz... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for inline... inline
checking for int16_t... yes
checking for int32_t... yes
checking for int64_t... yes
checking for int8_t... yes
checking for size_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for uint8_t... yes
checking for error_at_line... yes
checking for pid_t... yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking for dup2... yes
checking for floor... no
checking for pow... no
checking for socket... yes
checking for sqrt... no
checking for strchr... yes
checking for strerror... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: executing depfiles commands

在运行命令make时,我收到了以下消息

perl mtrx/mkmat_h.pl mtrx/
make  all-am
make[1]: Entering directory '/home/islem/xssp-3.0.9'
depbase=`echo src/dssp.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
g++ -DHAVE_CONFIG_H -I.  -std=c++11 -pedantic -Wall -Werror -Wno-reorder -I/include/boost-0 -I./src/   -g -O2 -MT src/dssp.o -MD -MP -MF $depbase.Tpo -c -o src/dssp.o src/dssp.cpp &&\
mv -f $depbase.Tpo $depbase.Po
In file included from src/dssp.cpp:11:0:
src/mas.h:31:10: fatal error: boost/version.hpp: No such file or directory
 #include <boost/version.hpp>
          ^~~~~~~~~~~~~~~~~~~
compilation terminated.
Makefile:671: recipe for target 'src/dssp.o' failed
make[1]: *** [src/dssp.o] Error 1
make[1]: Leaving directory '/home/islem/xssp-3.0.9'
Makefile:479: recipe for target 'all' failed
make: *** [all] Error 2

请问,如何修复此错误以使用xssp?你知道吗


Tags: thenosrcformakeislibraryyes