Will this package have conflicts with the pre-installed four libboost packages in ubuntu 16.04?

Asked by Mingjian Liu

Hello Everyone,

I am wondering if this package will have conflicts with the pre-isntalled four packages on ubuntu 16.04, which are :

libboost-date-time1.58.0
libboost-system1.58.0
libboost-iostreams1.58.0
libboost-filesystem1.58.0

Since I only need these boost packages:

libboost-atomic-dev libboost-thread-dev libboost-regex-dev
libboost-system-dev libboost-date-time-dev libboost-filesystem-dev(NOTICE: these three are overlapped with the three pre-installed ones)
libboost-random-dev libboost-chrono-dev libboost-serialization-dev

should I simply install them? Is there something for me to notice?

Thanks a lot in advance

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu boost-defaults Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

What is the output:

apt-cache policy libboost-atomic-dev libboost-thread-dev libboost-regex-dev libboost-system-dev libboost-date-time-dev libboost-filesystem-dev

Thanks

Revision history for this message
Best Manfred Hampl (m-hampl) said :
#2

There is a bit of misinterpretation on your side.

You have to be aware, that all libbost-*-dev packages have dependencies on other packages.
e.g. libboost-system-dev has a dependency on libboost-system1.58.0 (on Ubuntu xenial)

Installing the libboost-system-dev package requires that the libboost-system1.58.0 is installed, or when installing it with Ubuntu package management tools like apt or synaptic, the dependent package will be installed as well.

All these packages stem from the same source, so they fit together and there should not be a problem installing them at the same time.

Revision history for this message
Mingjian Liu (dexter13131313) said :
#3

Thanks Manfred Hampl, that solved my question.