Last active
December 15, 2015 11:39
-
-
Save spin0us/5254193 to your computer and use it in GitHub Desktop.
Server tips to install new gcc from sources and use it
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Install new version of gcc | |
tar xzf gcc-4.6.2.tar.gz | |
cd gcc-4.6.2 | |
./contrib/download_prerequisites | |
cd .. | |
mkdir objdir | |
cd objdir | |
$PWD/../gcc-4.6.2/configure --prefix=/opt/gcc-4.6.2 | |
make | |
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