Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

boost fail to be detected / No 'bootstrap.jam' was found by searching for / file STRINGS file "/usr/include/boost/version.hpp" cannot be read. #338

Open
estatistics opened this issue Sep 22, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@estatistics
Copy link

estatistics commented Sep 22, 2023

I try to install qbittorent that requires boost library.

I tried to install boost from source successfully
(1.83)

sudo ./bootstrap.sh --prefix=/usr/local
and
sudo ./b2 install  --prefix=/usr/local

then... in outside the folder

b2 --version
Unable to load B2
-----------------
No 'bootstrap.jam' was found by searching for:
  /usr/bin/.b2/kernel/bootstrap.jam
  /usr/share/b2/kernel/bootstrap.jam
  /usr/share/b2/src/kernel/bootstrap.jam
  /usr/kernel/bootstrap.jam
  /usr/bin/src/kernel/bootstrap.jam
  /usr/bin/tools/build/src/kernel/bootstrap.jam
  /usr/bin/src/kernel/bootstrap.jam
  /usr/src/kernel/bootstrap.jam
  /src/kernel/bootstrap.jam

Please consult the documentation at 'https://www.bfgroup.xyz/b2/'.

but ...

cd ~/Downloads/_LINUX_PKGS/boost_1_83_0/tools/build$
b2 --version
B2 4.10-git

I had an directory of boost in usr/include that was detected from qbittorent and delete it.
But it tries to look into that directory...

CMake Error at /usr/share/cmake-3.25/Modules/FindBoost.cmake:1825 (file):
  file STRINGS file "/usr/include/boost/version.hpp" cannot be read.
Call Stack (most recent call first):
  cmake/Modules/CheckPackages.cmake:46 (find_package)
  CMakeLists.txt:55 (include)


CMake Error at /usr/share/cmake-3.25/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find Boost: Found unsuitable version "0.0.0", but required is at
  least "1.76" (found /usr/include, )
Call Stack (most recent call first):
  /usr/share/cmake-3.25/Modules/FindPackageHandleStandardArgs.cmake:598 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-3.25/Modules/FindBoost.cmake:2376 (find_package_handle_standard_args)
  cmake/Modules/CheckPackages.cmake:46 (find_package)
  CMakeLists.txt:55 (include)

Then i downlaoded the experimental package of libboost-all-dev_1.81.0.1~exp1_amd64.deb

and installed it with ``dpkg -i libboost-all-dev_1.81.0.1~exp1_amd64.deb` succesfully.
yet, b2 --version is not detecting boost library nor qbittorent (boost setup) detect it.

even export BOOST_BUILD_PATH=/home/elias/Downloads/_LINUX_PKGS/boost_1_83_0/tools/build/;b2 does not produce results

My system is linux bookworm

@estatistics estatistics added the bug Something isn't working label Sep 22, 2023
@estatistics
Copy link
Author

estatistics commented Sep 22, 2023

weirdly, no bootstrap.jam of boost 1.83 was detected here

locate bootstrap.jam
/home/elias/Downloads/_LINUX_PKGS/boost_1_80_0/tools/build/src/bootstrap.jam
/home/elias/Downloads/_LINUX_PKGS/boost_1_80_0/tools/build/src/kernel/bootstrap.jam
/home/elias/Downloads/_LINUX_PKGS/vcpkg/buildtrees/boost-build/src/ost-1.80.0-d663e6deff.clean/src/bootstrap.jam
/home/elias/Downloads/_LINUX_PKGS/vcpkg/buildtrees/boost-build/src/ost-1.80.0-d663e6deff.clean/src/kernel/bootstrap.jam
/home/elias/Downloads/_LINUX_PKGS/vcpkg/installed/x64-linux/tools/boost-build/src/bootstrap.jam
/home/elias/Downloads/_LINUX_PKGS/vcpkg/installed/x64-linux/tools/boost-build/src/kernel/bootstrap.jam
/home/elias/Downloads/_LINUX_PKGS/vcpkg/packages/boost-build_x64-linux/tools/boost-build/src/bootstrap.jam
/home/elias/Downloads/_LINUX_PKGS/vcpkg/packages/boost-build_x64-linux/tools/boost-build/src/kernel/bootstrap.jam
/usr/share/boost-build/src/kernel/bootstrap.jam

@estatistics
Copy link
Author

estatistics commented Sep 22, 2023

The below paths from what file/files are got?
it is right to add somewhere /usr/share/boost-build/src/kernel/bootstrap.jam ?
The b2options for config file dont work at all

-----------------
No 'bootstrap.jam' was found by searching for:
  /usr/bin/.b2/kernel/bootstrap.jam
  /usr/share/b2/kernel/bootstrap.jam
  /usr/share/b2/src/kernel/bootstrap.jam
  /usr/kernel/bootstrap.jam
  /usr/bin/src/kernel/bootstrap.jam
  /usr/bin/tools/build/src/kernel/bootstrap.jam
  /usr/bin/src/kernel/bootstrap.jam
  /usr/src/kernel/bootstrap.jam
  /src/kernel/bootstrap.jam

Please consult the documentation at 'https://www.bfgroup.xyz/b2/'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant