-
-
Save abhishekcs10/21db5064641b3cc563d193bda4fd788a to your computer and use it in GitHub Desktop.
Install GCC 5.4.0
This file contains hidden or 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
#!/bin/bash | |
# this script installs GCC 5.4.0 | |
# to use it navigate to your home directory and type: | |
# sh install-gcc-5.4.0.sh | |
# download and install gcc 4.9.3 | |
wget https://github.com/gcc-mirror/gcc/archive/gcc-5_4_0-release.tar.gz | |
tar xzf gcc-5_4_0-release.tar.gz | |
cd gcc-5_4_0-release | |
./contrib/download_prerequisites | |
cd .. | |
mkdir objdir | |
cd objdir | |
../gcc-5_4_0-release/configure --prefix=$HOME/gcc-5.4.0 --disable-nls --enable-languages=c,c++ --with-ld=/bin/ld --with-nm=/bin/nm --with-as=/usr/bin/as --disable- multilib | |
make | |
# install | |
make install | |
# clean up | |
rm -rf ~/objdir | |
rm -f ~/gcc-5_4_0-release.tar.gz | |
# add to path (you may want to add these lines to $HOME/.bash_profile) | |
export PATH=$HOME/gcc-5.4.0/bin:$PATH | |
export LD_LIBRARY_PATH=$HOME/gcc-5.4.0/lib:$HOME/gcc-5.4.0/lib64:$LD_LIBRARY_PATH |
Dear all
I'm trying to compile GCC, using RodriguezManuel's method. But I find this error: make: *** [Makefile:911: all] Error 2
Anyone knows how can I solved it?
Thanks
I suspect you need to install flex golang/go#316
thank you so much absolute lifesaver
Dear all
I'm trying to compile GCC, using RodriguezManuel's method. But I find this error: make: *** [Makefile:911: all] Error 2
Anyone knows how can I solved it?
Thanks
Got the same error. Seems that we should use a older compiler. Refer: Freetz-NG/freetz-ng#396
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have fixed several errors in the archive, i leave the correct version of it down below
Also if you are still having problems try executing: sudo apt install gcc-multilib
install-gcc-5.4.0.sh
`
#!/bin/bash
this script installs GCC 5.4.0
to use it navigate to your home directory and type:
sh install-gcc-5.4.0.sh
download and install gcc 4.9.3
wget https://ftp.gnu.org/gnu/gcc/gcc-5.4.0/gcc-5.4.0.tar.gz
tar xzf gcc-5.4.0.tar.gz
cd gcc-5.4.0
./contrib/download_prerequisites
cd ..
mkdir objdir
cd objdir
../gcc-5.4.0/configure --prefix=$HOME/gcc-5.4.0 --disable-nls --enable-languages=c,c++ --with-ld=/bin/ld --with-nm=/bin/nm --with-as=/usr/bin/as --disable-multilib
make
install
make install
clean up
rm -rf ~/objdir
rm -f ~/gcc-5.4.0.tar.gz
add to path (you may want to add these lines to $HOME/.bash_profile)
export PATH=$HOME/gcc-5.4.0/bin:$PATH
export LD_LIBRARY_PATH=$HOME/gcc-5.4.0/lib:$HOME/gcc-5.4.0/lib64:$LD_LIBRARY_PATH
`