Boost deinstallieren und eine andere Version installieren

Boost deinstallieren und eine andere Version installieren


Ich habe die Boost-Bibliotheken unter Linux Mint 12 mit dem Befehl sudo apt-get install libboost-dev libboost-doc installiert , wodurch die in den Repositorys verfügbare Standardversion installiert wird. Das Projekt, das ich durchführen muss, benötigt jedoch die Version 1.44 von boost. Wie deinstalliere ich die standardmäßige (aktuelle) Version 1.46 und installiere 1.44?


Ich konnte die Dokumentation auf der Boost-Website nicht finden, um Boost von .tar.gz zu installieren Paket.


Einige Code-Antworten


sudo apt-get update  # to uninstall deb version sudo apt-get -y --purge remove libboost-all-dev libboost-doc libboost-dev # to uninstall the version which we installed from source sudo rm -f /usr/lib/libboost_* 
sudo apt-get -y install build-essential g++ python-dev autotools-dev libicu-dev libbz2-dev 
# go to home folder cd wget http://downloads.sourceforge.net/project/boost/boost/1.54.0/boost_1_54_0.tar.gz tar -zxvf boost_1_54_0.tar.gz cd boost_1_54_0 # get the no of cpucores to make faster cpuCores=`cat /proc/cpuinfo | grep "cpu cores"
| uniq | awk '{print $NF}'` echo "Available CPU cores: "$cpuCores ./bootstrap.sh # this will generate ./b2 sudo ./b2 --with=all -j $cpuCores install
cat /usr/local/include/boost/version.hpp | grep "BOOST_LIB_VERSION"
//  BOOST_LIB_VERSION must be defined to be the same as BOOST_VERSION #define BOOST_LIB_VERSION "1_54"