Installing libraries as non-root user

  1. Download Boost from the Boost download page.
  2. Unpack the archive and cd into the Boost root folder.
  3. 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
  1. Download XercesC from the Xerces download page.
  2. 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!
  3. cd xerces_2_8_0
    mkdir build
    cd src/xercesc
    ./runConfigure -p linux -s -b 32 -P $PWD/../../build
    make install
Changes in the PktAnon build setup
  1. Compiling PktAnon is now a little bit different, as the build system has to know where your private builds of Boost and XercesC reside.
  2. 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!):
    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
  3. 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:
  4. Now continue with step 7. and 8. in compiling PktAnon.