Recently I cloned ceph repository and configure script failed to build CEPH, as it required C++11 support
Installing C++11 caused dependencies issues with other previously installed package like boost..
The following steps did the trick ...
sudo add-apt-repository ppa:boost-latest/ppa
sudo apt-get update
sudo apt-get install libboost1.55-all-dev
Had additional compilation issue, couldn't find proper work around, so hack with following changes.
/usr/include/cryptopp/secblock.h modified this->CheckSize(n);
$ sudo add-apt-repository ppa:ubuntu-toolchain-r/test
$ sudo apt-get update
Find the latest gcc and g++ package on the repository.
$ sudo apt-cache search "g\+\+"
g++-4.9 - GNU C++ compiler
Install 4.9 compiler
$ sudo apt-get install gcc-4.9 g++-4.9
In order to keep what you have already installed that is gcc 4.6 Use update-alternatives, to change the default to the latest and the same can be used to revert in future if needed.
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.6 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.6
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 40 --slave /usr/bin/g++ g++ /usr/bin/g++-4.9
sudo update-alternatives --config gcc
Happy compiling...
Installing C++11 caused dependencies issues with other previously installed package like boost..
The following steps did the trick ...
sudo add-apt-repository ppa:boost-latest/ppa
sudo apt-get update
sudo apt-get install libboost1.55-all-dev
Had additional compilation issue, couldn't find proper work around, so hack with following changes.
/usr/include/cryptopp/secblock.h modified this->CheckSize(n);
$ sudo add-apt-repository ppa:ubuntu-toolchain-r/test
$ sudo apt-get update
Find the latest gcc and g++ package on the repository.
$ sudo apt-cache search "g\+\+"
g++-4.9 - GNU C++ compiler
Install 4.9 compiler
$ sudo apt-get install gcc-4.9 g++-4.9
In order to keep what you have already installed that is gcc 4.6 Use update-alternatives, to change the default to the latest and the same can be used to revert in future if needed.
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.6 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.6
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 40 --slave /usr/bin/g++ g++ /usr/bin/g++-4.9
sudo update-alternatives --config gcc
Happy compiling...