Can't get boost version 1.54.0 to compile (Debian Linux)

Hello. I'm quite new, and I've been needing Boost for something else I'm
trying to compile...
I've been trying to compile Boost, but it's giving me errors.
Unfortunately, I can't use Debian's apt-get to get Boost, because I need
version 1.5 or greater, and apt-get (for this version of Debian) only gets
1.49.0.
I've put some feedback it gave me below. I've already run ./b2 (no
arguments) before, so that's where the found targets are coming from. I'm
not sure why I'm getting these errors...A whole bunch of header files are
reported missing. I tried re-downloading Boost, and using a different
format (tar.bz2 instead of tar.bz), but it still does the same thing.
Building the Boost C++ Libraries.
Performing configuration checks
- 32-bit : yes (cached)
- arm : no (cached)
- mips1 : no (cached)
- power : no (cached)
- sparc : no (cached)
- x86 : yes (cached)
error: No best alternative for libs/coroutine/build/allocator_sources
next alternative: required properties: <link>static <target-os>windows
<threading>multi
not matched
next alternative: required properties: <link>static
<segmented-stacks>on <threading>multi
not matched
next alternative: required properties: <link>static <threading>multi
not matched
- has_icu builds : yes (cached)
warning: Graph library does not contain MPI-based parallel components.
note: to enable them, add "using mpi ;" to your user-config.jam
- zlib : yes (cached)
- iconv (libc) : yes (cached)
- icu : yes (cached)
- compiler-supports-ssse3 : yes (cached)
- compiler-supports-avx2 : yes (cached)
- gcc visibility : yes (cached)
- long double support : yes (cached)
warning: skipping optional Message Passing Interface (MPI) library.
note: to enable MPI support, add "using mpi ;" to user-config.jam.
note: to suppress this message, pass "--without-mpi" to bjam.
note: otherwise, you can safely ignore this message.
- zlib : yes (cached)
Component configuration:
(All are building)
...patience...
...patience...
...patience...
...patience...
...patience...
...found 11439 targets...
...updating 70 targets...
gcc.compile.c++
bin.v2/libs/iostreams/build/gcc-4.7/release/threading-multi/bzip2.o
libs/iostreams/src/bzip2.cpp:20:56: fatal error: bzlib.h: No such file or
directory
compilation terminated.
"g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall
-pthread -fPIC -DBOOST_ALL_NO_LIB=1 -DBOOST_IOSTREAMS_DYN_LINK=1
-DBOOST_IOSTREAMS_USE_DEPRECATED -DNDEBUG -I"." -c -o
"bin.v2/libs/iostreams/build/gcc-4.7/release/threading-multi/bzip2.o"
"libs/iostreams/src/bzip2.cpp"
...failed gcc.compile.c++
bin.v2/libs/iostreams/build/gcc-4.7/release/threading-multi/bzip2.o...
...skipped

participants (2)
-
Ban Hammer
-
Oliver Kowalke