How to install boost library to ubuntu

Now I am trying to install boost library to my ubuntu OS. I following the instruction from:

http://www.boost.org/doc/libs/1_54_0/more/getting_started/unix-variants.html

But as I am also a beginner of linux, I could not fully understand what does this means?

tar --bzip2 -xf /path/to/boost_1_54_0.tar.bz2

Which part of the above code should be replaced by my own thing (for example, my own directory)?

The above code seems to extract the pressed file. Actually it can be done without input the above code into the terminal. It cab be done like right-click the file and choose "extract"。

I think if I succeed in installation, I should have the following directory:

/usr/local/boost_1_54_0

In this way, my complier (g++) might be able to include the head files from the library. But now I just do not have anything.

Now I am just hoping to install the library with nothing more to build so that I can run the simple code from the part 4 of that webpage.

Hope I can get some help here. Many thanks ahead!

Is there a reason for not using your package manager?

You can't get boost1.54 yet but, depending on your release, you can get 1.49. The lambda code example will compile under that version.

http://packages.ubuntu.com/raring/libboost-dev
@norm b
ubuntu 13.04 also has boost_1_53 http://packages.ubuntu.com/raring/libdevel/libboost1.53-all-dev
@naraku9333 - noted. Thanks!
@norm b

So you mean I just change the package?

So I just input exactly the following code on the terminal?

tar --bzip2 -xf /path/to/boost_1_54_0.tar.bz2

@norm b

I input the code

~/Downloads$ tar --bzip2 -xf /path/to/boost_1_54_0.tar.bz2

Then the error is:

1
2
3
4
 tar (child): /path/to/boost_1_54_0.tar.bz2: Cannot open: No such file or directory
    tar (child): Error is not recoverable: exiting now
    tar: Child returned status 2
    tar: Error is not recoverable: exiting now


So I think maybe I should change the part "/path/to/", but I don't know which I should replace with.

There is a similar question http://stackoverflow.com/questions/3829421/installing-latest-1-44-boost-library-under-ubuntu-10-04
However the guy there successfully finished the first step, which now I get stuck in!
I figure it out. Anyway, thanks @norm b, @narku9333!
Topic archived. No new replies allowed.