LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 12-08-2010, 02:09 PM   #1
shri_tech007
LQ Newbie
 
Registered: Dec 2010
Posts: 2

Rep: Reputation: 0
How to Instal GCC without prior gcc versions.


Hi all,

I have a system which is hardened so that there is no yum/rpm command installed and I need to install gcc in it. I donít have any prior version of GCC present in the system. Please help.

I am running with cenos release 5.3

Thanks
Shrikanth
 
Old 12-08-2010, 03:08 PM   #2
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 171Reputation: 171
1st. Whenever Centos releases a minor release (going from say 5.4 to 5.5) it drops support for the older minor realease. Currently only 5.5(of the 5.X line) is supported. Normally the jump is made via a yum update.


Are you sure that yum and RPM are not on the system? While an argument for removing yum could(iffy) be made, removing rpm pretty much breaks the system. It is common practice to prevent all non-root users from having acces to yum or rpm.
 
Old 12-08-2010, 11:40 PM   #3
Valery Reznic
ELF Statifier author
 
Registered: Oct 2007
Posts: 666

Rep: Reputation: 133Reputation: 133
Quote:
Originally Posted by shri_tech007 View Post
Hi all,

I have a system which is hardened so that there is no yum/rpm command installed and I need to install gcc in it. I donít have any prior version of GCC present in the system. Please help.

I am running with cenos release 5.3

Thanks
Shrikanth
Hardened system usually used for production, not for development. What reason do you have to installing gcc on such system?
 
Old 12-09-2010, 12:09 AM   #4
prodev05
Member
 
Registered: Jul 2009
Location: Earth
Distribution: Unix & Linux Variants
Posts: 304

Rep: Reputation: 20
First try to find the commands are installed or not. Try the below commands.

a.) rpm // This command will show rpm is installed are not. If failed try the next step.
b.) "whereis rpm" // This command will give you the absolute path for the rpm command.
c.) "whereis gcc" // This command will give you the absolute path for the gcc command.

By default rpm and gcc will be installed in a production system.

Thanks,
 
Old 12-09-2010, 02:15 PM   #5
shri_tech007
LQ Newbie
 
Registered: Dec 2010
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks for responce.

No the commands(rpm/yum/gcc) are not installed.

# whereis gcc
gcc:

# whereis yum
yum:

#whereis rpm
rpm: /usr/lib/rpm

ls -ld /usr/lib/rpm
drwxr-xr-x 14 root root 4096 Dec 3 13:36 /usr/lib/rpm

Is it possible to copy gcc binary and lib from other system is that works?



Please help.
Thanks
Shrikanth

Last edited by shri_tech007; 12-09-2010 at 02:19 PM.
 
  


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
[SOLVED] Trying to install gcc on KDE and it says I'm missing an instal.sh file Taylrl Linux - Software 9 07-23-2010 07:07 AM
gcc instal siaswar Linux - Software 4 10-13-2009 04:45 AM
Help - Need to instal gcc 2.95 on Fedora kitty07 Linux - Software 9 03-27-2009 10:17 AM
Using different GCC versions Denisius Linux - Software 7 01-12-2009 06:04 AM
gcc versions compatibility with kernel versions.. mahesh_manthapuri Suse/Novell 1 03-22-2006 12:28 AM


All times are GMT -5. The time now is 06:57 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration