Compile and install GCC4.3.2 in Ubuntu

Source: Internet
Author: User
Tags gmp
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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.