Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I just want to know how I can find the version of boost installed in my ubuntu 12.04? I am having trouble with the current precise and thinking of reverting back to 8.04. What is the boost version in 8.04?

share|improve this question
What specific error are you having? You may find help for it at – NoBugs Jun 7 '12 at 1:29

The version of libboost on my 12.04 system is Here's how you can find out:

dpkg -s libboost-dev | grep 'Version'
share|improve this answer

You can check version.hpp inside Boost include dir (normally /usr/include/boost, you can use locate /boost/version.hpp or similar to get that) for BOOST_VERSION or BOOST_LIB_VERSION.

$ cat /usr/include/boost/version.hpp | grep "BOOST_LIB_VERSION"

//  BOOST_LIB_VERSION must be defined to be the same as BOOST_VERSION
#define BOOST_LIB_VERSION "1_53"

SO: How to determine the Boost version on a system?

share|improve this answer

Your Answer


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.