Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 03-12-2009, 05:17 AM   #1
Registered: Mar 2009
Posts: 42

Rep: Reputation: 15
how to install Gcc 4.1.x

how to install gcc 4.1.x ?what r the dependencies it needs?
i have already installed mpfr and gmp 4.1 but still m getting the error theat mpfrxx.h is missing('xx' i cant remember the header file)
can anybody cooperate with me pls
Old 03-12-2009, 05:35 AM   #2
Registered: Mar 2009
Posts: 102

Rep: Reputation: 18
It is difficult to tell what you should do to solve the dependencies, without knowing what you have already installed, what system you are using, etc.

A missing header file can be due to the fact that you have a certain tool installed, but not it's development additions. As an example: installing mysql gives you an SQL server, but to do development with/for mysql you also have to install mysql-devel. This is usually done by a packaging manager (rpm, yum or similar).

Arch Linux

Last edited by T74marcell; 03-14-2009 at 01:12 AM.
Old 03-12-2009, 12:10 PM   #3
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,518

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
So which Linux are you using ?

Somewhere in the gcc documentation, the "Linux From Scratch"
method is recommended, for building gcc.

Please see LFS-BOOK-6.3-HTML.tar.bz2 for gcc-4.1.x build :

'mpfr', 'gmp' : no need to have them installed, the unpacked
tarballs inside 'gcc-4.1x/' will do, AFAIK.
A build directory outside 'gcc-4.1x/' is required for best result.

A usable configure command for 'pass1' would be
../gcc-4.1.2/configure --prefix=<my-new-gcc-pass1> --disable-nls --enable-shared --enable-languages=c
( You will have to call the resultant 'gcc' with 'CC=...',
when doing pass 2 )

Last edited by knudfl; 03-12-2009 at 12:13 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
yum install gcc doesn't set the lastest gcc ver 4.3.x kim,jw Linux - Newbie 3 12-22-2008 11:51 PM
pkg-get install gcc ERROR: gcc unrecognized Raidmax Solaris / OpenSolaris 10 08-30-2007 12:51 PM
Help me install GCC today! <-- 1yr without gcc :( nectron101 Linux - Newbie 4 04-17-2006 07:57 PM
install new gcc v3.4.5 over gcc v3.2.2 on red hat 9 mlaich Linux - Newbie 2 01-01-2006 08:52 PM
gcc wont install, 'failed dependencies: glibc-devel is needed by gcc-3.3.3-41' TdlSnare SUSE / openSUSE 3 11-29-2004 02:13 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:31 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration