简体   繁体   中英

Getting Boost 1.68 working on Ubuntu 18.04

I want to use Boost 1.68 on Ubuntu 18.04. I noticed the Boost/libboost package available on Ubuntu is only 1.65, so I found a resource that suggested the following:

sudo apt-get remove libboost-all-dev
sudo add-apt-repository ppa:mhier/libboost-latest
sudo apt update
sudo apt install libboost1.68

However, after running this I no longer have the boost include files in my /usr/include directory. If I do sudo apt-get install libboost-all-dev , it seems I can only add 1.65.1

Is there a way I can get boost and the include files from 1.68 to run on Ubuntu 18.04?

I'm still relatively new to Linux/ubuntu so perhaps I'm overlooking something simple? Thanks for your assistance.

By installing libboost1.68 you only install Boost library files. Header files are at libboost1.68-dev :

sudo apt install libboost1.68-dev

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM