Same ol "no acceptable cc found in $PATH" but I'm not clueless... just still a noob


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Same ol "no acceptable cc found in $PATH" but I'm not clueless... just still a noob
# 1  
Old 10-20-2007
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  
Old 10-20-2007
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  
Old 10-20-2007
Yes it's a Linux server CentOS release 4.5 (final)

Quote:
Originally Posted by blowtorch
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  
Old 10-22-2007
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  
Old 10-22-2007
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
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Bash script - Print an ascii file using specific font "Latin Modern Mono 12" "regular" "9"

Hello. System : opensuse leap 42.3 I have a bash script that build a text file. I would like the last command doing : print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt where : print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies

2. Shell Programming and Scripting

find . -path "*_nobackup*" -prune -iname "*.PDF" \( ! -name "*_nobackup.*" \)

These three finds worked as expected: $ find . -iname "*.PDF" $ find . -iname "*.PDF" \( ! -name "*_nobackup.*" \) $ find . -path "*_nobackup*" -prune -iname "*.PDF" They all returned the match: ./folder/file.pdf :b: This find returned no matches: $ find . -path "*_nobackup*" -prune... (3 Replies)
Discussion started by: wolfv
3 Replies

3. Windows & DOS: Issues & Discussions

Avoiding DOS space related "path not found errors"

Well I have a lot of scripts that require dragging and dropping files in order to define Source files etc. However more often then not it is the case that the path to said file contains NUMEROUS spaces. I know one way to evade this problem is to encase the path in Quotes like this: ... (7 Replies)
Discussion started by: pasc
7 Replies

4. Shell Programming and Scripting

"find . -printf" without prepended "." path? Getting path to current working directory?

If I enter (simplified): find . -printf "%p\n" then all files in the output are prepended by a "." like ./local/share/test23.log How can achieve that a.) the leading "./" is omitted and/or b.) the full path to the current directory is inserted (enclosed by brackets and a blank)... (1 Reply)
Discussion started by: pstein
1 Replies

5. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

6. Solaris

configure: error: no acceptable ld found in $PATH

When i configure apache(2.2.15) on solaris-8 server it producing following error <configure: error: no acceptable ld found in $PATH configure failed for srclib/apr > please help me any to fix this error. :confused: ---------- Post updated at 09:44 PM ---------- Previous update was... (0 Replies)
Discussion started by: kalpeer
0 Replies

7. Solaris

Solaris9 - qlogic HBAs - luxadm reports "Found path to 0 HBA ports"

Hi All, I'm actually trying to configure a Qlogic HBA on a solaris9 connecting in a Brocade SAN. I installed Solaris9 and now trying to look at FC devices.. bash-2.05# luxadm -e port Found path to 0 HBA ports bash-2.05# luxadm probe No Network Array enclosures found in /dev/es... (7 Replies)
Discussion started by: ilan
7 Replies

8. Solaris

Network Path Not Found Error "Sunfire V100"

I recently got this new old server from a friend. I just installed a fresh version of Solaris 10 on it. I have put a static IP of 192.168.100.10 the server. Their is no subnetting scheme on the network. And I made the hostname "SunServ." And I also changed the folder "/etc/inet/hosts" because I... (4 Replies)
Discussion started by: louisd11
4 Replies

9. UNIX for Dummies Questions & Answers

cc path problem - no acceptable path found

Hello everyone, I'm a unix noob. I have a powerbook running mac os x 10.4 and for one of my classes I need to install the latest version of php (5.0.5). I'm following the instructions at http://developer.apple.com/internet/opensource/php.html to install but I've run into a problem. The... (2 Replies)
Discussion started by: kendokendokendo
2 Replies
Login or Register to Ask a Question