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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
03-01-2005, 02:17 PM
|
#1
|
Member
Registered: Dec 2004
Distribution: FC3, RH enterprise 3
Posts: 46
Rep:
|
how to install C compiler in $PATH?
whenever i give ./configure command to insall any tar.gz file, the following message appears in konsole
no acceptable cc found in $PATH
plz help on what to do
i am using Mandrake 10.0
thanks in advance
|
|
|
03-01-2005, 02:22 PM
|
#2
|
Member
Registered: Nov 2004
Posts: 43
Rep:
|
Do you have a compiler (development packages) installed?
|
|
|
03-01-2005, 02:40 PM
|
#3
|
Member
Registered: Feb 2005
Posts: 42
Rep:
|
Try the following, if you're using a bash shell:
whereis cc
or
whereis gcc
If it finds that, make certain that the directory is in your PATH environment variable. You can check this out via: echo $PATH
If the directory isn't in your PATH, you can add it via:
export PATH=$PATH:/usr/local/bin
Here we're adding /usr/local/bin to the path, assuming that cc is in there.
Another possibility is that configure is only looking for gcc, and you only have cc installed. To solve that, try:
CC=/usr/local/bin/gcc ./configure
Or you can make a symlink between gcc and cc
|
|
|
03-01-2005, 11:41 PM
|
#4
|
Member
Registered: Dec 2004
Distribution: FC3, RH enterprise 3
Posts: 46
Original Poster
Rep:
|
installing gcc
thanks a lot for your replies
is the installation of gcc sufficient to have ccomplier ?
but while trying to install gcc i get the following message:
./configure
Configuring for a i686-pc-linux-gnu host.
Created "Makefile" in /home/har/gcc-3.3.2 using "mt-frag"
./configure: line 8: cc: command not found
*** The command 'cc -o conftest -g conftest.c' failed.
*** You must set the environment variable CC to a working compiler.
please help me on what to do
as i am new to linux, i am not able to follow things well
thanking you
|
|
|
03-01-2005, 11:51 PM
|
#5
|
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290
|
It seems odd, but you need an existing C compiler to compile gcc (it's written mostly in C itself). If you have no compiler, you'll need to install ready compiled binaries. You should be able to find a gcc package on your distro's install media. If you're having trouble tell us which diostro (sorry if it's posted and I missed it) and we'll help you further,
|
|
|
03-02-2005, 07:39 AM
|
#6
|
Member
Registered: Nov 2004
Posts: 43
Rep:
|
On Mandrake, you should install a RPM package from the installation CD, and NOT try to compile it by hand.
Easiest way to do it is open Mandrake Control Center, find an icon for Add/Remove Software, find gcc in the list, select it, and the program will install it for you.
|
|
|
All times are GMT -5. The time now is 02:05 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|