Many of my friends are not able to compile and install GCC4.3.2 in Ubuntu, and sometimes encounter some errors during compilation. Next, let's take a look at the successful experience of simonwolf In the Ubuntu community, which may be helpful to you. A. Download source code B. Decompress c. Check the INSTALL Folder, which contains some help information about installation. The following describes two necessary components: GMP, GPFRInstallingGMPmethod1: sudoapt-getinstall
Many of my friends are not able to compile and install GCC4.3.2 in Ubuntu, and sometimes encounter some errors during compilation. Next, let's take a look at the successful experience of simonwolf In the Ubuntu community, which may be helpful to you.
A. Download the source code
B. decompress the package.
C. Check the INSTALL Folder, which contains some help information about installation.
-- The following describes two necessary components: GMP, GPFR
Installing GMP method1:
Sudo apt-get install m4
Method2: ------ recommended
Download the src.
Unzip.
-- To the following steps, please look into the INSTALL file in the source.
./Configure
Make
Make check
Make install: the default target path is/usr/local
Installing GPFR
Download the src.
Unzip.
-- To the following steps, please look into the INSTALL file in the source.
./Configure
Make
Make check
Make install: the default target path is/usr/local
------
From the prerequisities of gcc. you may be need to install gawk (sudp apt-get install gawk) too.
D. configure Registration
Assuming that the source code directory after pressurization is a gcc-4.3.2
There are many other directories in this directory, such as INSTALL, gcc ,...
Go to this directory and perform the following operations (You may need the Administrator permission to add sudo)
% Mkdir objdir
% Cd objdir
Sudo./../configure -- enable-languages ages = c, c ++
-- Prefix =/usr/local/gcc-4.3.2 -- enable-shared -- with-system-zlib
-- Without-receivded-gettext -- enable-threads = posix -- enable-nls
-- Enable-libstdcxx-debug -- enable-mpfr -- enable-targets = all
-- Enable-checking = release -- build = i486-linux-gnu -- host = i486-linux-gnu
-- Target = i486-linux-gnu -- disable-multilib