krammer
krammer

Reputation: 2668

How to recover default boost installation on ubuntu?

I was trying to compile boost 1.62 from source on ubuntu 12.04 where the default version is 1.48. During the course of trying everything, I removed boost from /usr/include/boost and libboost* from /usr/lib using the following commands

I have realized that now I need the default version (1.48) for my program to work. But when I use the following command

sudo apt-get install libboost-dev-all

it seems to install the libboost, but I am not able to see any boost directory in /usr/include. Moreover, I tried compiling a few programs with cmake and it also doesn't seem to find any boost library on the system.

Is it not possible to reinstall libboost if the libraries and headers have been removed manually ?

Upvotes: 0

Views: 1050

Answers (1)

hroussille
hroussille

Reputation: 419

from the ubuntu forums :

choices:

sudo apt-get install --reinstall mypackage

sudo dpkg-reconfigure mypackage

( or if the other solutions have failed:

sudo apt-get purge mypackage && sudo apt-get install mypackage

and logout/in )

give it a shot !

also if you don't see any librarie after installing one you can run :

sudo ldconfig

The above command will make ld (the dynamic libraries loader) aware of the new libraries.

Upvotes: 0

Related Questions