Boost compilation failed on ubuntu 14.04 server

I am trying to install formatted libraries 1.49.0 on a ubuntu 14.04 server machine. Compilation boost fails with the following errors.

...failed gcc.compile.c++ bin.v2/libs/locale/build/gcc-4.8/release/link-static/threading-multi/icu/formatter.o...
...skipped <pbin.v2/libs/locale/build/gcc-4.8/release/link-static/threading-multi>libboost_locale.a(clean) for lack of <pbin.v2/libs/locale/build/gcc-4.8/release/link-static/threading-multi>icu/formatter.o...
...skipped <pbin.v2/libs/locale/build/gcc-4.8/release/link-static/threading-multi>libboost_locale.a for lack of <pbin.v2/libs/locale/build/gcc-4.8/release/link-static/threading-multi>icu/formatter.o...
...skipped <p/usr/local/lib>libboost_locale.a for lack of <pbin.v2/libs/locale/build/gcc-4.8/release/link-static/threading-multi>libboost_locale.a...
...failed updating 2 targets...
...skipped 6 targets...

      

How can I fix this problem?

+3


source to share


2 answers


As always, I heartily recommend cheating to get dependencies for any library:

sudo apt-get build-dep libboost-all-dev

      



Note for clarity: this only ensures that all dependencies required to create a distribution version of Boost are present. So it is just a shortcut to manually install all these dependencies.

In particular, it will fix ICU's dependency on missin, so you can compile successfully, depending on the version (modification?) Of the boost version you want to compile.

+4


source


If you really want the Boost 1.49 release, you can find it here via the packages.ubuntu.com search function .



But as you're already on Ubuntu 14.04, why not just use Boost 1.54? Using the package will result in automatic updates, so with the next version of Ubuntu you will get Boost 1.55 etc.

0


source







All Articles