C++ 为什么./configure libbitcoin系统在Raspian Butch上找不到boost库?

C++ 为什么./configure libbitcoin系统在Raspian Butch上找不到boost库?,c++,boost,raspberry-pi,raspbian,C++,Boost,Raspberry Pi,Raspbian,tl;医生:Boost在那里,但有问题。/configure不知道boost的路径 我克隆了libbitcoin系统,克隆了git checkout v3.6.0版,并遵循了以下步骤(日志如下所示): /configure使用退出 checking for boostlib >= 1.62.0... yes configure: boost_CPPFLAGS : -I/usr/include configure: boost_ISYS_CPPFLAGS : -isystem/usr/in

tl;医生:
Boost
在那里,但有问题。
/configure
不知道
boost
的路径


我克隆了
libbitcoin系统
,克隆了
git checkout v3.6.0版
,并遵循了以下步骤(日志如下所示):

/configure
使用退出

checking for boostlib >= 1.62.0... yes
configure: boost_CPPFLAGS : -I/usr/include
configure: boost_ISYS_CPPFLAGS : -isystem/usr/include
configure: boost_LDFLAGS : -L/usr/lib
configure: boost_BUILD_CPPFLAGS : -I/usr/include
checking whether the Boost::Chrono library is available... yes
configure: error: Could not find a version of the library!
我正在RP3B上运行一个Raspbian Buster。我安装了,运行良好。我没有安装
boost
,但它在我的系统上


首先,我认为
boost
有问题。在我用
sudo find/usr-type f-name“libboost*.so*”
找到的一条注释之后:

所以我怀疑
boost一切正常,对吧?(编辑:不,不是。)


以下是
/configure
之后的完整日志:

pi@raspberrypi:~/libbitcoin-system $ ./configure
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... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports the include directive... yes (GNU style)
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 dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -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 minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
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 ar... ar
checking the archiver (ar) interface... ar
checking build system type... armv7l-unknown-linux-gnueabihf
checking host system type... armv7l-unknown-linux-gnueabihf
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert armv7l-unknown-linux-gnueabihf file names to armv7l-unknown-linux-gnueabihf format... func_convert_file_noop
checking how to convert armv7l-unknown-linux-gnueabihf file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking dependency style of g++... (cached) gcc3
checking for a sed that does not truncate output... (cached) /bin/sed
checking whether make supports nested variables... (cached) yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking whether g++ supports C++11 features by default... yes
checking --with-pkgconfigdir option... ${exec_prefix}/lib/pkgconfig
checking --with-tests option... yes
checking --with-examples option... yes
checking --with-icu option... no
checking --with-png option... no
checking --with-qrencode option... no
checking --enable-ndebug option... yes
checking --enable-isystem option... no
checking for boostlib >= 1.62.0... yes
configure: boost_CPPFLAGS : -I/usr/include
configure: boost_ISYS_CPPFLAGS : -isystem/usr/include
configure: boost_LDFLAGS : -L/usr/lib
configure: boost_BUILD_CPPFLAGS : -I/usr/include
checking whether the Boost::Chrono library is available... yes
configure: error: Could not find a version of the library!
$/autogen.sh的输出

libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build-aux'.
libtoolize: copying file 'build-aux/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
configure.ac:36: installing 'build-aux/ar-lib'
configure.ac:36: installing 'build-aux/compile'
configure.ac:39: installing 'build-aux/config.guess'
configure.ac:39: installing 'build-aux/config.sub'
configure.ac:30: installing 'build-aux/install-sh'
configure.ac:30: installing 'build-aux/missing'
Makefile.am: installing 'build-aux/depcomp'
parallel-tests: installing 'build-aux/test-driver'
在我第一次安装
libbitcoin-secp256k1
时收到错误后,它工作正常


编辑:在一条评论之后,我告诉
/configure
在哪里可以找到
boost
,这有点帮助,但现在它正在退出
boost\u iostreams

checking for boostlib >= 1.62.0... yes
configure: boost_CPPFLAGS : -I/usr/include
configure: boost_ISYS_CPPFLAGS : -isystem/usr/include
configure: boost_LDFLAGS : -L/usr/lib/arm-linux-gnueabihf
configure: boost_BUILD_CPPFLAGS : -I/usr/include
checking whether the Boost::Chrono library is available... yes
checking for exit in -lboost_chrono... yes
configure: boost_chrono_LIBS : -lboost_chrono
checking whether the Boost::Date_Time library is available... yes
checking for exit in -lboost_date_time... yes
configure: boost_date_time_LIBS : -lboost_date_time
checking whether the Boost::Filesystem library is available... yes
checking for exit in -lboost_filesystem... yes
configure: boost_filesystem_LIBS : -lboost_filesystem
checking whether the Boost::IOStreams library is available... yes
checking for exit in -lboost_iostreams... no
checking for exit in -lboost_iostreams... (cached) no
configure: error: Could not link against boost_iostreams !

编辑:在另一条评论之后,我用
sudo apt install libboost-iostreams1.67-dev
更新了
boost\u iostreams
,它将
armhf
-文件安装在正确的位置

现在,
/configure
正在退出

checking whether the Boost::Locale library is available... yes
checking for exit in -lboost_locale... no
configure: error: Could not link against boost_locale !


我用
sudo apt install libboost dev解决了这个问题
我不愿意这样做,因为我读了其他评论,其中有人这样做,但它仍然不起作用,我想找出我(pre)的具体错误-在我的Raspian Butch上安装
boost

鉴于您在
/usr/lib/arm-linux-gnueabihf/
中找到了boost共享对象(使用
find/usr-type f-name“libboost*.so*”
),您必须让配置脚本知道如何在该位置查找boost库:

./configure --with-boost-libdir=/usr/lib/arm-linux-gnueabihf

接下来是其余的构建命令(make等)。

鉴于您在
/usr/lib/arm-linux-gnueabihf/
中找到了boost共享对象(使用
find/usr-type f-name“libboost*.so*”
),您必须让配置脚本知道如何在该位置查找boost库:

./configure --with-boost-libdir=/usr/lib/arm-linux-gnueabihf

然后是其余的构建命令(make等)。

boost在我使用过的任何版本中都不会生成“boost.so”文件。试试看:
find/usr-type f-name“libboost*.so*”
@sanderedycker谢谢!我找到了文件并更新了我的问题。但现在这可能是另一个问题了您需要查看配置日志文件,查看它在查找什么和没有找到什么如果
sudo apt install libboost-iostreams1.67-dev
修复了您的
boost iostreams
问题,您能猜出修复
boost locale
问题的命令吗?你可能想运行
sudo-apt-install-libboost-dev
@AlanBirtles是的,我理解。但是locale的67文件在那里,与iostream相反,iostream是另一个版本。另外,在其他问题和评论中,安装“libboost-dev”并没有解决问题,我不确定是否会把事情搞砸。但是它成功了,谢谢。尽管在我使用的任何版本中.boost都不会生成“boost.so”文件,但我仍然必须给出路径。试试看:
find/usr-type f-name“libboost*.so*”
@sanderedycker谢谢!我找到了文件并更新了我的问题。但现在这可能是另一个问题了您需要查看配置日志文件,查看它在查找什么和没有找到什么如果
sudo apt install libboost-iostreams1.67-dev
修复了您的
boost iostreams
问题,您能猜出修复
boost locale
问题的命令吗?你可能想运行
sudo-apt-install-libboost-dev
@AlanBirtles是的,我理解。但是locale的67文件在那里,与iostream相反,iostream是另一个版本。另外,在其他问题和评论中,安装“libboost-dev”并没有解决问题,我不确定是否会把事情搞砸。但是它成功了,谢谢。尽管如此,我仍然必须给出路径。这很有帮助,但我现在在
boost\u iostreams
中遇到了一个错误。我在底部的问题中更新了它。@Ben:请注意,您安装的iostreams库(
/usr/lib/arm-linux-gnueabihf/libboost_iostreams.so.1.58.0
)是旧版本。你需要确保你也有1.67版本。这很有帮助,但我现在在
boost\u iostreams
中遇到了一个错误。我在底部的问题中更新了它。@Ben:请注意,您安装的iostreams库(
/usr/lib/arm-linux-gnueabihf/libboost_iostreams.so.1.58.0
)是旧版本。你需要确保你也有1.67版本。
./configure --with-boost-libdir=/usr/lib/arm-linux-gnueabihf