The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Explain the line "mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`" Lokesha UNIX for Dummies Questions & Answers 4 12-19-2007 09:52 PM
"No Drives Found" error during Redhat Linux AS 4 installation pieman8080 Linux 1 05-23-2007 02:18 PM
Network Path Not Found Error "Sunfire V100" louisd11 SUN Solaris 4 12-13-2006 09:20 AM
cc path problem - no acceptable path found kendokendokendo UNIX for Dummies Questions & Answers 2 09-12-2005 06:52 AM
Restoring back files from "lost+found" directory dhasarath Filesystems, Disks and Memory 1 09-24-2002 06:40 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-19-2007
Registered User
 

Join Date: Oct 2007
Posts: 3
Stumble this Post!
Same ol "no acceptable cc found in $PATH" but I'm not clueless... just still a noob

Hey All,
Let me start out w/ I have serched the forums and found this to be a typical problem. None of the threads have been able to help in my situation though.

I know cc or gcc needs to be installed in ...bin]# (or lead the path of the app to wherever gcc is when compiling) so the app can "see" it and do it's thing.

All the forums say to run the pre-installed cc and most of the time gcc isn't even required unless an app needs it.

When I try to install mplayer, it gives me an "Error: Bad gcc version" No sweat, I figure I'll just go to get the latest copy of GCC and install it. So I d/l GCC on my server, drop it in the /bin directory so it will "see" the existing compiler and configure. I run "./configure" I get the "no acceptable cc found in $PATH" song and dance...

I'm pasted the contents of my /bin below to make sure It's not staring me right in the face (the directory named "gcc" is the gcc compiler I've placed there and it doee me no good since I can't compile it.)

Thanks for helping a noob out. I'm learning, just really stuck on this one. I aslo appologize for not using the right terms.. I am a noob though and can get away w/ this for at least a little bit, right?

NOTE: I can give you an IP and login NFO id you want to SSH into the server to see what's up. It's bare bones now and I'll just change the PW when your done. (I'll only give login NFO to an established member, last thing I need is some jerk putting some nastiness in this server before it's populated)


[root@knoxtube bin]# ls
arch chgrp csh dmesg ed fgrep gunzip kill mail mount pgawk rbash rvi sort tcsh traceroute6 usleep
awk chmod cut dnsdomainname egrep gawk gzip link mkdir mv ping red rview stty touch true vi
basename chown date doexec env gcc hostname ln mknod netstat ping6 rm sed su tracepath umount view
bash cp dd domainname ex grep igawk login mktemp nice ps rmdir sh sync tracepath6 uname ypdomainname
cat cpio df echo false gtar ipcalc ls more nisdomainname pwd rpm sleep tar traceroute unlink zcat
[root@knoxtube bin]#
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 10-20-2007
blowtorch's Avatar
Supporter
 
Join Date: Dec 2004
Location: Singapore
Posts: 2,323
Stumble this Post!
I'm assuming that this is a Linux server. Can you run this command: 'which gcc'? If that shows an output then your configure should run correctly. Also, when you say that you downloaded gcc, does that mean you installed it on the server? Can you run the query command in your package administrator and confirm that gcc is indeed installed?

If all these are ok, then I suggest also making a link named /bin/cc that points to the gcc (wherever it is installed).
Reply With Quote
  #3 (permalink)  
Old 10-20-2007
Registered User
 

Join Date: Oct 2007
Posts: 3
Stumble this Post!
Yes it's a Linux server CentOS release 4.5 (final)

Quote:
Originally Posted by blowtorch View Post
I'm assuming that this is a Linux server. Can you run this command: 'which gcc'? If that shows an output then your configure should run correctly. Also, when you say that you downloaded gcc, does that mean you installed it on the server? Can you run the query command in your package administrator and confirm that gcc is indeed installed?

If all these are ok, then I suggest also making a link named /bin/cc that points to the gcc (wherever it is installed).
I run which GCC and it shows me that GCC is in a bunch of directories: I assume that the GCC I want is in ""usr/bin/which"?: I thought that

[root@knoxtube ~]# which gcc
/usr/bin/which: no gcc in(usr/kerberos/sbin:/usr/kerberos/bin://sbin://bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin)

{what's w/ the "no gcc in" stuff?}


I would normally do something like this:>??
export PATH = $PATH:/foo/bar/bin

But since this is a script. I have to edit the scripts I believe..
Any thoughts on this? I have NO IDEA how to edit scripts yet. I heard it's not hard though...

I' know I'm making rocket schience out of french toast. But I got myself so spun into this I can't see which way I'm supposed to go from here.

I'd appreciate any help I get.

I'm doing this to learn, but my friend still has a timeline to get this done. I'd really like to complete this so I can feel like I learned something besides navigation and moving files...

All the best,
-Jon
Reply With Quote
  #4 (permalink)  
Old 10-22-2007
blowtorch's Avatar
Supporter
 
Join Date: Dec 2004
Location: Singapore
Posts: 2,323
Stumble this Post!
The "no gcc in" is the problem. This means that gcc isn't in any of the directories in your path. This in turn means that the configure script isn't able to find a valid gcc to set as the compiler.

You need to install gcc first. Unfortunately I have no idea how you would do that on CentOS.
Reply With Quote
  #5 (permalink)  
Old 10-22-2007
Registered User
 

Join Date: Oct 2007
Posts: 3
Stumble this Post!
Thanks for your reply. I'm doing some reading and it seems that I'll need to d/l the binary version of GCC since binary acts as low level communication w/ the OS.

I'll muddle around some more. Can't wait to get off this server and get onto a more popular OS so I can study and learn this stuff. It's really fascinating!

-Jon
Reply With Quote
Google The UNIX and Linux Forums
Reply

Tags
cpio

Thread Tools
Display Modes




All times are GMT -7. The time now is 04:14 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0