7

Where can I find up-to-date packages for boost on Maverick/Natty/Oneiric/Precise?

Ideally, I would like the latest 1.47.0 and be able to update that to the next release when it comes out.

fossfreedom
  • 172,746

3 Answers3

4

Using the packages in the standard repositories is the recommended way to ensure that you have both a stable system and also be supported through an upgrade to the next Ubuntu release.

You can install extra testing repositories - called PPA's. These are available through launchpad and should really be used for testing new software.

One such PPA I found is this one by Daniel Pfeifer.

Please see this question which explains the purpose of the PPA from its author.

You should note - some people have found several issues with the use of this PPA. As such, you should perhaps consider compiling boost yourself using the linked step-by-step guide

To Install from PPA

sudo apt-add-repository ppa:purplekarrot/ppa 
sudo apt-get update
sudo apt-get upgrade

To Remove

I would remove the PPA before attempting to upgrade to the next version of Ubuntu:

ppa-purge ppa:purplekarrot/ppa 
fossfreedom
  • 172,746
  • +1 if only for clear instructions. However, adding this ppa makes my system fall into dependency hell and many many error codes. My advise is: do not use it. – Sardathrion - against SE abuse Sep 15 '11 at 07:55
  • I had a similar experience, but people seem to be able to use it here: http://stackoverflow.com/questions/6605754/building-boost-on-linux – Chinasaur Sep 30 '11 at 17:49
  • It works pretty well for me. Except that the results files libboost_* end with the (old?) convention of having the '-mt' at the end of the name. So now I have to link to, for example, -lboost_regex-mt. I wish there were a sort of pkg-config for boost. – alfC Nov 01 '11 at 01:07
  • 1
    other problems: as described here, http://lists.boost.org/Archives/boost/2010/08/170234.php the provided library is not compiled with c++0x, so some functions calls (notably boost::filesystem::copy_file) will not compile if you use c++0x. – alfC Nov 03 '11 at 21:38
  • @fossfreedom When I run sudo apt-get upgrade no boost files are listed to being upgraded. I use Maverick and have Boost 1.42 installed. – JJD Dec 15 '11 at 10:50
  • I want to discourage everybody from using ppa:purplekarrot since it's purpose is odd as stated by Daniel Pfeiffer! – JJD Feb 11 '12 at 14:22
3

https://launchpad.net/~jkeiren/+archive/ppa has a no-change backport of boost1.48. You should be able to upgrade to Precise while using that PPA.

1

Note that many Boost libraries are header only, so you may be able to get away with just downloading the Boost tarball and including what you need.

Chinasaur
  • 149