Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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.

share|improve this question
add comment

migrated from unix.stackexchange.com Sep 14 '11 at 12:28

This question came from our site for users of Linux, FreeBSD and other Un*x-like operating systems..

3 Answers

up vote 3 down vote accepted

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.

share|improve this answer
add comment

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 
share|improve this answer
    
+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 Sep 15 '11 at 7:55
    
I had a similar experience, but people seem to be able to use it here: 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 1 '11 at 1:07
1  
other problems: as described here, 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 3 '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
show 1 more comment

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.

share|improve this answer
    
Sadly I do need threading and a few others that are not header only. ^_~ thanks nonetheless, a good answer. –  Sardathrion Sep 24 '11 at 11:27
    
Oh well. Just as a last mention, I've been using boost_thread a lot lately across versions and don't see a lot of difference from 1.40 to 1.47. –  Chinasaur Sep 24 '11 at 19:50
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.