LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 12: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, 12:12 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
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, 12:50 PM   #3
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
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, 07:21 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Threads merged

Snow makes a last leap
Long before the Sun has set
Tranquility mine
 
Old 04-25-2008, 07: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 07:35 PM.
 
Old 04-26-2008, 08: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, 09: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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

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