LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   bash: gcc: command not found (https://www.linuxquestions.org/questions/linux-software-2/bash-gcc-command-not-found-320036/)

sandbag 05-04-2005 09:24 AM

bash: gcc: command not found
 
Hi All:
I'm a Linux newbie and I'm working on installing RH Fedora Core 1 on my IBM Thinkpad 570. I have the book "Fedora Core for Dummies" and I got the distro from the included CD and installed the OS flawlessly. Everything works fine except for my D-Link DFE-690TXD network card. The Thinkpad recognizes the device in the card slot, but will not "Activate" it the point where I can connect to my network and grab an ip. I scoured the D-Link site and found a neat little FAQ to help with my issue.

support.dlink.com/faq/view.asp?prod_id=1226&question=DFE-690TXD

Unfortunately, I get stuck on Step 1. I can't seem to compile the downloadable source code. I get the error message "bash: gcc: command not found" I searched the web again and found a suggestion to enter "Add/Remove Applications" and simply add the gcc feature. I found gcc and tried to add the feature, but I get an error message asking for "Fedora Core Disc 2" which I don't have because it didn't come with the book. I suppose I could download the Fedora Core 1 Disc 2 and hope this remedies the problem, but I think it'd be neat to find a way to install the gcc command manually without having to grab 650MB image and burning it to the cd in the hopes that it will work. Remember, I don't have a network connection but I do have a floppy and a cd-rom available on my laptop. How can I solve this issue?
Thanks,
_sandbag

Cii 05-04-2005 10:14 AM

i dont know exactly since i dont use FC, but the rpm in this this list should work.

sandbag 05-04-2005 12:11 PM

Thanks for the suggestion. I'll give it a shot tonight.

Komakino 05-04-2005 12:29 PM

Put your install CD back in and this time install the development packages and kernel headers (or source).

sandbag 05-04-2005 11:51 PM

Didn't work. I tried gcc-4.0.0-2.i386.rpm but it stated unlocateable packes: binutils, cpp, libgcc. So I went down to gcc-3.3.2-1.i386.rpm and tried to install, but I got the request for Fedora Core 1, Disc 2 again. I guess I can't get away from Disc 2. I might as well dnload and try it.

chrism01 05-05-2005 02:46 AM

Think you'll need the coreutils pkg installed ...

__J 05-05-2005 03:49 AM

Quote:

Originally posted by sandbag
Didn't work. I tried gcc-4.0.0-2.i386.rpm but it stated unlocateable packes: binutils, cpp, libgcc. So I went down to gcc-3.3.2-1.i386.rpm and tried to install, but I got the request for Fedora Core 1, Disc 2 again. I guess I can't get away from Disc 2. I might as well dnload and try it.
I'd stick with gcc-3.x.x for now ( but thats up to you). by itself, gcc cannot create executables, you're better off installing most if not all of the things in the development section of packages, some you will never use, but when you need something you will probably already have it. for compiling from source you'll want:

autoconf
automake
make
m4
bison
flex
gawk
sed
binutils ( this one is required, without it gcc will not be able to create executables)
gcc (for c)
g++ (for c++)
perl
python (optional, you probably already have it)
gettext

since you are running an rpm distro, there are a couple of things you need to watch out for. one is -devel packages, which contain what you need to link against a particular library/program. for example, if a program you are trying to compile needs gtk+-2.x.x, you will need both gtk+-2.x.x-ixxx.rpm and gtk+-2.x.x-devel-ixxx.rpm's installed to link against it. the other thing is rpm distro's split some of their development packages off into separate packages so watch out for those like in your above post cpp, libgcc, libstdc++ ( and libstdc++-devel) (normally all of these come with gcc/g++).

sandbag 05-05-2005 08:58 AM

Wow, you guys are so fast with responses. Awesome!!!

I thought the same thing last night and decided to try to fix gcc-3.3.2-1.i386.rpm. I didn't want to get ahead of myself with gcc-4.0.0-2.i386.rpm since it seemed that was much newer than the version that was supposed to be on my Fedora Core 1 install. I downloaded rpm's for binutils, cpp, libgcc and installed. binutils installed. cpp and libgcc said it was already present. I tried gcc and it worked. Awesome! Thanks!

Komakino 05-05-2005 12:17 PM

Quote:

Originally posted by sandbag
Didn't work. I tried gcc-4.0.0-2.i386.rpm but it stated unlocateable packes: binutils, cpp, libgcc. So I went down to gcc-3.3.2-1.i386.rpm and tried to install, but I got the request for Fedora Core 1, Disc 2 again. I guess I can't get away from Disc 2. I might as well dnload and try it.
I meant the whole development section, not just gcc.


All times are GMT -5. The time now is 03:37 PM.