LinuxQuestions.org
Visit Jeremy's Blog.
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 11-23-2003, 02:23 PM   #1
Forezt
Member
 
Registered: Jun 2003
Location: Aero-nomadic
Distribution: Debian (etch, PPC)
Posts: 80

Rep: Reputation: 15
GCC compiler?


I recently got serious in wanting to get started with linux, and more and more I realize that I am a complete n00b. I've tried to install several programs including Xine and the newest version on xscreensaver on red hat 9. My problem is: when ever I run the install in the terminal (cd .../xine-*.* | ./configure), it goes through all of that output untill it gets to "error: no acceptable C compiler found in $PATH".

I searched google for my problem and it said that I need gcc. I had no idea what gcc was, or what it stood for, but I downloaded it and tried to install it. When I went through the installation in the terminal, I got the message:

*** The command 'cc -o conftest -g conftest.c' failed.
*** You must set the enviroment variable CC to a working compiler.

I have no idea what this means! Help, anyone? Do I need another program or what?
 
Old 11-23-2003, 02:36 PM   #2
MartinN
Member
 
Registered: Nov 2003
Location: Ronneby, Sweden
Posts: 555

Rep: Reputation: 30
You have downloaded source code for the gcc compiler. In order to make a working compiler out of that, you'll need to have -- a working compiler.

Try installing it from rpms instead. Or pop in your RedHat CD and add gcc from that. It's probably somewhere under "Developer tools" or something like that.

This problem raises the interesting question of how the first compiler in the world was compiled.

Regards
Martin
 
Old 11-23-2003, 03:07 PM   #3
xode
Member
 
Registered: Aug 2003
Distribution: Mandrake 9.0; FC4; FC8; SUSE 10.3; SUSE 12.1; SUSE 13.2
Posts: 620
Blog Entries: 1

Rep: Reputation: 49
You want to look at, get familiar with and use the RPM utilities that your RH9 provides. Based on my Mandrake 9.0, which is probably more similar than different than your RH9, you should have:

(1) a software management section in your system control panel, which would be the RH9 equivalent of Mandrake Control Center. That section should let you see what RPM packages are installed, allow you to install or uninstall RPMs and allow you to add and edit the places where the system looks for new RPMs to install. Only root should be able to access this.

(2) A packaging utility (possibly the KPackage that I have) that will allow you to examine all installed packages in great detail, including a list of what files they contain and where those files are installed on your system. That package utility will also allow you to test and examine any new RPM that you download from the net. A regular user should be able to freely examine packages but the utility will ask for root access if you want to test or (un)install packages.

(3) A utility for building RPMs, from either software that you write or from software (binaries or sources) that you download from the net. This utility will be the hardest one to master and be ready to use the command line to do it.

Now, you might ask, what do RPMs have to do with my problem? The answers are:

(1) gcc should already be installed on your system. You can find out where and with detail with the package utility that I described above.

(2) I have yet to make the procedure that you described above work, even though I didn't get the same errors. My experience is getting to be, if you want to install other people's software, use only the RPM utility that comes with your linux system. If the software that you want to install is not in RPM format then it would need to converted to RPM format using the build utility that I described above (assuming that that can be done). I suspect that the root cause of your problems here is that you are trying to install on your system software that has been written for a different linux distribution, one whose GUI is completely different and which doesn't use RPMs.

(3) if you want to write your own software, there should be a development program (kdevelop possibly) that will allow you to do it. Then you can convert your binaries into RPM before installing it.

I was recently successful in installing my first program that I downloaded from the net and that didn't come on the install CDs and it works without any problems. It is looking more and more that the RPM utility has all of the ease of use of a Windows install program and the overwhelming advantage of being completely reversible (which Windows install programs aren't).
 
  


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
GCC Compiler rr_rr_29 Linux - Software 2 10-17-2005 05:14 AM
GCC compiler .. pashupathinath Programming 1 10-21-2004 01:20 PM
GCC Compiler HELP Otaking Linux - Newbie 5 04-08-2004 07:17 PM
GCC compiler...? ph0tik Linux - Newbie 4 04-22-2003 04:22 PM
GCC compiler ionic Programming 3 05-10-2001 09:59 AM


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