is recorded as follows:
p>
1. Download the appropriate version of GCC from the official website, http://gcc.gnu.org.
p>
2. Unpack the span> p>
# sudo tar ZXFV GCC – 4.4.6. Tar. Gz p>
p>
3. Go to the unzip directory, mine is ~/local/gcc-4.4.6, and I have an executable called configure, with the following configuration:
#./configure — prefix =/usr/bin/GCC – 4.4.6 – enable – language = c, c + +, Java p>
(where /usr/bin/gcc-4.4.6 is the directory to install GCC, followed by –enable-language=c,c++, Java is set to install compilable language)
Notice that the configure success sign shows that the makefile was successfully generated and that you’ll have an additional makefile in your directory so you can proceed to the nexterror: said GMP and MPFR
cannot be found
to download and install dependencies: p>
ftp://gcc.gnu.org/pub/gcc/infrastructure
GMP – 4.3.2. Tar..bz2 p>
MPFR – 2.4.2. Tar..bz2 p>
unzip installation dependency:
tar -jxvf gmp-4.3.2.tar.bz2
mkdir /usr/local/gmp-4.3.2
cd ./gmp-4.3.2
./configure --prefix=/usr/local/gmp-4.3.2
make
make install
tar -jxvf mpfr-2.4.2.tar.bz2
mkdir /usr/local/mpfr-2.4.2
cd ./mpfr-2.4.2
./configure --prefix=/usr/local/mpfr-2.4.2 --with-gmp=/usr/local/gmp-4.3.2
make
make install
error: m4
cannot be found
Install GMP under ubuntu
. Configure :error:no usable m4 in$path or /user/5bin solution
is easy, because you don’t have m4, just install it.
sudo apt-get install m4
4.#make
this is the longest step, so long that I couldn’t wait to go back to sleep last night…
note: error may also occur in make. Generally, it is also necessary to configure the environment or missing files. It is OK to install whatever is needed directly
p>
5. # make install span> p>
p>
6. After the end, establish the connection of gcc4.4.6 version, command:
# ln -s/usr/bin/GCC – 4.4.6/bin/GCC/usr/bin/GCC p>
Check out the current version of GCC:
#gcc –version
Read More:
- Gcc compiler warning solution: “extra tokens at end of ifndef directive” Tags: GCC, warning
- Linux running Makefile, G + + / GCC error: suffix or operations invalid for ‘vbroadcasts’
- Linux GCC compilation error: “collect2: LD returned 1 exit status”
- Error: Command ‘arm linux gnueabihf GCC’ failed with exit status 1, raspberry pie install paramiko
- cenos Upgrade g++ gcc(cc1plus: error: unrecognized command line option “-std=c++11”)
- After installing CodeBlocks, run the prompt: tried to run compiler executable ‘C: / / MinGW / bin / mingw32- gcc.exe ‘, but failed!
- command ‘gcc‘ failed with exit status 4
- The problem of strncpy and the solution of GCC compile time checking
- GCC compilation error unknown type name ‘bool’‘
- Solution to the problem of GCC file format not recognized
- gcc: fatal error: no input files
- A solution to the problem of “straight ‘\ 357’ in program” when compiling GCC
- Solution to stray’\357′ in program when gcc is compiled
- [solution] warning: this statement may fall through [- wimplicit fallthrough]) encountered during GCC compilation
- GCC forces all symbols in the link library
- gcc: error trying to exec ‘cc1‘: execvp: No such file or directory
- Mex compiler error handling in MATLAB and GCC installation in Ubuntu
- Code::Blocks 12.11 error: ‘nullptr’ was not declared in this scope&GNU GCC -std=gnu++0x
- gcc /usr/include/stdio.h:27:10: fatal error: bits/libc-header-start.h: No such file or directory