Speech:Spring 2016 GCC Install Documentation

GCC Install Documentation

Author: Nigel Swanson

This is the documentation for the installation of gcc on majestix on 3/31/16.

If there is an error that redhat is not registered then you need to register redhat by getting a key from UNHM IT and then by using the following command. rhnreg_ks --activationkey=ACTIVATION_KEY

Make sure to be logged in as root and make sure to ssh to majestix.

Before installing gcc I recorded directories so they could be compared after the installation of gcc. Jonas gave us a list of 18 directories that he wanted us to record but 3 of those directories do not exist on majestix (the ones that don’t exist are usr/lib64 directory and there are two less directories than were mentioned in the /usr/share/lib* directory) so only 15 directories need to be recorded, they are listed below. /bin /lib /usr/bin /usr/sbin /usr/lib /usr/share/libgnomekbd /usr/share/libgweather /usr/share/libhangul /usr/share/librarian /usr/share/libthai /usr/share/libtool /usr/share/libwacom /var/lib /var/local /sys

I first created the snapshot directory at root: mkdir snapshot

Before and after the installation I recorded the list of files within the above directories. For this step I created the before directory, by using: cd snapshot mkdir orig

I then did an 'ls –al’ on all 15 directories and piped each to a file in the snapshot directory (This is run from the main directory '/'). So for example backing up /usr/bin the command would be: ls –al /usr/bin > snapshot/orig/usr-bin.txt

Once that was done I then installed gcc. This is the command that I used to install it. sudo yum install gcc

After the installation of the software I created a new snapshot directory: cd snapshot mkdir after-gcc

Then I ran the 'ls -al' command for all directories again. Note that this is now being piped to the after-gcc directory so we can compare it to the orig directory. ls –al /usr/bin > snapshot/after-gcc/usr-bin.txt

Now diff can be run to compare each file. diff snapshot/orig/usr-bin.txt snapshot/after-gcc/usr-bin.txt

The results that I got after installing gcc is that only four of the directories changed. I took screenshots of each diff result that was different.

lib



usr-bin



usr-lib



var-lib