[Rivet] what happened to boost?

Hendrik Hoeth hendrik.hoeth at cern.ch
Tue Sep 23 16:18:33 BST 2008


Hi Holger,

Thus spake Holger Schulz (holger.schulz at physik.hu-berlin.de):

> > But Rivet doesn't come with the boost headers anymore. You have to have
> > boost installed on your system now.
> >
> >   
> Ok, but Boost is installed. I wonder why configure is not even
> checking for boost, though it does for things like gsl, agile and so
> on.

configure should be checking for boost, and the two configure options
you mentioned are still available (well, at least on my laptop they show
up when I do "./configure --help"). But it might well be that configure
doesn't find boost, because it's not in a standard directory. So I have
two questions:

- Where is boost installed? Headers? Libs?

- Did you install boost from sources or as a package from your
  distribution? Installing boost from the source tarball yields
  very bad file- and directory names by default, so for a clean
  install from sources you'll need to do some renames. Just to
  give you an idea, my personal boost install script does this:

  [... configure and make ...]
  make install &&
  mv -v /usr/include/boost-1_34_1/boost /usr/include/boost &&
  rmdir -v /usr/include/boost-1_34_1 &&
  for i in `find /usr/lib64 -type f -name libboost*` ; do
    mv $i ${i/-gcc42}
  done
  for i in `find /usr/lib64 -type l -name libboost*` ; do
    TARGET=`readlink $i`
    ln -s `basename $TARGET | sed "s/-gcc42//"` ${i/-gcc42}
    rm $i
  done

Cheers,

   Hendrik

-- 
Those who give up essential liberties for temporary safety
deserve neither liberty nor safety.   -- Benjamin Franklin


More information about the Rivet mailing list