PDA

View Full Version : installing gcc without any cc


xluryan
29th November 2006, 06:57 PM
hey, i just installed FC6 and didn't include any dev kits or compilers or anything. now i'm trying to install gcc. can i do that without having any previous compilers installed?

wesamel
29th November 2006, 07:09 PM
Just do "yum install gcc" in the terminal. It should tell you if there are any dependencies.

xluryan
29th November 2006, 07:25 PM

Just do "yum install gcc" in the terminal. It should tell you if there are any dependencies.

the thing is, i don't have an internet connection right now. i've downloaded the gcc tarball. what can i do from there?

Seve
29th November 2006, 07:39 PM
Hello:
You would probably be better off trying to install the rpm(s) from the installation disc(s).
There is a how-to create a yum repo here for both a DVD and or CD's
http://www.city-fan.org/tips/YumRepoFromImages

Seve

xluryan
29th November 2006, 07:44 PM
ha, also... i don't have the install DVD/CD. all i have is the gcc tarball. my friends laptop has the internet, so if i have to download something and transfer it over on flash drive, that's a possibility. but i'm pretty limited as to what i've got to work with.

Dies
29th November 2006, 08:06 PM
Well then here you go http://gcc.gnu.org/install/prerequisites.html you better get to downloading, good luck.

Oh yeah don't forget to check what dependencies the dependencies have and what those and etc,etc.

markkuk
29th November 2006, 11:54 PM
The gcc tarball is completly useless. Download the gcc RPM files from the Fedora distribution, you need at least binutils, libgcc, libgomp, gcc and glibc-devel.

ihavenoname
1st January 2007, 03:41 AM
here's the yum deplist output for gcc. But it is possible that there are other dep's not listed because they are needed for one of the packages that gcc depends on, in that case just tell us which one and we will help you. But I think that you should download the dvd or cds and burn them and setup a local repo.rather than having to put up with "dep-hell"

yum deplist gcc
Loading "installonlyn" plugin
Finding dependencies:
Setting up repositories
Reading repository metadata in from local files
package: gcc.i386 4.1.1-30
dependency: libc.so.6(GLIBC_2.3)
provider: glibc.i686 2.5-3
provider: glibc.i386 2.5-3
dependency: libgcc >= 4.1.1-30
provider: libgcc.i386 4.1.1-30
dependency: binutils >= 2.17.50.0.2-8
provider: binutils.i386 2.17.50.0.3-6
dependency: libgcc_s.so.1
provider: libgcc.i386 4.1.1-30
dependency: libgomp.so.1
provider: libgomp.i386 4.1.1-30
dependency: /sbin/install-info
provider: info.i386 4.8-11.1
provider: info.i386 4.8-14.fc6
dependency: libc.so.6
provider: glibc.i686 2.5-3
provider: glibc.i386 2.5-3
dependency: glibc-devel >= 2.2.90-12
provider: glibc-devel.i386 2.5-3
dependency: libc.so.6(GLIBC_2.0)
provider: glibc.i686 2.5-3
provider: glibc.i386 2.5-3
dependency: libc.so.6(GLIBC_2.4)
provider: glibc.i686 2.5-3
provider: glibc.i386 2.5-3
dependency: cpp = 4.1.1-30
provider: cpp.i386 4.1.1-30
dependency: rtld(GNU_HASH)
provider: glibc.i686 2.5-3
provider: glibc.i386 2.5-3
dependency: libc.so.6(GLIBC_2.1)
provider: glibc.i686 2.5-3
provider: glibc.i386 2.5-3
dependency: /bin/sh
provider: bash.i386 3.1-16.1
dependency: libc.so.6(GLIBC_2.2)
provider: glibc.i686 2.5-3
provider: glibc.i386 2.5-3
dependency: libgomp = 4.1.1-30
provider: libgomp.i386 4.1.1-30