Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to install boost-devel 1.59 in CentOS7‏

Tags:

boost

I want to install boost-devel 1.59 in centos7, but the default repo has only 1.53, so I have to compile it from the source code.

I have download 1.59 from web page, and use ./bootstrap.sh and ./b2 install to install the boost 1.59.

But when I want install other packages such as CGAL-devel, it tells me that I donnot install boost-devel 1.59, so I wonder how to install boost-devel?

Thanks.

like image 953
zhaojun12 Avatar asked Oct 10 '15 04:10

zhaojun12


3 Answers

Download Boost Library from:

https://boostorg.jfrog.io/artifactory/main/release/1.76.0/source/boost_1_76_0.tar.gz

Unzip, Bootstrap and Install

tar -xzf boost_1_76_0.tar.gz
cd boost_1_76_0
./bootstrap.sh --prefix=/opt/boost
./b2 install --prefix=/opt/boost --with=all
like image 41
Anurag.k Avatar answered Oct 19 '22 15:10

Anurag.k


Got boost 1.59 version installed in CentOS 7 with the below commands:

sudo wget http://repo.enetres.net/enetres.repo -O /etc/yum.repos.d/enetres.repo

Download the lib64icu42-4.2.1-1mdv2010.0.x86_64.rpm from the below link: ftp://fr2.rpmfind.net/linux/Mandriva/official/2010.0/x86_64/media/main/release/lib64icu42-4.2.1-1mdv2010.0.x86_64.rpm

Install the RPM:

sudo rpm -ivh lib64icu42-4.2.1-1mdv2010.0.x86_64.rpm

Install the required boost library version:

sudo yum install boost-devel

That's it. Have a great day!

rpm link: https://www.rpmfind.net/linux/rpm2html/search.php?query=libicuuc.so.42()(64bit)

like image 161
AnnapoorniS Avatar answered Oct 19 '22 14:10

AnnapoorniS


I was able to install it on CentOS 6.7. Not sure is it possible to install CentOS 6 packages to CentOS 7.

I found the solution in this blog post: http://vicendominguez.blogspot.com/2014/04/boost-c-library-rpm-packages-for-centos.html

Try to install boost from this repo: http://repo.enetres.net/enetres.repo

sudo wget http://repo.enetres.net/enetres.repo -O /etc/yum.repos.d/enetres.repo
sudo yum install boost-devel
like image 3
vvladymyrov Avatar answered Oct 19 '22 13:10

vvladymyrov