![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| 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 !! |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
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]# |
| Forum Sponsor | ||
|
|
|
|||
|
Yes it's a Linux server CentOS release 4.5 (final)
Quote:
[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 |
|
||||
|
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. |
|
|||
|
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 |
|||
| Google The UNIX and Linux Forums |