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

Asked by Mingjian Liu on 2019-05-29

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:
2019-05-30
Last query:
2019-05-30
Last reply:
2019-05-30

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

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.

Mingjian Liu (dexter13131313) said : #3

Thanks Manfred Hampl, that solved my question.