Problem compiling boost::iostreams - bzlib.h file not found
I have just downloaded boost 1.33.0 and am doing a bulk-standard install
on my linux PC as per the instructions, with the command:
bjam "-sTOOLS=gcc" install
Nearly everything worked fine, but the iostreams library failed to
compile, with the error in boost_1_33_0/libs/iostreams/src/bzip2.cpp:
could not find include file "bzlib.h"
On further investigation, this file comes from the package
libbzip2_1-devel, which also needs to be installed.
An extra thought: bzip2.cpp includes this file as
#include "bzlib.h"
but it should really be
#include
Tim Taylor wrote:
I have just downloaded boost 1.33.0 and am doing a bulk-standard install on my linux PC as per the instructions, with the command:
bjam "-sTOOLS=gcc" install
Nearly everything worked fine, but the iostreams library failed to compile, with the error in boost_1_33_0/libs/iostreams/src/bzip2.cpp: could not find include file "bzlib.h"
Try defining the variable NO_BZIP2. See http://tinyurl.com/bcjuz and http://tinyurl.com/dn6gx.
On further investigation, this file comes from the package libbzip2_1-devel, which also needs to be installed.
An extra thought: bzip2.cpp includes this file as #include "bzlib.h" but it should really be #include
as this is from a different library.
Could you elaborate?
Tim
Jonathan
participants (2)
-
Jonathan Turkanis
-
Tim Taylor