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.
:+1: (personally) confirmed.
How does it not work? Does it generate an error message during runtime or compilation? If so which one?
@laanwj it prevents compilation
checking for boostlib >= 1.20.0... yes
checking whether the Boost::System library is available... yes
configure: error: Could not find a version of the library!
Can you pastebin the config.log somewhere?
@laanwj I think it's too late, if config.log is not appended each time configure is exec, then mine only have the logs after installing proper packages sipa said and there fore it compiled properly (except for bdb too which was throwing an error).
I just upgraded my laptop to Ubuntu 13.10 (Salamander Sauce). This indeed installed boost 1.53:
libboost-chrono1.53-dev:amd64 install
libboost-date-time1.53-dev:amd64 install
libboost-dev:amd64 install
libboost-filesystem-dev:amd64 install
libboost-filesystem1.53-dev:amd64 install
libboost-iostreams-dev install
libboost-iostreams1.53-dev:amd64 install
libboost-program-options-dev:amd64 install
libboost-program-options1.53-dev:amd64 install
libboost-regex1.53-dev:amd64 install
libboost-serialization1.53-dev:amd64 install
libboost-system-dev:amd64 install
libboost-system1.53-dev:amd64 install
libboost-test-dev:amd64 install
libboost-test1.53-dev:amd64 install
libboost-thread-dev:amd64 install
libboost-thread1.53-dev:amd64 install
libboost1.53-dev:amd64 install
No problems encountered configuring bitcoin:
checking for boostlib >= 1.20.0... yes
checking whether the Boost::System library is available... yes
checking for exit in -lboost_system... yes
checking whether the Boost::Filesystem library is available... yes
checking for exit in -lboost_filesystem... yes
checking whether the Boost::Program_Options library is available... yes
checking for exit in -lboost_program_options... yes
checking whether the Boost::Thread library is available... yes
checking for exit in -lboost_thread... yes
checking whether the Boost::Chrono library is available... yes
checking 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
Ok, I'm assuming it was a fluke or you were missing some package. There is no way to find this out anymore, so closing this issue.
I can confirm this is not a fluke. @laanwj I just personally mailed you my config.log after I ran ./configure with libboost-all-dev installed but none of the boost 1.54 packages. I was able to run the script with the 1.54 packages.
Hmm that's not much more illuminating:
configure:10381: $? = 0
configure:10396: result: yes
configure: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:
checking whether the Boost::System library is available... yes
configure: 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.
I understand versionless aliases is exactly what we don't want, since bitcoin works with boost 1.54 and not with boost 1.53. When I was still running Ubuntu 13.04, libboost-all-dev included all needed boost deps (and a lot more), so I assume under 13.10 it can work also if it included the necessary versions.
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 was compiling it under a new, clean, Ubuntu 13.10 virtual machine in Azure.
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.
./configure --with-boost-libdir=/usr/lib/i386-linux-gnu
Fixed this issue for me
Same error and fix under Ubuntu 14.04 .. Please remember to enhance the error message if possible...
Yes, On ARM (hardfloat) you need to provide:
--with-boost-libdir=/usr/lib/arm-linux-gnueabihf
I'm starting to see a pattern here :)
I've got a few boost m4 changes queued up. I'll add this to the 'to-fix-before-pushing-upstream' list.
@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?
Yea, that's a good idea. Will play with it.
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.
What is NFD and waf?
Ran into this issue while configuring Ekiga 4.0.1 on Kali.
@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!
@cameronbergh If that issue persists after starting with a clean tree, after following the instructions building Bitcoin core 0.16.0 or master, please open a new issue. A comment on an issue of 5 years ago is going to fall between the cracks. FWIW I've just successfully configured and built master on Ubuntu 17.10, but it might be something conflicting in your setup.
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!`
@bvrules Exactly the same comment for you: please create a new issue with detailed information about your system and installed packages, and which version of bitcoin you are trying to compile. Replying to a 6-year old closed issue does not help.
@laanwj thanks, i know. I still wanted to tell. :) I made a question here: https://stackoverflow.com/questions/57784467/is-boost-missing-files