Boost not finding zlib package on Ubuntu 20.04

464 Views Asked by At

I'm trying to compile Boost with the zlib package built into Ubuntu, but it cannot find it and thus gives me a zlib : no upon running ./b2. I definitely have it installed, as dpkg -L zlib1g-dev and dpkg -L zlib1g give me their locations. I've tried manually passing in the directories as command-line options as suggested here, and I've also tried creating a user-config.jam file as suggested here, but nothing has worked. Any ideas as to what might be the problem?

1

There are 1 best solutions below

0
Lucas Myers On

For unclear reasons, the solution was just to get rid of everything in the Boost directory and recompile + reinstall Boost. After that it was able to find zlib (and bzip2) without any problems.