Boost
- Download Boost from the Boost download page.
- Unpack the archive and cd into the Boost root folder.
- As we only need template header libraries from Boost, we don't need compilation but just installation into the build directory:
cd boost_1_35_0
mkdir build
./configure --prefix=$PWD/build --with-libraries=
make install
|
Xerces
- Download XercesC from the Xerces download page.
- Unpack the archive and cd into the Xerces root folder and run the following commands. The runConfigure command may vary depending on your platform. Consult the Xerces documentation!
cd xerces_2_8_0
export XERCESCROOT=$PWD
mkdir build
cd src/xercesc
./runConfigure -p linux -s -b 32 -P $PWD/../../build
make
make install
|
Changes in the PktAnon build setup
- Compiling PktAnon is now a little bit different, as the build system has to know where your private builds of Boost and XercesC reside.
- The ./configure command from step 5. now to looks like this (adapt the pathes to Boost and Xerces, all the following lines are just one command!):
./configure
CPPFLAGS='-I../boost_1_35_0/build/include/boost-1_35
-I../xerces-c-src_2_8_0/build/include'
LDFLAGS='-L../xerces-c-src_2_8_0/build/lib'
If this command gives errors, try using CPPFLAGS instead of CFLAGS. And try using absolute path in the form /home/user/... instead of relative path
- Furthermore you have to set the LD_LIBRARY_PATH to point to the Xerces library. It is best to write the following command into your ~/.bachrc file:
export
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:~/PATH_TO_XERCES/build/lib
- Now continue with step 7. and 8. in compiling PktAnon.
|
|