How to install boost library to ubuntu

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

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:


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.
@norm b
ubuntu 13.04 also has boost_1_53
@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:

 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
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.