Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 02-20-2006, 08:30 PM   #1
LQ Newbie
Registered: Feb 2006
Posts: 3

Rep: Reputation: 0
Question new virtual web server - fedora core 2 - no acceptable C compiler


newbie here, hoping that someone can point me in the right direction...

i have a new virtual private server which will eventually host a few web sites. i've never worked with a vitual private server, or Linux for that matter. The VPS is running fedora-core-2 (psa v7.5.4_build75051014.16 os_FedoraCore 2) on Linux (Linux 2.4.20-021stab028.17.777-smp).

i need to install imagemagick (and sox, eventually, once i figure this out) on the server. i've found & downloaded the .tar.gz files, ftp'd them to my server, and unpacked them.

So, now I have an /ImageMagick-6.2.6/ directory in the following location: /usr/lib/ (is this an OK location?)

Going by the ImageMagick websites install instructions, i use my SSH client to navigate to /usr/lib/ImageMagick-6.2.6/ and then type ./configure, but i get the following error message:
configuring ImageMagick 6.2.6
checking build system type... i686-pc-linux
checking host system type... i686-pc-linux-
checking target system type... i686-pc-linu
checking whether build environment is sane.
checking for a BSD-compatible install... /u
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
configure: error: no acceptable C compiler
See `config.log' for more details.

So, from the best I can tell, I need to install a C Compiler? I'd love some advice on how to proceed with this, I googled it and ended up on the GCC homepage, but installing GCC looks really complicated!

Thanks in advance for your help!!
Old 02-21-2006, 12:12 PM   #2
LQ Newbie
Registered: Feb 2006
Posts: 3

Original Poster
Rep: Reputation: 0
In reading through some other posts, i was able to determine that I think my GCC complier IS installed, but my $PATH must not point to it...

[root@localhost /]# cat /proc/version
Linux version 2.4.20-021stab028.17.777-smp (
(gcc version 2.96 on 2.96 20000731 (Red Hat Linux 7.3 2.96-110)) #1 SMP Tue Jul 19 19:46:08 MSD 2005

So according to the info above, it looks like I already have gcc version 2.96 installed, right? (or am I making an incorrect assumption?) How the heck can I find the $PATH to it? I've tried:
find / -name gcc
but it only returns the gcc folders i've created while unsuccesfully trying to install gcc...

when i run $echo $PATH, I get the following:

[root@localhost /]# $echo $PATH
bash: //sbin://bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:
/usr/bin/usr/X11R6/bin:/root/bin: No such file or directory

can anyone suggest another method for me to find the correct $PATH ?

Old 02-21-2006, 12:39 PM   #3
Senior Member
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
locate gcc (or try slocate gcc)

Core 2 is kinda old now, i'd go with 4 or 5 to be released soonish, like march)

you could try export PATH=$PATH:/path/to/gcc

That should export a new load of paths, including the current one and the new directory of GCC

if it works then you can add it to your ~/.bashrc (run everytime a shell is) or ~/.bash_profile (run evbery login)
Old 02-21-2006, 02:40 PM   #4
LQ Newbie
Registered: Feb 2006
Posts: 3

Original Poster
Rep: Reputation: 0
well, when i run locate gcc at first it told me i must updatedb, and after updatedb i ran locate gcc again & i get the following:


I'm not sure what I'm really looking for here, is it just a file, or a folder called gcc? I know that the imagemagick & sox directories are files i've uploaded, since i'm trying to install those programs... It would make sense if the gcc-lib folder is what i'm looking for, but it's totally empty.

so i tried the "export PATH=$PATH:/path/to/gcc" per suggestion, and oops, i added that exact text to the PATH. :-( Now, guessing that the gcc must be in one of the directories listed above, i added a few more lines to my PATH. here is what my PATH looks like now:
echo $PATH
and i just noticed that i get different results if i type the $ before the echo $PATH:
$echo $PATH
-bash: //sbin://bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:
:/usr/X11R6/bin:/root/bin: No such file or directory

the previous response said "if it works then you can add it to your ~/.bashrc (run everytime a shell is) or ~/.bash_profile (run evbery login)" - i'm totally lost! How do I know if "it worked", and can someone please elaborate on the ~/.bashrc or ~/.bash_profile response?

thanks again!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
No acceptable C compiler? admart35 SUSE / openSUSE 2 11-23-2005 07:06 AM
No acceptable C compiler? fugufondue Linux - Newbie 6 03-22-2005 09:05 PM
no acceptable C compiler found OsirisX Linux - Software 1 02-10-2005 09:06 PM
Any good Fedora core 2 web server install guide? alime Fedora 2 07-09-2004 11:38 PM
acceptable C compiler? arlothemoo Linux - Software 2 10-26-2002 09:18 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:54 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration