The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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
"No Drives Found" error during Redhat Linux AS 4 installation pieman8080 Red Hat 2 10-13-2008 11:05 AM
Explain the line "mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`" Lokesha UNIX for Dummies Questions & Answers 4 12-20-2007 01:52 AM
Network Path Not Found Error "Sunfire V100" louisd11 SUN Solaris 4 12-13-2006 01:20 PM
cc path problem - no acceptable path found kendokendokendo UNIX for Dummies Questions & Answers 2 09-12-2005 09:52 AM
Restoring back files from "lost+found" directory dhasarath Filesystems, Disks and Memory 1 09-24-2002 09:40 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-20-2007
SloYerRoll SloYerRoll is offline
Registered User
  
 

Join Date: Oct 2007
Posts: 3
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]#
  #2 (permalink)  
Old 10-20-2007
blowtorch's Avatar
blowtorch blowtorch is offline Forum Advisor  
Supporter
  
 

Join Date: Dec 2004
Location: Singapore
Posts: 2,350
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).
  #3 (permalink)  
Old 10-20-2007
SloYerRoll SloYerRoll is offline
Registered User
  
 

Join Date: Oct 2007
Posts: 3
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
  #4 (permalink)  
Old 10-22-2007
blowtorch's Avatar
blowtorch blowtorch is offline Forum Advisor  
Supporter
  
 

Join Date: Dec 2004
Location: Singapore
Posts: 2,350
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.
  #5 (permalink)  
Old 10-22-2007
SloYerRoll SloYerRoll is offline
Registered User
  
 

Join Date: Oct 2007
Posts: 3
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
Closed Thread

Bookmarks

Tags
cpio

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 12:10 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0