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 |
yum install php-5
would insall php5 with all the dependencies if you are connected to the internet. |
Quote:
And I guess that it's the latter but I might be wrong. |
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 |
try
rpm -qa |grep -i yum to see if you have yum installed |
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 |
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. |
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.
|
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 |
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...
|
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 |
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. |