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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
12-07-2009, 10:32 AM
|
#1
|
LQ Newbie
Registered: Dec 2009
Posts: 4
Rep:
|
Installing development environment in RHEL5?
I was given a test machine at work, with RHEL5 already installed; I didn't get the install media with it. I discovered a needed package was missing, but only the source RPM is available from Red Hat (again, would need the media for the binaries).
Once I tried to install from the source, I discovered that the -b option isn't available to me in the rpm command. Nor was --build in yum. I then tried a simple "gcc" from the command line: command not found.
I've concluded the OS was installed without any development options; is that a fair bet? If so, is there a way I can get those options and install them without the install media? Getting those would involve them being shipped to me halfway across the country and there isn't much time available on this task.
Am I in a catch 22?
Many thanks in advance.
|
|
|
12-07-2009, 10:57 AM
|
#2
|
LQ Guru
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Rep:
|
Hi -
Well, clearly you need to either have an Internet connection, or get access to *some* kind of media. Surely you can smuggle a CD into your computer room
But given that, all you need to do is:
Quote:
a) Update your repository:
/etc/yum.repos.d
b) Get the development .rpms:
yum install gcc gcc-c++ autoconf automake libtool
|
'Hope that helps .. PSM
|
|
1 members found this post helpful.
|
12-07-2009, 11:27 AM
|
#3
|
LQ Newbie
Registered: Dec 2009
Posts: 4
Original Poster
Rep:
|
Thanks for responding. You might be a wee ahead of me, still.
/etc/yum.repos.d is a directory, how am I supposed to update it?
I have the machine on the net, but don't know where I'd get the binaries I need (they'd have to be binaries to start, since I can't compile yet).
Once I do get things like gcc installed, does one of these steps replace rpm and yum with versions that understand the build arguments? The current ones--for example, "rpm -b" say that is an invalid attribute so I'm assuming the build environment replaces them with different versions? The instructions I have for installing the source RPMs all involve using those arguments with rpm and yum.
Many thanks!
|
|
|
12-07-2009, 12:04 PM
|
#4
|
Senior Member
Registered: Jan 2006
Posts: 4,363
Rep:
|
Contact RH, this type of thing is exactly what your subscription pays for. Yes, they do make the binaries available(online) to those with a subscription.
Normally, you do a 'yum install whatever'(as root) and yum takes care of the rest for you.
|
|
1 members found this post helpful.
|
12-07-2009, 12:19 PM
|
#5
|
LQ Newbie
Registered: Dec 2009
Posts: 4
Original Poster
Rep:
|
Okay, I'll have to contact my home office for that, they shipped this to me pre-installed without any supporting documents, certificates, serial numbers, or whatever it is I'd need to get RH on board.
I've tried "yum install" on several things, this is an example of what I get:
[root@linux1 ~]# yum install gcc
Loaded plugins: rhnplugin, security
Setting up Install Process
Parsing package install arguments
No package gcc available.
Nothing to do
Thanks again.
|
|
|
12-07-2009, 12:38 PM
|
#6
|
Senior Member
Registered: Jan 2006
Posts: 4,363
Rep:
|
Yep, that message means the machine is not registered with RH. You either need to register the machine ($) or switch to Centos. Centos is RHEL with the logos stripped out. Unlike RHEL it is free to download/update and is binary compatible with RHEL. Any book/howto for RHEL is 99.9% applicable to Centos (mostly the addresses of the base repos being the difference, 3rd party repos work for both).
|
|
1 members found this post helpful.
|
12-07-2009, 01:43 PM
|
#7
|
LQ Newbie
Registered: Dec 2009
Posts: 4
Original Poster
Rep:
|
This was supposed to be a fully-licensed rig they sent me, and I don't have the option of departing from RHEL5. I've pinged my head office asking them to get it registered. If it were up to me I'd be doing this in Fedora Core, personally, because it's an SELinux project and that's the distribution NSA seems to favor based on all the literature.
Really appreciate you taking time to help out; thanks again.
|
|
|
12-07-2009, 02:58 PM
|
#8
|
Senior Member
Registered: Jan 2006
Posts: 4,363
Rep:
|
The problem with Fedora is that any one version is only supported for 13months, after that they officially advise a clean install(no updates of any kind after that either). On a desktop that is ok but for a server/production machine(or machines) that is just too much of a PITA to go through every 13months. The other thing to realize is that Fedora is essentially the development branch of RH. RHEL4 was based on FC3, RHEL5 on FC6. RHEL6 should have been based on Fedora 9, but Fedora ran off the tracks and has not been stable(enough) to base a new RHEL on. I thought when F11 was released it was the thing, but no. F12 is now out, so maybe it will be stable enough. The good news is that since RHEL6 is now over a year behind schedule, support for RHEL5 should be pushed beyond 2014, hopefully.
|
|
|
12-07-2009, 07:15 PM
|
#10
|
Senior Member
Registered: Jan 2006
Posts: 4,363
Rep:
|
I should have clarified. RH has several subscription levels. Some include the development stuff and some do not. If you have a lower level subscription(development stuff not included) it will spit out the response your see. In the repo you are cleared for GCC does not exist, so there is nothing to do.
|
|
|
All times are GMT -5. The time now is 05:05 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|