Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
You do know those are source packages, right? As such, you'll need to build them first (which obviously requires a compiler). It would be easier to get a pre-built package for your distro and install that.
I already tar gcc-4.1.1 , then i type which gcc again. Still... no gcc
Before that, i already have a gcc folder in /usr/lib when i install Fedora5.
when i type "which gcc", this is what terminal show /usr/bin/which: no gcc in (/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6:/home/pang/bin)
You start by telling which distro you're using. Is it the Fedora Core 5?
Then the command should be like "rpm -i gcc" to install the gcc package though I think it uses the yum... but I haven't used it in a while so someone more knowledgeable should tell the correct command.
the command 'which gcc' searches for program gcc from your PATH which is a list of folders where the linux will search for programs.
You can't install the gcc-4.1.1.tar.bz2 as it is the source code and it needs to be compiled before you can use it and to compile binary packages you need to have gcc installed... see where I'm getting at
Only way is to install binary package which is already compiled for your distro.
This is a chicken and egg situation. The tarball you loaded contains the source for the gcc compiler. You need the gcc compiler to compile it. Your distro should have a gcc package which will install the precompiled binary.
I would recommend using that version since you may need to update a lot of dependencies.