LinuxQuestions.org
Help answer threads with 0 replies.
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, 10:24 AM   #1
sandbag
LQ Newbie
 
Registered: Aug 2003
Location: Boston, MA
Distribution: Redhat
Posts: 9

Rep: Reputation: 0
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, 11: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, 01:11 PM   #3
sandbag
LQ Newbie
 
Registered: Aug 2003
Location: Boston, MA
Distribution: Redhat
Posts: 9

Original Poster
Rep: Reputation: 0
Thanks for the suggestion. I'll give it a shot tonight.
 
Old 05-04-2005, 01: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: 54
Put your install CD back in and this time install the development packages and kernel headers (or source).
 
Old 05-05-2005, 12:51 AM   #5
sandbag
LQ Newbie
 
Registered: Aug 2003
Location: Boston, MA
Distribution: Redhat
Posts: 9

Original Poster
Rep: Reputation: 0
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, 03:46 AM   #6
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.6, Centos 5.10
Posts: 16,324

Rep: Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041
Think you'll need the coreutils pkg installed ...
 
Old 05-05-2005, 04: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, 09:58 AM   #8
sandbag
LQ Newbie
 
Registered: Aug 2003
Location: Boston, MA
Distribution: Redhat
Posts: 9

Original Poster
Rep: Reputation: 0
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, 01: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: 54
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 01:41 PM
bash: command not found intels_ss Linux - Newbie 5 07-20-2005 08:41 PM
makefile gcc command cannot be found Mogul83 Programming 7 05-31-2005 04:11 AM
bash -command not found- K3V Linux - Newbie 7 09-30-2004 04:57 PM
bash: ll: command not found x2000koh Linux - Newbie 3 08-08-2003 06:11 AM


All times are GMT -5. The time now is 04:38 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration