|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
||||
|
||||
|
Help installing gcc
Hi,
I am new to linux and have just installed fedora 9 version a few days back. I was trying to install gcc and i am really confused by the document Install Quote:
Actually i am not sure what is the option and the target here. Also what is the best location for objdir ?? I tried following the instructions and ended up with the following error Quote:
Can someone pls tell me what i need to do to install gcc properly because i need it to install some c programs. Also is there any other compiler (for linux) which can compile C programs?? Any help will be greatly appreciated. Thanks... |
|
#2
|
||||
|
||||
|
You're following commands to compile gcc from source. You can't do that if you don't have a C compiler installed to start with
.The only option for you is to install the binaries for gcc (say from an rpm file). Then you can use it to recompile a later version of gcc, if necessary. 1. Go to http://www.rpmfind.net/ and search for gcc rpms and pick the one that you want to use (I prefer latest stable version). 2. Download the relevant RPM file(s) to your hard disk 3. Install the rpm(s) using rpm -ivh *.rpm Alternatively, if you have the Fedora CDs, you can also install the packages from the CD.
__________________
Up the Irons What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home. "Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest Down with Sharon Osbourne Puzzle of the Month solved by sizeablegrin, etienne141 and L7Sqr, superior C/C++ programmers of the month |
|
#3
|
|||
|
|||
|
Hi,
Thanks for clarifying. I have installed gcc rpm from rpmfind.net. Now the problem is Quote:
So what shud i do?? I desperately need to compile some C programs. |
|
#4
|
|||
|
|||
|
Hi,
Do i need to set the path or something to make gcc work. If so how do i go about setting the path? Is the path a sort of a link which lets the comp know what to do when i type gcc ?? Any help will be greatly appreciated. Thanks... |
|
#5
|
||||
|
||||
|
Try doing a whereis gcc and/or a find / -name gcc to see where it is installed and then try calling it explicitly by path name. Also, some shells (such as tcsh) don't see new binaries in the path immediately (you have to run rehash before the shell will find it).
|
|
#6
|
|||
|
|||
|
i got an error while try to install gcc that i get from www.rpmfind.net
[root@fedora root]# rpm -ivh gcc-3.3.3-7.i386.rpm warning: gcc-3.3.3-7.i386.rpm: V3 DSA signature: NOKEY, key ID 4f2a6fd2 error: Failed dependencies: binutils >= 2.14.90.0.4-4 is needed by gcc-3.3.3-7 cpp = 3.3.3-7 is needed by gcc-3.3.3-7 glibc-devel >= 2.2.90-12 is needed by gcc-3.3.3-7 libgcc >= 3.3.3-7 is needed by gcc-3.3.3-7 my server is : Linux fedora 2.4.24_20040521113115e-2um #5 Fri May 21 11:44:35 PDT 2004 i686 i686 i386 GNU/Linux what file should i use either i686 or i386 or both is same ??? |
|
#7
|
|||
|
|||
|
[root@fedora root]# rpm -ivh gcc-3.3.3-7.src.rpm
warning: gcc-3.3.3-7.src.rpm: V3 DSA signature: NOKEY, key ID 4f2a6fd2 1:gcc ########################################### [100%] i install gcc for Fedora Core Development Sources, but when i try to install for Fedora Core Development for i386 it still got error [root@fedora root]# rpm -ivh gcc-3.3.2-1.i386.rpm warning: gcc-3.3.2-1.i386.rpm: V3 DSA signature: NOKEY, key ID 4f2a6fd2 error: Failed dependencies: binutils >= 2.14.90.0.4-4 is needed by gcc-3.3.2-1 cpp = 3.3.2-1 is needed by gcc-3.3.2-1 glibc-devel >= 2.2.90-12 is needed by gcc-3.3.2-1 how to install this 3 file ??? |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > UNIX Help > Help installing gcc |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|