Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing Boost in Linux

I recently set up an AWS EC2 Linux instance, and I'm trying to install boost using the following code:

wget -c 
http://sourceforge.net/projects/boost/files/boost/1.66.0/boost_1_66_0.tar.bz2
tar jxf boost_1_66_0.tar.bz2
cd boost_1_66_0
sudo ./bootstrap.sh --prefix=/usr/local/
./b2
sudo ./b2 install 

When I run this, I get the following:

error: toolset gcc initialization:
error: no command provided, default command 'g++' not found
error: initialized from project-config.jam:12

Also, when I tried installing g++, which I thought I had already done by issuing this:

sudo yum install gcc-c++

The result:

Package gcc-c++-4.8.5-1.22.amzn1.noarch already installed and latest version
Nothing to do
like image 994
sqlnewbie1979 Avatar asked Feb 14 '26 02:02

sqlnewbie1979


1 Answers

It seems like you are missing other build tools required for compiling. Installing following should fix your problem,

sudo yum install -y gcc libxml2-devel gcc-c++ make

You can uninstall the tools afterwards.

like image 129
Sufiyan Ghori Avatar answered Feb 16 '26 18:02

Sufiyan Ghori



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!