LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Installing c compiler RH (https://www.linuxquestions.org/questions/linux-newbie-8/installing-c-compiler-rh-518010/)

sbabcock23 01-10-2007 09:20 AM

Installing c compiler RH
 
Hi,

I am trying to compile php but I receive an error saying that error: no acceptable cc found in $PATH
and the same goes for gcc. I thought that there was a default compiler when I installed RedHat? If not, how do I install a compiler if I can't compile the source from gnu's gcc. Also, the other problem is that I do not have access to the cd's as I am across the country from my server. So my question is how do I install either cc or gcc and where can I download the files needed to do this.

Thanks,
Steve

w3bd3vil 01-10-2007 11:10 AM

yum install php-5
would insall php5 with all the dependencies if you are connected to the internet.

Wim Sturkenboom 01-10-2007 12:37 PM

Quote:

I thought that there was a default compiler when I installed RedHat?
You either haven't installed the compiler when you installed RH or you're running an old version RedHat (9 or older) and the C compiler that comes with it is not up-to-date enough.

And I guess that it's the latter but I might be wrong.

sbabcock23 01-10-2007 01:16 PM

Its a new version of RH, I just forgot to install the compiler. Is there a way I can install a compiler without the cds etc. I tried using yum but got a no module named yum error.

Thanks

chrism01 01-10-2007 07:11 PM

try
rpm -qa |grep -i yum
to see if you have yum installed

sbabcock23 01-11-2007 09:34 AM

Looks like I haven't installed yum correctly because 'rpm -qa |grep -i yum' doesn't return anything to the screen. Do I not just download the source and enter the command make, then make install?

Thanks

wmakowski 01-11-2007 10:23 AM

What version of Red Hat are you using? We can help you find the correct rpm or instructions to install yum, but need to know that.

Bill

ps - It's a good idea to add your distribution to your LQ profile. Go to my LQ to make the change.

sbabcock23 01-11-2007 11:08 AM

Hi I am running Red Hat Enterprise Linux AS release 4 (Nahant Update 3) hope that helps. Thanks for the pointer I will add it to my profile.

wmakowski 01-11-2007 11:32 AM

Have you tried using the Package Manager? Look under Servers -> Web Server and click on the optional packages button and you'll find PHP. You can also add the C compiler under development tools. It's so easy a caveman can do it. No offense, just always wanted to say that. :)

Bill

sbabcock23 01-11-2007 11:59 AM

I am at a remote location so I do not have access to the terminal itself except via ssh otherwise I would but I can't and I don't have the cds with the rpms to even copy them to the server, oh and I can't run up2date because we are waiting for a license for it. so back to yum...

wmakowski 01-11-2007 12:42 PM

Ahh, making it a little more difficult. Unfortunately pirut does not have a command line interface that I know of. I don't have RHEL 4 so I can't tell you what http address to get packages from. However, I've run RHL in the past and I do have a few suggestions. Do you have this server registered on the Red Hat Network? If so, you can login to https://rhn.redhat.com and perform your maintenance remotely. It's kind of neat how they set this up. There is a daemon that runs on the server that checks in with RHN periodically to see if there is anything to do. As an admin you can schedule tasks such as adding/removing packages or updating the system using the website. When the server checks in it will do everything you've scheduled. Only drawback is that it doesn't happen immediately. I believe the daemon name is rhnsd. I'm not sure if that is still the same or not.

The main problem is figuring out where the RHEL 4 repositories are so you can get yum. I don't have access to that.

Bill

wmakowski 01-11-2007 01:38 PM

Sorry about my last. Read the part about being at a remote location and having to use ssh and just started typing. Just thought of another option, but I'm not sure if you want to go this direction. RHEL4 was based on FC3. If you are under pressure to get this done then you could try using the PHP rpm from there.

Bill


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