LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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!

Notices


Reply
  Search this Thread
Old 10-12-2003, 03:40 AM   #1
mjkramer
Member
 
Registered: Sep 2003
Location: Orem, Ut
Distribution: Mandrake-9
Posts: 48

Rep: Reputation: 15
I can't find a compiler on my machine, PLEASE HELP!


I keep trying to install programs that need me to compile the packages but the configure file in these packages is unable to find a compiler in my path. Doesnt linux distrutions come with a compiler? If they do, where would it be located? If not, where can I get one? gcc?

Last edited by mjkramer; 10-12-2003 at 04:29 AM.
 
Old 10-12-2003, 03:51 AM   #2
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
they're on your installation cds. usually to get them installed you need to choose to install the development packages when installing linux.
 
Old 10-12-2003, 04:13 AM   #3
mjkramer
Member
 
Registered: Sep 2003
Location: Orem, Ut
Distribution: Mandrake-9
Posts: 48

Original Poster
Rep: Reputation: 15
PLEASE HELP!

I installed the development packages, I think. Im pretty sure. Part of purpose of me using linux is for me to learn how to program on linux. I would have included something like that in my installation. As you know, microsoft applications do all of this stuff for you. Im getting ticked off. Nothing is working for me. This is a whole other world from windows. I appreciate the knowledge that comes with learning to use a system like this but I only have an associates degree and minimal experience. Its as if I have to have written a compiler in order to use one.


I was just looking at installing c compilers and I have no idea what Im doing. They want me to download these packages of all these files, figure out how to piece them together and compile them without a compiler. They are telling me that I have to have a compiler to get a compiler. What the hell is that?! DAMN! Im not reinstalling linux..... I cant put those packages in after ive already installed the system? What am I going to do if I didnt install those packages? Thats dumb too cause everything ive come across installing needs me to have a compiler, but that doesnt make me a "developer".
Why do I have to be a developer to download and install a dvd player?

Last edited by mjkramer; 10-12-2003 at 04:29 AM.
 
Old 10-12-2003, 05:27 AM   #4
halfhaggis
LQ Newbie
 
Registered: Aug 2003
Location: Johannesburg, South Africa
Distribution: Ubuntu
Posts: 24

Rep: Reputation: 15
Okay. Take a moment to remember to breathe.
Breathing again? Good.

Are you using Red Hat 9? I'm going to asume you are, because if you're not I can't help you since I've only ever used RH distros.

Open a console and type (without the $. That's just there to indicate a prompt);
$ rpm -q gcc

You should get something like:

gcc-3.2.2-5

as output.
If not you don't have gcc installed, which probably means you didn't install the development packages when you started.

No worries though. On the pop-up menu on the panel, go to

System settings>Add/Remove Programs.

Run that and install the development packages.

Hope that helps.
 
Old 10-12-2003, 10:40 AM   #5
link1305
Member
 
Registered: Oct 2003
Location: Cleveland, Ohio
Distribution: Gentoo
Posts: 53

Rep: Reputation: 15
Quote:
If not you don't have gcc installed, which probably means you didn't install the development packages when you started.

No worries though. On the pop-up menu on the panel, go to

System settings>Add/Remove Programs.

I must not have gcc installed either, but I'm running just in text mode. Is there a text based utility to manage packages as well?
 
Old 10-12-2003, 11:09 AM   #6
halfhaggis
LQ Newbie
 
Registered: Aug 2003
Location: Johannesburg, South Africa
Distribution: Ubuntu
Posts: 24

Rep: Reputation: 15
I think so.
The binary for add/remove programs is:

/usr/bin/redhat-config-packages

Try running that from the console. it might work
 
Old 10-12-2003, 06:02 PM   #7
mjkramer
Member
 
Registered: Sep 2003
Location: Orem, Ut
Distribution: Mandrake-9
Posts: 48

Original Poster
Rep: Reputation: 15
Well, the package isn't installed and its not on my installation disk. The distrobution I have says that I have the developers packages on the box. So first I tried installing them the way you suggested, but found no gcc packages(only gcc documentation) and then I ran the linux installation on an empty computer that I happen to have sitting around, and there was no such option to include such packages in the installation.

Where can I get a precompiled gcc package?

Last edited by mjkramer; 10-12-2003 at 06:32 PM.
 
Old 10-12-2003, 07:07 PM   #8
mjkramer
Member
 
Registered: Sep 2003
Location: Orem, Ut
Distribution: Mandrake-9
Posts: 48

Original Poster
Rep: Reputation: 15
Im still having problems. I don't know enough to get this done. I keep learning these little things along the way, commands and what not, but Im so far from getting this resolved. Anyway, I found 2 gcc packages on the intallation disk. For some reason they dont show in the installation or the install programs interface but they are shown in the directory of the cd.

First I attempted to open the different packages through my mnt/cdrom icon on my desktop. That tells me that they are already installed. Then why won't rpm -q gcc find anything?

So then I went to the directory form the console and ran the rpm -i on the packages and got this error:
"Cannot open packages index using db3-operation not permitted.

At this point screw the DVD's. Ill just watch them on the tv or with windows when im on the plane, bus or grandmas house, but I still want to learn how to do this. I want to get this figured out. Is there somone out there that will walk through this with me? Hold my hand?
 
Old 10-13-2003, 12:24 PM   #9
halfhaggis
LQ Newbie
 
Registered: Aug 2003
Location: Johannesburg, South Africa
Distribution: Ubuntu
Posts: 24

Rep: Reputation: 15
Sorry I don't know enough to help you anymore than I already have.

However, for the DVD player, try downloading Ogle or Mplayer. Both have rpms available that you shouldn't have to compile - you can get them from freshrpms.net

Good luck
 
  


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
c++ compiler doesn't find library Y0jiMb0 Linux - General 7 12-27-2010 05:27 AM
Can`t find C-compiler in Debian ,or at least can`t find one that can make executables hemmelig Linux - Software 4 05-26-2008 03:07 AM
Where can I find a BC compiler. vash_stewy Linux - Software 5 04-09-2004 10:51 PM
Cant find a C-compiler Sence2001 Red Hat 6 04-08-2004 07:03 AM
./configure cant find a compiler habitue Linux - Software 18 10-15-2003 03:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10: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
Open Source Consulting | Domain Registration