Skip to content

Instantly share code, notes, and snippets.

Last active Dec 15, 2015
What would you like to do?
Server tips to install new gcc from sources and use it
### Install new version of gcc
tar xzf gcc-4.6.2.tar.gz
cd gcc-4.6.2
cd ..
mkdir objdir
cd objdir
$PWD/../gcc-4.6.2/configure --prefix=/opt/gcc-4.6.2
make install
### Use new version to build another source
make CC=/opt/gcc-4.6.2/bin/gcc CXX=/opt/gcc-4.6.2/bin/g++
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment