On 03.10.2014 02:34, Smith, Steven - 1004 - MITLL wrote:
I downloaded boost_1_56_0.tar.gz, built and installed it successfully, then tried this configure statement, which failed.
What is the recommended configure/make options to use a downloaded boost and installed in a nonstandard location?
Here are the steps and result:
# download and build boost using bootstrap.sh $ sudo mv boost_1_56_0 /usr/local $ sudo ln -s /usr/local/boost_1_56_0 /usr/local/boost $ ./configure --with-sparsehash-prefix=google --with-boost=/usr/local/boost --with-boost-libdir=/usr/local/boost/stage/lib
You still need to inform the compiler and linker where they should search for libraries, which is done via CPPFLAGS and LDFLAGS: ./configure --with-sparsehash-prefix=google CPPFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib" Assuming that you have installed boost with prefix "/usr/local". Best, Tiago -- Tiago de Paula Peixoto <tiago@skewed.de>