LinuxQuestions.org
Review your favorite Linux distribution.
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 01-10-2007, 09:20 AM   #1
sbabcock23
Member
 
Registered: Aug 2006
Location: Mississauga, Ontario, Canada
Distribution: RHEL 5, CentOS 5
Posts: 64

Rep: Reputation: 15
Exclamation 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
 
Old 01-10-2007, 11:10 AM   #2
w3bd3vil
Senior Member
 
Registered: Jun 2006
Location: Hyderabad, India
Distribution: Fedora
Posts: 1,189

Rep: Reputation: 49
yum install php-5
would insall php5 with all the dependencies if you are connected to the internet.
 
Old 01-10-2007, 12:37 PM   #3
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
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.
 
Old 01-10-2007, 01:16 PM   #4
sbabcock23
Member
 
Registered: Aug 2006
Location: Mississauga, Ontario, Canada
Distribution: RHEL 5, CentOS 5
Posts: 64

Original Poster
Rep: Reputation: 15
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

Last edited by sbabcock23; 01-10-2007 at 01:28 PM.
 
Old 01-10-2007, 07:11 PM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,374

Rep: Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383
try
rpm -qa |grep -i yum
to see if you have yum installed
 
Old 01-11-2007, 09:34 AM   #6
sbabcock23
Member
 
Registered: Aug 2006
Location: Mississauga, Ontario, Canada
Distribution: RHEL 5, CentOS 5
Posts: 64

Original Poster
Rep: Reputation: 15
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

Last edited by sbabcock23; 01-11-2007 at 09:35 AM.
 
Old 01-11-2007, 10:23 AM   #7
wmakowski
Member
 
Registered: Oct 2003
Location: Ohio
Distribution: Fedora 23, 24, RHL 5.2
Posts: 560

Rep: Reputation: 56
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.
 
Old 01-11-2007, 11:08 AM   #8
sbabcock23
Member
 
Registered: Aug 2006
Location: Mississauga, Ontario, Canada
Distribution: RHEL 5, CentOS 5
Posts: 64

Original Poster
Rep: Reputation: 15
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.
 
Old 01-11-2007, 11:32 AM   #9
wmakowski
Member
 
Registered: Oct 2003
Location: Ohio
Distribution: Fedora 23, 24, RHL 5.2
Posts: 560

Rep: Reputation: 56
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

Last edited by wmakowski; 01-11-2007 at 11:33 AM.
 
Old 01-11-2007, 11:59 AM   #10
sbabcock23
Member
 
Registered: Aug 2006
Location: Mississauga, Ontario, Canada
Distribution: RHEL 5, CentOS 5
Posts: 64

Original Poster
Rep: Reputation: 15
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...

Last edited by sbabcock23; 01-11-2007 at 12:03 PM.
 
Old 01-11-2007, 12:42 PM   #11
wmakowski
Member
 
Registered: Oct 2003
Location: Ohio
Distribution: Fedora 23, 24, RHL 5.2
Posts: 560

Rep: Reputation: 56
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

Last edited by wmakowski; 01-11-2007 at 01:34 PM.
 
Old 01-11-2007, 01:38 PM   #12
wmakowski
Member
 
Registered: Oct 2003
Location: Ohio
Distribution: Fedora 23, 24, RHL 5.2
Posts: 560

Rep: Reputation: 56
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
 
  


Reply


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
installing mplayer,and c++ compiler. sudi16 Linux - Newbie 3 02-21-2005 11:22 PM
Installing a compiler in linux jkumars Linux - Software 6 12-22-2004 06:15 AM
C compiler not installing xstealthrtx Linux - Newbie 12 11-23-2004 10:12 AM
Installing C and C++ compiler in SuSE mikedeatworld Linux - Software 0 08-15-2004 11:28 AM
installing the c++ compiler jmg1894 Linux - Software 1 06-17-2004 03:59 PM

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

All times are GMT -5. The time now is 09:06 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration