LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 12-22-2005, 10:39 PM   #1
LinuxChimp
LQ Newbie
 
Registered: Dec 2005
Distribution: Red Hat Linux
Posts: 8

Rep: Reputation: 0
Unhappy Problem installing a file


I am using redhat linux.

Ok, I downloaded xine library as a .tar.gz
I extract it, then open a text file named install
it tells me to do the ./configure stuff
so in terminal I cd into the directory it has been extracted into, try to do the ./configure and I get this c compiler error:

Configure: error: no acceptable C compiler found in $path


I thought it was something gcc related or whatever, so I go to add/remove Application and I check development tools (which was previously unchecked) because I see that there is some c and gcc related stuff but then when I click update I get this error "The following packages could not be found on your system. Installation cannot continue until they are installed."
and a little list of the pakages it couldn't find.


What do I do? I am new to linux but it really is starting to seem like more trouble than it's worth! Help me succeed with Linux!

Last edited by LinuxChimp; 12-22-2005 at 10:52 PM.
 
Old 12-22-2005, 11:06 PM   #2
Franklin
Senior Member
 
Registered: Oct 2002
Distribution: Slackware, Windows 7
Posts: 1,253

Rep: Reputation: 55
Install the development packages from the install CD's
You will need to install the kernel source and headers as well.

It's been a while since I used Red Hat, but I believe they have an installation grouping they call development. This will have all the compilers like gcc etc that you will need to compile programs from source.

If you are unable to do this, look for xine rpms compiled for your version of Red Hat. Google would be a good start.

Quote:
I am new to linux but it really is starting to seem like more trouble than it's worth!
It only seems like trouble because you have no idea what you are doing. If you are even remotely interested in linux, you likely have a good working knowledge of computers and windows and you are just not used to being a newbie again. Just keep plugging away. It is worth the effort. It's not hard, it's just different. Like learning a new language.

HTH
 
Old 12-22-2005, 11:13 PM   #3
LinuxChimp
LQ Newbie
 
Registered: Dec 2005
Distribution: Red Hat Linux
Posts: 8

Original Poster
Rep: Reputation: 0
I put the cd in and searched on the cd and found the rpms with the same name as the error message says are missing, I try to run them and it tells me that there is a newer version already installed.


What's the deal?

Why is it giving me this problem?
 
Old 12-22-2005, 11:35 PM   #4
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 59
type "echo $path" in a console... most likely it wont have gcc or whatever c compiler you have installed listed, but it SHOULD.

therefore u need to modify your $path variable so it contans the path to your compiler.

to find out where your compiler is, u should be able to type 'whereis gcc' or, again, whatever your compilers called.

now that you know where the compiler is, run this command at a terminal:
export PATH=$PATH:/path/to/cCompiler

then try doing whatever your doing again. (you should note that now 'echo $path' also displays the path you 'export'ed)

when you close this terminal window and 'echo $path' again, youll notice that the path you 'export'ed isnt there anymore. this is because you have to 'export' it each time the shell/terminal is opened.

to modify the $path variable permanetly, modify the ~/.bashrc file (~ means your home directory, ie /home/nadroj). this file is called each time the terminal is opened.
just add the export command i showed you to the end of that file and save.

Last edited by nadroj; 12-22-2005 at 11:37 PM.
 
Old 12-22-2005, 11:44 PM   #5
LinuxChimp
LQ Newbie
 
Registered: Dec 2005
Distribution: Red Hat Linux
Posts: 8

Original Poster
Rep: Reputation: 0
I tried what you said as far as changing the PATH. I still recieved the same error of not being able to find an acceptable C compiler


I think it is related to the pakages which I am having trouble installing

Last edited by LinuxChimp; 12-22-2005 at 11:45 PM.
 
Old 12-22-2005, 11:45 PM   #6
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 59
what c compiler DO you have installed?
what is the output of your $path varible? whats the output of 'whereis gcc' (or whatever ur compiler is
 
Old 12-22-2005, 11:52 PM   #7
LinuxChimp
LQ Newbie
 
Registered: Dec 2005
Distribution: Red Hat Linux
Posts: 8

Original Poster
Rep: Reputation: 0
I haven't installed a C compiler, this is a fairly recent install of red hat linux

I type $PATH in terminal and get
bash: /usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/adama/
bin: No such file or directory

For whereis gcc I get
gcc: /usr/libexec/gcc
 
Old 12-23-2005, 03:27 AM   #8
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
It seems that gcc wasn't installed completely.
On my RedHat 8 box, I also have /usr/bin/gcc, which is in the default $PATH.

Try re-installing gcc.
You can always update it later.

If it was installed from the CD, the command
rpm -q gcc
may give you a clue as to which version was installed.
 
Old 12-23-2005, 11:54 AM   #9
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 59
or try adding that path to the gcc in your $path variable
 
Old 12-26-2005, 06:22 PM   #10
ultimatenoob
Member
 
Registered: May 2005
Location: Bellingham, WA
Distribution: Suse 10.2
Posts: 77

Rep: Reputation: 15
Okay, I'm having a very similar problem, but instead of trying to install CC, i am trying to install gcc.

When i put in $path i get:
Code:
bash: /usr/local/bin:/usr/local/sbin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/bin/X11:/usr/games:/usr/lib/gcc: No such file or directory
and i put this in before doing the above:
Code:
zax@ntu:~$ whereis gcc
gcc: /usr/lib/gcc
So I'm not really sure what is going on.



By the way, on a side note, Franklin, this is wonderfully said, and good to hear:

Quote:
Originally Posted by franklin
It only seems like trouble because you have no idea what you are doing. If you are even remotely interested in linux, you likely have a good working knowledge of computers and windows and you are just not used to being a newbie again. Just keep plugging away. It is worth the effort. It's not hard, it's just different. Like learning a new language.

HTH
 
Old 12-27-2005, 12:22 AM   #11
LinuxChimp
LQ Newbie
 
Registered: Dec 2005
Distribution: Red Hat Linux
Posts: 8

Original Poster
Rep: Reputation: 0
I think I know what my problem is now, but I don't know how to fix it.

Ok. I don't have gcc installed, because I don't have the pakage for it installed in add/remove applications.

BUT everytime I try to add this pakage from add/remove applications (I check it, then click update) it gives me an error that some files are missing and that it cannot install the pakage I selected because of these missing files.


Sooo... I put in the orignal install cd, find the missing files on the cd and try to install them (they are rpm files) and it says they are already installed...

HOw do I fix this mess?
 
Old 12-27-2005, 06:59 PM   #12
ultimatenoob
Member
 
Registered: May 2005
Location: Bellingham, WA
Distribution: Suse 10.2
Posts: 77

Rep: Reputation: 15
Okay, so i switched to the folder i should have been installing gcc in the first place, /usr/share.
Now I'm getting a different error than before:
Code:
root@ntu:/usr/share/gcc-4.0.2# ./configure
loading cache ./config.cache
checking host system type... i686-pc-linux-gnuoldld
checking target system type... i686-pc-linux-gnuoldld
checking build system type... i686-pc-linux-gnuoldld
checking for a BSD compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
configure: error: Building in the source directory is not supported in this release. See http://gcc.gnu.org/install/configure.html for more details.
And when i went to the website and browsed around. I found a couple of options, specifically the --prefix=/usr/share --enable-generated-files-in-srcdir options, both of which sounded as though they may solve the problem i am having, but to no avail.

Keep me posted if you get anything figured out Chimp, i'm tearing my hair out right now, i've got all this music to listen to, but no way to listen to it, because i cant install xmms until i have gcc! Plenty of other progs i need to install, but thats the one on my mind the most right now.

good luck..
 
Old 12-27-2005, 07:03 PM   #13
ultimatenoob
Member
 
Registered: May 2005
Location: Bellingham, WA
Distribution: Suse 10.2
Posts: 77

Rep: Reputation: 15
Lightbulb oh, yeah, about that..

Holy toledo, i feel like an idiot. Okay, so i googled some of my error and came up with [URL="http://underlinux.com.br/modules.php?name=Forums&file=posting&mode=quote&p=154142"]this link.

I dont speak the language, but i deffinetly felt like slapping myself upon seeing the apt-get idea. Worked like a charm for me, hopefully it will do the same for you Chimp!
 
Old 12-28-2005, 01:50 AM   #14
LinuxChimp
LQ Newbie
 
Registered: Dec 2005
Distribution: Red Hat Linux
Posts: 8

Original Poster
Rep: Reputation: 0
I think you are forgetting that I am a huge newb. Please help me, I tried the apt-get but it said it was an unknown command... help me do what you did to get it to work.
 
Old 12-28-2005, 01:54 AM   #15
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
apt-get is for Debian (and Debian based distros), you won't have it on Red Hat.
 
  


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 not installing xstealthrtx Linux - Newbie 12 11-23-2004 11:12 AM
How do i know which .h file the compiler is using? jdruin Programming 6 11-12-2004 05:11 PM
installing the c++ compiler jmg1894 Linux - Software 1 06-17-2004 04:59 PM
Problem when installing an rpm file TransAmJugo Linux - Newbie 4 08-01-2003 02:22 PM
Problem when installing an rpm file TransAmJugo Linux - General 1 08-01-2003 12:04 PM


All times are GMT -5. The time now is 06:12 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