LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 10-14-2006, 09:18 PM   #1
ben44b
Member
 
Registered: Oct 2006
Location: Gatineau, QC, Canada
Distribution: Linux Mint
Posts: 80

Rep: Reputation: 22
no acceptable c compiler in $PATH


Hello,

I've installed Mandriva Linux 2006 on my computer about 2 weeks ago now. I have scoured the internet looking for the solution to get my sound card going. I can't install programs since I always get no acceptable c compiler in $PATH. This is annoying me to no end.

My linux experience so far has been...incredibly frustrating. I'm on the verge of giving up. Can anyone help me?

Thanx.
 
Old 10-14-2006, 09:30 PM   #2
verdeboy2k
Member
 
Registered: Jan 2004
Location: /dev/random
Distribution: Gentoo amd64, CrunchBang amd64
Posts: 350

Rep: Reputation: 32
Just to make a sanity check have you installed any development tools (such as, most importantly the gcc C compiler) in your system? Many distributions do not include these by default and they are required to compile any programs from source.
 
Old 10-14-2006, 09:47 PM   #3
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 77
Well the obvious thing to check is whether you have an acceptable c compiler in $PATH

Just see if typing gcc or cc at the command prompt gets you any output. If not, install your distribution’s binary package that contains the compiler and development tools (gcc, binutils, etc.).
 
Old 10-14-2006, 10:00 PM   #4
ben44b
Member
 
Registered: Oct 2006
Location: Gatineau, QC, Canada
Distribution: Linux Mint
Posts: 80

Original Poster
Rep: Reputation: 22
# cc
bash: cc: command not found
[root@CPE001692fa5441-CM001692fa5440 mp3blaster-3.2.3]# gcc
bash: gcc: command not found
[root@CPE001692fa5441-CM001692fa5440 mp3blaster-3.2.3]
 
Old 10-15-2006, 04:56 AM   #5
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
Quote:
Originally Posted by ben44b
# cc
bash: cc: command not found
[root@CPE001692fa5441-CM001692fa5440 mp3blaster-3.2.3]# gcc
bash: gcc: command not found
Install gcc since it seems to be missing. You can do that from the Mandriva Control Centre -> Software -> Install Software. If you don't mind working in the command line, do
Code:
#urpmi gcc
 
Old 10-15-2006, 04:49 PM   #6
ben44b
Member
 
Registered: Oct 2006
Location: Gatineau, QC, Canada
Distribution: Linux Mint
Posts: 80

Original Poster
Rep: Reputation: 22
This is what I got when I tried urpmi gcc:



# urpmi gcc
no package named gcc
The following packages contain gcc:
gcc-cpp
gcc2.96-cpp
libgcc1


??
 
Old 10-15-2006, 04:55 PM   #7
ben44b
Member
 
Registered: Oct 2006
Location: Gatineau, QC, Canada
Distribution: Linux Mint
Posts: 80

Original Poster
Rep: Reputation: 22
When I try to install anything I get this:

./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... no
./configure: line 2193: -z: command not found
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 10-15-2006, 07:31 PM   #8
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
What version of Mandriva 2006 did you install i.e. Live CD, 3 disc set etc? You seem to be missing packages that are necessary for development. If you have a good net connection, go to smart-urpmi and follow the instructions for setting up the main, contrib, plf and updates software repositories for Mandriva 2006. Once the repositories are setup, do "urpmi gcc make" as root.
 
Old 10-15-2006, 10:35 PM   #9
ben44b
Member
 
Registered: Oct 2006
Location: Gatineau, QC, Canada
Distribution: Linux Mint
Posts: 80

Original Poster
Rep: Reputation: 22
OK. I'll give it a try.

Thanx.
 
Old 10-16-2006, 01:11 AM   #10
ben44b
Member
 
Registered: Oct 2006
Location: Gatineau, QC, Canada
Distribution: Linux Mint
Posts: 80

Original Poster
Rep: Reputation: 22
I followed your suggestion reddazz and got the necessary files.

whereis gcc
gcc: /usr/bin/gcc4.0-version /usr/bin/gcc /usr/lib/gcc /usr/share/man/man1/gcc.1.bz2
[root@CPE001692fa5441-CM001692fa5440 share]# whereis cc
cc: /usr/bin/cc

You've made my Christmas list reddazz!
I wasn't getting anything before. Thanx for that.

Now, how do I get my sound to work??

??
 
Old 10-16-2006, 02:45 AM   #11
Emmanuel_uk
Senior Member
 
Registered: Nov 2004
Distribution: Mandriva mostly, vector 5.1, tried many.Suse gone from HD because bad Novell/Zinblows agreement
Posts: 1,606

Rep: Reputation: 53
Quote:
Now, how do I get my sound to work??
You are best starting a new thread re this
Try to run alsaconf as root, and do check mixer settings (mute)
with aumix and kmix. If this does not work post a new thread with as much details as possible.
 
  


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
no acceptable C compiler found in $PATH sinXposed Linux - Software 4 08-10-2006 03:14 PM
no acceptable C compiler found in $PATH rhraz Mandriva 9 08-01-2006 08:03 PM
no acceptable C compiler found in $PATH agentdunken SUSE / openSUSE 12 07-13-2005 04:41 PM
no acceptable C compiler found in $PATH AL MOSLEM Programming 19 02-08-2005 11:03 AM
no acceptable C compiler found in $PATH skrothuset Linux - Newbie 4 06-13-2003 07:11 AM

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

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