Speech:Spring 2016 Tree Install Documentation

Tree Install Documentation

Author: Nigel Swanson

This is the documentation for the installation of tree on majestix on 4/25/16.

Downloaded tree 1.7.0 from source: http://mama.indstate.edu/users/ice/tree/

Verified that tree 1.7.0 is i686 from here: https://www.archlinux.org/packages/extra/i686/tree/

Uploaded the tree tar file to Caesar /tmp folder with winscp.

Note: this whole process I was logged in as root on Caesar and as root on Majestix.

Ran this command to copy it over to majestix /root directory tar zcf – tree-1.7.0.tgz | ssh root@majestix ‘tar zxf –‘

I then removed the tar file from the /tmp directory on Caesar.

I then recorded the following 15 directories in the /snapshot/before-tree/ directory /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 then ran into a few errors when installing tree. The first command I ran I was trying to install it in the /usr/bin dirctory. The command I ran in /root was: tar Jxf tree-1.7.0.tgz –C /usr/bin/tree-1.7.0

The error I got was: xz (stdin): File format not recognized Tar: Child returned status 1 Tar: Error is not recoverable: exiting now

I then thought that Majestix might not of had the required glibc dependency, but by running the 'ldd --version' command I found that version 2.12 was installed, so this was not causing the issue.

I found out that I was using the wrong options for the tar command. The command that I ended up using (since it was a .tgz file) was: tar zxvf tree-1.7.0.tgz –C /usr/bin/tree-1.7.0

I still got an error: cannot chdir

So I assumed that I needed to create the tree-1.7.0 directory myself. I created the directory in /root/usr/bin/tree-1.7.0

I then ran the same command and it did not work. I then tried to install in usr/local. The command I used is: tar zxvf tree-1.7.0.tgz –C /usr/local/tree-1.7.0

Once again it did not work because the tree-1.7.0 directory did not exist. I then added the directory, and ran the command again, and it worked!

I then viewed the readme and install files to see what the install instructions were. Inside the /usr/local/tree-1.7.0/tree-1.7.0/ directory I used the two commands to install tree: make make install

Tree is now installed!

I then recorded the 15 directories after tree was installed. I then ran a diff on the before-tree and after-tree snapshots. These are the only differences in all 15 directories.

usr-bin



usr-lib



usr-sbin



Install_on_Caesar

5/4/16

tree was copied from /usr/bin/tree on majestix

tree was copied over to Caesar using the scp command.

tree was working on Caesar after copying that over to the desired directory.