LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices



Reply
 
Search this Thread
Old 04-12-2008, 01:07 PM   #1
NeilJones
LQ Newbie
 
Registered: Apr 2007
Posts: 17

Rep: Reputation: 0
What is correct path to C compiler


I am trying to install a new version of Python on my system.

I get. I am running Mandriva 2008
I havre tried the obvious combinations to me in $PATH. Any ideas what it should be?

#./configure
checking MACHDEP... linux2
checking EXTRAPLATDIR...
checking for --without-gcc... no
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
 
Old 04-12-2008, 01:12 PM   #2
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,028
Blog Entries: 5

Rep: Reputation: 791Reputation: 791Reputation: 791Reputation: 791Reputation: 791Reputation: 791Reputation: 791
Typically it is in /usr/bin. Some people put it in /usr/local/bin if they are adding this as a separate compiler on an existing system (e.g. Solaris or HP-UX) that already has its own cc compiler.

It is always possible you don't already have the gcc package installed. If you state which Distro (e.g. RedHat, Ubuntu, etc...) and which version of that distro then we can hell you to determine if the package is installed.
 
Old 04-12-2008, 01:50 PM   #3
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 74
If gcc was installed, it would be in /usr/bin. You need to install gcc using the GUI package manager or using urpmi. It may help if you went to easyrupmi and setup the various main, contrib, plf and updates repos and then install gcc.
 
Old 04-12-2008, 08:21 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,744
Blog Entries: 54

Rep: Reputation: 2973Reputation: 2973Reputation: 2973Reputation: 2973Reputation: 2973Reputation: 2973Reputation: 2973Reputation: 2973Reputation: 2973Reputation: 2973Reputation: 2973
Threads merged

Snow makes a last leap
Long before the Sun has set
Tranquility mine
 
Old 04-25-2008, 08:32 PM   #5
NoahT1BM
Member
 
Registered: Feb 2008
Distribution: Mandriva One 2008.1, Vector 5.8 SOHO, Knoppix 5.1.1
Posts: 50

Rep: Reputation: 15
I am running Mandriva One 2008.1 and I am getting that same error when I am trying to install CUPS. what should I be looking for in /usr/bin? How do I change the path if it needs to be changed?

Last edited by NoahT1BM; 04-25-2008 at 08:35 PM.
 
Old 04-26-2008, 09:48 AM   #6
ernie
Senior Member
 
Registered: Nov 2001
Location: Toledo, Ohio - USA
Distribution: Mageia 1
Posts: 1,079
Blog Entries: 4

Rep: Reputation: 70
If you are getting an error that a source package you are attempting to make and install is unable to find your c compiler, you need to install gcc (The error is telling you that the compiler is not installed). Open a terminal window (if you do not already have one open), su to root (command is su). NOTE:you will need your root password. Install gcc (command is urpmi gcc).

If urpmi returns an error indicating the package does not exist, or can not be found (and you have not yet done so), you should set up the Internet Software Media Sources (repositories) for use with urpmi (and the Software Package Manager). Go to the Easy URPMI WEB site and follow the directions there. I see they just updated the site yesterday (Friday 25 April, 2008) and I have not checked it out yet (but I will today) so I can not provide direction to help you with its use, but it appears to have been automated (which should make it even easier to use than ever).

If you have set up the Internet Software Media Sources, and still get the compiler not found error, try updating your media sources with urpmi (command is urpmi.update -a)

HTH,
 
Old 04-29-2008, 10:48 AM   #7
NoahT1BM
Member
 
Registered: Feb 2008
Distribution: Mandriva One 2008.1, Vector 5.8 SOHO, Knoppix 5.1.1
Posts: 50

Rep: Reputation: 15
Thanks Ernie. The installation went smoothly. However, I have not yet had a chance to test my HP Deskjet, but I feel that I will not have any issues.
 
  


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
jdk not in correct path angryfirelord Slackware 6 04-08-2007 11:14 AM
correct @INC path not detected by web browser mfitzpat Linux - Software 1 03-30-2006 08:25 PM
which is the correct directory path? verbatim Programming 1 04-25-2005 12:22 AM
Adding the correct installation path mynameisjoe Linux - Newbie 4 05-11-2004 11:26 AM
please tell me if my path statement is correct on RH 7.3 ergo_sum Linux - Newbie 9 12-13-2003 12:41 AM


All times are GMT -5. The time now is 09:33 PM.

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