Speech:Spring 2017 GCC Install Documentation

GCC Install Documentation

Author: Jeffrey Gancarz

This is the documentation for the installation of GCC on Obelix on 3/08/17.

Steps 1: Sign into Caesar as root login as: root root@caesar.unh.edu's password: Last login: Wed Mar 8 15:45:29 2017 from jeffrey.ra.unh.edu / __ \ \____/\__,_|\___||___/\__,_|_|                  Welcomes you!
 * / \/ __ _  ___  ___  __ _ _ __
 * |   / _` |/ _ \/ __|/ _` | '__|
 * \__/\ (_| | __/\__ \ (_| | |

[root@caesar ~]#

Step 2: ssh into Obelix ssh obelix

Step 3: unmount /mnt/main on Obelix from Caesar umount -a

Step 4: Check to see if /mnt/main/ has been unmounted by trying to list the directories in /mnt/main/ on Obelix. If no directories are shown, then you know you have successfully unmounted /mnt/main/ dir /mnt/main

Step 5: Now that you have unmounted /mnt/main/ you can go ahead and type the command to install GCC. The output of this will let the user know if the installation has been completed and what packages were updated or installed. yum install gcc-c++

At first we were getting an error here stating that Error: Nothing to do After doing some researched, we found out that it may be because the time that was set on the client could be wrong. We checked the date and found out that the date and time on Obelix was off by over 8 years. [root@obelix ~]$ date Mon Apr 13 15:32:16 EST 2009 [root@obelix ~]$ In order to fix this we reset the date on Obelix. Date -s “8 MAR 2017 15:44:00” After resetting the date and time on Obelix, we thought that we would give the installation another try and see if fixing the date and time was the problem. We then tried the command for installing GCC again yum install gcc-c++

We were right with the problem of the day and time of the client causing an error in our installation process. After updating the date and time, the installation process worked. The results from our installation were that 7 packages were installed on the client from the installation and that 3 packages were updated from the installation process.

=
===================================================================== Package             Arch      Version             Repository               Size

=
===================================================================== Installing: gcc-c++             i686      4.4.7-17.el6        rhel-6-server-rpms      4.3 M Installing for dependencies: cloog-ppl           i686      0.15.7-1.2.el6      rhel-6-server-rpms       93 k cpp                  i686      4.4.7-17.el6        rhel-6-server-rpms      3.4 M gcc                  i686      4.4.7-17.el6        rhel-6-server-rpms      8.2 M libstdc++-devel      i686      4.4.7-17.el6        rhel-6-server-rpms      1.6 M mpfr                 i686      2.4.1-6.el6         rhel-6-server-rpms      153 k ppl                  i686      0.10.2-11.el6       rhel-6-server-rpms      1.3 M Updating for dependencies: libgcc              i686      4.4.7-17.el6        rhel-6-server-rpms      115 k libgomp              i686      4.4.7-17.el6        rhel-6-server-rpms      136 k libstdc++            i686      4.4.7-17.el6        rhel-6-server-rpms      303 k

Transaction Summary

=
===================================================================== Install      7 Package(s) Upgrade      3 Package(s)

Now that GCC is installed, we needed to make a snapshot of the certain files, in order to see what may have changed with the installation. The directories needed 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

We created a snapshot directory in Obelix's root mkdir snapshot

Inside of this, we also made subcategories for gcc, and then pre- and post-installation, in order to keep the snapshots organized. mkdir gcc cd gcc mkdir pre-gcc mkdir post-gcc

With the directories made, we copied the snapshot files from the necessary directories to the folder. Each directory had to be copied, using the 'ls -al' command. FOr an example of this, in order to copy /usr/sbin, it would use this: ls -al /usr/sbin > snapshot/post-gcc/usr-sbin.txt