LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-04-2005, 09:24 AM   #1
sandbag
LQ Newbie
 
Registered: Aug 2003
Location: Boston, MA
Distribution: Redhat
Posts: 9

Rep: Reputation: 1
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
 
Old 05-04-2005, 10:14 AM   #2
Cii
Member
 
Registered: Jul 2003
Location: Canada
Distribution: SuSE 9.2
Posts: 41

Rep: Reputation: 15
i dont know exactly since i dont use FC, but the rpm in this this list should work.
 
Old 05-04-2005, 12:11 PM   #3
sandbag
LQ Newbie
 
Registered: Aug 2003
Location: Boston, MA
Distribution: Redhat
Posts: 9

Original Poster
Rep: Reputation: 1
Thanks for the suggestion. I'll give it a shot tonight.
 
Old 05-04-2005, 12:29 PM   #4
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
Put your install CD back in and this time install the development packages and kernel headers (or source).
 
Old 05-04-2005, 11:51 PM   #5
sandbag
LQ Newbie
 
Registered: Aug 2003
Location: Boston, MA
Distribution: Redhat
Posts: 9

Original Poster
Rep: Reputation: 1
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.
 
Old 05-05-2005, 02:46 AM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Think you'll need the coreutils pkg installed ...
 
Old 05-05-2005, 03:49 AM   #7
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
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++).
 
Old 05-05-2005, 08:58 AM   #8
sandbag
LQ Newbie
 
Registered: Aug 2003
Location: Boston, MA
Distribution: Redhat
Posts: 9

Original Poster
Rep: Reputation: 1
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!
 
Old 05-05-2005, 12:17 PM   #9
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
bash -command not found- ALInux Linux - Newbie 3 12-30-2006 12:41 PM
bash: command not found intels_ss Linux - Newbie 5 07-20-2005 07:41 PM
makefile gcc command cannot be found Mogul83 Programming 7 05-31-2005 03:11 AM
bash -command not found- K3V Linux - Newbie 7 09-30-2004 03:57 PM
bash: ll: command not found x2000koh Linux - Newbie 3 08-08-2003 05:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration