2

I installed Boost library on my ubuntu 18 using apt:

sudo apt-get install libboost-all-dev

however, I cannot find boost library files on my machine. When I try:

dpkg -L libboost-all-dev

the output is:

/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/libboost-all-dev
/usr/share/doc/libboost-all-dev/copyright
/usr/share/doc/libboost-all-dev/changelog.gz

No headers, no .so files! Am I doing something wrong? I'm getting the compilation error:

/usr/bin/x86_64-linux-gnu-ld: cannot find -lboost_random-mt

1 Answers1

1

As you can see from the list of libboost-all-dev package it contains only two files. It is normal.

But it has very long list of dependencies.

About your libboost_random libraries. You can find them in libboost-random1.58-dev and libboost-random1.62-dev, libboost-random1.65-dev packages.

But the most safe way will be install them as dependency of libboost-random-dev as dependency of libboost-all-dev:

sudo apt-get install libboost-all-dev

So Boost packaging looks very complicated ...

N0rbert
  • 99,918