Install C++ Boost on Ubuntu

Boost is probably the most popular C++ library, to install C++ Boost on Ubuntu is easy.

Open your terminal and type the following command to install the packages:

sudo apt-get install libboost-date-time-dev libboost-date-time1.34.1 libboost-dev libboost-doc libboost-filesystem-dev libboost-filesystem1.34.1 libboost-graph-dev libboost-graph1.34.1 libboost-iostreams-dev libboost-iostreams1.34.1 libboost-program-options-dev libboost-program-options1.34.1 libboost-python-dev libboost-python1.34.1 libboost-regex-dev libboost-regex1.34.1 libboost-signals-dev libboost-signals1.34.1 libboost-test-dev libboost-test1.34.1 libboost-thread-dev libboost-thread1.34.1

Hope this helps!

Be Sociable, Share!

About Shi Chuan

I am a web developer.
This entry was posted in C Plus Plus, Linux and tagged , . Bookmark the permalink.

16 Responses to Install C++ Boost on Ubuntu

  1. Kit Sunde says:

    Alternatively you can type:
    sudo apt-get install libboost-dev libboost-doc

  2. Sastha says:

    Hi Kit Sunde,

    Your command is very useful. Thank you.

  3. daniel says:

    Sastha :
    Hi Kit Sunde,
    Your command is very useful. Thank you.

  4. vsevik says:

    Thank you, Kit Sunde
    I wish the post itself would have been edited – original command doesn’t work anymore (on my ubuntu 10.04), while yours is working.

  5. lx says:

    @Kit Sunde thank you

  6. azadeh says:

    I am very tired;
    solved my problem.
    Thank you.

  7. Giuliano says:

    thank you very much kit sunde

  8. Praveen says:

    Just use libboost-all-dev

  9. Noah says:

    Thanks Praveen!

  10. saurabh says:

    @ Kit Sude:
    Thanx a lot for the command
    Worked out grt for me

  11. Mohammad says:

    What about boost::geometry?

  12. Juan says:

    It was very useful for me! Thanks.

  13. Som says:

    This is useful for me.

    libboost-all-dev

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>