LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

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


hello,

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, 11:12 AM   #2
dancingbear0420
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 (moruga@current.eng.sw.ru)
(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 ?

thanks!
 
Old 02-21-2006, 11:39 AM   #3
ethics
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, 01:40 PM   #4
dancingbear0420
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:

/lib/libgcc_s-3.3.3-20040413.so.1
/lib/libgcc_s.so.1
/usr/sbin/libgcc_post_upgrade
/usr/lib/gcc-lib
/usr/lib/gcc-lib
/home/imagemagick/libpng-1.0.6/pnggccrd.c
/home/imagemagick/libpng-1.0.6/scripts/makefile.gcc
/home/imagemagick/libpng-1.0.6/scripts/makefile.sgg
/home/imagemagick/tiff-v3.5.5/contrib/tags/Makefile
/root/sox-12.17.9/src/gsm/Makefile.gcc
/root/sox-12.17.9/src/Makefile.gcc

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
//sbin://bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin
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!
~confused
 
  


Reply



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 06:06 AM
No acceptable C compiler? fugufondue Linux - Newbie 6 03-22-2005 08:05 PM
no acceptable C compiler found OsirisX Linux - Software 1 02-10-2005 08:06 PM
Any good Fedora core 2 web server install guide? alime Fedora 2 07-09-2004 10:38 PM
acceptable C compiler? arlothemoo Linux - Software 2 10-26-2002 08:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:05 PM.

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