PDA

View Full Version : Gcc ???


JCR
12-01-2006, 11:48 PM
Hello,

I was under the impression that Fedora Core 4 ships the GNU C Compiler (GCC) version 4 as the default compiler but I am struggling to find it on my VPS system. Any idea?
Thank you

epb
12-02-2006, 07:55 AM
It's not there so far as I know. I installed it via RPMs. I'd say use yum to install it, but that isn't included either.

JCR
12-02-2006, 10:44 AM
Hello,
Thanks for the answer.
I downloaded from
ftp://rpmfind.net/linux/fedora/core/4/SRPMS/gcc-4.0.0-8.src.rpm

created /usr/src/redhat/SOURCES and ran
rpm -Uvh gcc-4.0.0-8.src.rpm

At this point, I am not sure what to do...

Is there an easier way to install GCC?

JCR
12-02-2006, 11:38 AM
I tried with ftp://rpmfind.net/linux/fedora/core/4/i386/os/Fedora/RPMS/gcc-4.0.0-8.i386.rpm

but I am getting:
error: Failed dependencies:
cpp = 4.0.0-8 is needed by gcc-4.0.0-8.i386
glibc-devel >= 2.2.90-12 is needed by gcc-4.0.0-8.i386

Am I going to have through all the dependencies or is there out there a nice rpm package that does it smoothly?
Thanks for any suggestion.

epb
12-03-2006, 02:07 AM
Yes, but you'll be a little mired in dependencies for a short bit.

Install the yum package manager. Once you do that, installing packages becomes fairly simple. Though, installing yum can be a little difficult in itself, but the payoff is so sweet if you have to install a lot of dependency-laden packages.

JCR
12-03-2006, 12:47 PM
I agree that things with yum get much easier. In case there is another Linux beginner, I took the yum rpm file from
http://rpmfind.net/linux/rpm2html/search.php?query=yum&submit=Search+...&system=fedora&arch=
and when I get an "error failed dependencies", I search for the rpm resource (I made sure to get it for Fedora Core 4, i386 and possibly not an update unless necessary) and install. Yum had maybe 4 failed dependencies so overall it is not such a big deal.

epb
12-03-2006, 08:14 PM
Ah, so you got it installed?

Good, good. I guess I must have done something wrong when I did because it put up one heck of a fight for me. hmm... Maybe I accidentally got non-Fedora core packages. Yeah, that was probably it. :P

Teej
12-04-2006, 02:51 AM
To install yum (and all its dependencies):
$ rpm -ivh --nodeps \
> ftp://rpmfind.net/linux/fedora/core/4/i386/os/Fedora/RPMS/python-elementtree-1.2.6-4.i386.rpm \
> ftp://rpmfind.net/linux/fedora/core/4/i386/os/Fedora/RPMS/python-sqlite-1.1.6-1.i386.rpm \
> ftp://rpmfind.net/linux/fedora/core/4/i386/os/Fedora/RPMS/python-urlgrabber-2.9.6-1.noarch.rpm \
> ftp://rpmfind.net/linux/fedora/core/4/i386/os/Fedora/RPMS/rpm-python-4.4.1-23.i386.rpm \
> ftp://rpmfind.net/linux/fedora/core/updates/4/i386/yum-2.4.1-1.fc4.noarch.rpm
Or to do it manually, starting in your home directory:
$ mkdir downloads
$ cd downloads
$ wget ftp://rpmfind.net/linux/fedora/core/updates/4/i386/yum-2.4.1-1.fc4.noarch.rpm
$ wget ftp://rpmfind.net/linux/fedora/core/4/i386/os/Fedora/RPMS/rpm-python-4.4.1-23.i386.rpm
$ wget ftp://rpmfind.net/linux/fedora/core/4/i386/os/Fedora/RPMS/python-urlgrabber-2.9.6-1.noarch.rpm
$ wget ftp://rpmfind.net/linux/fedora/core/4/i386/os/Fedora/RPMS/python-sqlite-1.1.6-1.i386.rpm
$ wget ftp://rpmfind.net/linux/fedora/core/4/i386/os/Fedora/RPMS/python-elementtree-1.2.6-4.i386.rpm
$ rpm -ivh python-elementtree-1.2.6-4.i386.rpm
$ rpm -ivh python-sqlite-1.1.6-1.i386.rpm
$ rpm -ivh python-urlgrabber-2.9.6-1.noarch.rpm
$ rpm -ivh rpm-python-4.4.1-23.i386.rpm
$ rpm -ivh yum-2.4.1-1.fc4.noarch.rpm
To get a list of yum commands, or the manual, do one of:
$ yum --help
$ man yum
This is a good guide to using yum (http://prefetch.net/articles/yum.html)

ngunder
07-24-2008, 03:52 PM
Try this for updated RPMs. Thanks so much for saving me a lot of time with this... too bad yum does not come pre-installed.

wget ftp://ftp.pbone.net/mirror/download.fedora.redhat.com/pub/fedora/linux/core/updates/4/i386/yum-2.4.1-1.fc4.noarch.rpm

wget ftp://ftp.pbone.net/mirror/download.fedora.redhat.com/pub/fedora/linux/core/updates/4/i386/rpm-python-4.4.1-23.i386.rpm

wget ftp://ftp.pbone.net/mirror/download.fedora.redhat.com/pub/fedora/linux/core/4/i386/os/Fedora/RPMS/python-urlgrabber-2.9.6-1.noarch.rpm

wget ftp://ftp.pbone.net/mirror/download.fedora.redhat.com/pub/fedora/linux/core/4/i386/os/Fedora/RPMS/python-sqlite-1.1.6-1.i386.rpm

wget ftp://ftp.pbone.net/mirror/download.fedora.redhat.com/pub/fedora/linux/core/4/i386/os/Fedora/RPMS/python-elementtree-1.2.6-4.i386.rpm