As reported by a few people on IRC.
Installing libboost-{system,filesystem,chrono,program-options,thread,test}1.54{-dev,.0} manually seems to work.
As reported by a few people on IRC.
Installing libboost-{system,filesystem,chrono,program-options,thread,test}1.54{-dev,.0} manually seems to work.
@laanwj it prevents compilation
0checking for boostlib >= 1.20.0... yes
1checking whether the Boost::System library is available... yes
2configure: error: Could not find a version of the library!
I just upgraded my laptop to Ubuntu 13.10 (Salamander Sauce). This indeed installed boost 1.53:
0libboost-chrono1.53-dev:amd64 install
1libboost-date-time1.53-dev:amd64 install
2libboost-dev:amd64 install
3libboost-filesystem-dev:amd64 install
4libboost-filesystem1.53-dev:amd64 install
5libboost-iostreams-dev install
6libboost-iostreams1.53-dev:amd64 install
7libboost-program-options-dev:amd64 install
8libboost-program-options1.53-dev:amd64 install
9libboost-regex1.53-dev:amd64 install
10libboost-serialization1.53-dev:amd64 install
11libboost-system-dev:amd64 install
12libboost-system1.53-dev:amd64 install
13libboost-test-dev:amd64 install
14libboost-test1.53-dev:amd64 install
15libboost-thread-dev:amd64 install
16libboost-thread1.53-dev:amd64 install
17libboost1.53-dev:amd64 install
No problems encountered configuring bitcoin:
0checking for boostlib >= 1.20.0... yes
1checking whether the Boost::System library is available... yes
2checking for exit in -lboost_system... yes
3checking whether the Boost::Filesystem library is available... yes
4checking for exit in -lboost_filesystem... yes
5checking whether the Boost::Program_Options library is available... yes
6checking for exit in -lboost_program_options... yes
7checking whether the Boost::Thread library is available... yes
8checking for exit in -lboost_thread... yes
9checking whether the Boost::Chrono library is available... yes
10checking whether the Boost::Unit_Test_Framework library is available... yes
Did you install all the necessary libboost-XXX-dev dependency packages?
I did libboost-all-dev and no luck.
What I did not find was anything in /usr/lib about boost after installing all packages.
Sent from my iPhone
On Nov 8, 2013, at 6:27 AM, “Wladimir J. van der Laan” notifications@github.com wrote:
libboost-XXX-dev
Hmm that’s not much more illuminating:
0configure:10381: $? = 0
1configure:10396: result: yes
2configure:10555: error: Could not find a version of the library!
likely we need to update the README to specify the packages separately instead of libboost-all-dev, as that’s what I did, I never installed libboost-all-dev.
+1 specifying packages separately. libboost-all-dev installs a crapload of packages that are apparently not needed by bitcoin. Still I think the console output is misleading:
0checking whether the Boost::System library is available... yes
1configure: error: Could not find a version of the library!
What library?
Yes, the output is misleading. I have no clue what library it’s complaining about, and there doesn’t seem to be a way to find out except for diving into tons of autogenerated neigh-unreadable bash script.
I see the problem with specifying the packages separately is that some packages such as libboost-chrono1.53-dev don’t have versionless aliases. I wonder if boost-all-dev catches them.
Please read my post above, I did get it to work with boost 1.53.
If you install exactly the boost dev packages mentioned it should work.
I’ve been able to reproduce this in a VM.
The problem is that the configure script looks for boost libraries in /usr/lib64
(the value of BOOSTLIBDIR). However, they are not installed there but in /usr/lib/x86_64-linux-gnu/
.
A temporary fix is to use ./configure --with-boost-libdir=/usr/lib/x86_64-linux-gnu
.
See #3232
Does this work for i386 (32 bit Ubuntu 13.10)? I am going to try this:
Seemed to work. See debugging log processing blocks.
0./configure --with-boost-libdir=/usr/lib/i386-linux-gnu
Fixed this issue for me
Yes, On ARM (hardfloat) you need to provide:
0--with-boost-libdir=/usr/lib/arm-linux-gnueabihf
I’m starting to see a pattern here :)
@theuni I’ve added some debug statements to ax_boost_base. The problem is that it thinks the lib directory will be armv7l-linux-gnueabihf
, where it is arm-linux-gnueabihf
. The default library path detection makes some assumptions.
Could we use g++ -print-search-dirs
, and extract the libraries section, here instead?
The error messages probably need to be more verbose in case the library search fails - where did it look, what exactly didn’t it find - the code is opaque, the only way I’ve been able to debug it (every time) was to litter the m4 with debug statements.
It is boost that complicates finding it by not supporting the standard ways of finding packages, such as pkg-config.
I am trying to build NFD. While running the command ./waf configure, it gives the following error.
checking boost linkage: Could not link against boost libraries using supplied options
Tried several options to resolve the boost linkage error but could not make it. It is running in Ubuntu 14.04. Please help.
@paulbrittain So does this work?
A temporary fix is to use ./configure –with-boost-libdir=/usr/lib/x86_64-linux-gnu
Should be fixed on master but I have no idea what version you’re trying to compile.
@laanwj I also ran into that issue while configuring Ekiga 4.0.1 on KUbuntu 16.04. I tried running the command in the first post with the newest version from the Ubuntu repos (1.58) and I also tried to pass the libdir with no success:
./configure --with-lib-dir=/usr/lib/x86_64-linux-gnu
checking for boostlib >= 1.34... yes
checking whether the Boost::Signals library is available... yes
configure: error: Could not find a version of the library!
Any other Idea?
apt install libboost-all-dev
works for me
on ubuntu 17.10:
after : sudo apt install libboost-all-dev
checking whether the Boost::IOStreams library is available… yes configure: error: Could not find a version of the library!
I have the same problem on Raspian Buster. When I ./configure
libbitcoin-system
it exits with `checking whether the Boost::Chrono library is available… yes
configure: error: Could not find a version of the library!`