Linux : Installing GCC from RHEL disk

~]# mount -t auto /dev/dvd /mnt/dvdrom/
~]# cd /mnt/dvdrom/Server/
Server]# rpm -ivh gcc-4.1.2-46.el5.i386.rpm

Dependencies

Server]# rpm -ivh glib-1.2.10-20.el5.i386.rpm
Server]# rpm -ivh libgomp-4.4.0-6.el5.i386.rpm
Server]# rpm -ivh glib-devel-1.2.10-20.el5.i386.rpm
Server]# rpm -ivh kernel-headers-2.6.18-164.el5.i386.rpm
Server]# rpm -ivh glibc-headers-2.5-42.i386.rpm 
Server]# rpm -ivh glibc-devel-2.5-42.i386.rpm 
Server]# rpm -ivh gcc-4.1.2-46.el5.i386.rpm

Unmount

~]# umount /mnt/dvdrom

Check gcc

~]# which gcc

rpm

-i – install
-v – verbose
-h – show hash
-U – update

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: