Monday 23 September 2013

Build-from-Source

Hello again,

For this week, I will be installing two GNU sources from the GNU software collection.

I decided to choose which, used to show the full path of (shell) commands.
I downloaded Version 2.20.
Once the download has finished, I issued the command tar xvzf which-2.20.tar.gz which extracted all the files and components into a directory called which-2.20.
I got into the which-2.20 directory and issued the command cat on the INSTALL file.
I briefly followed the instructions given in the INSTALL file which was:
  1. Issue the ./configure command to start gathering the necessary files into a package.
  2. Issue the make command to compile the package.
  3. Issue the make install command to start installing the program and data files.
 [root@localhost which-2.20]# make install
make  install-recursive
make[1]: Entering directory `/home/juan/Downloads/which-2.20'
Making install in tilde
make[2]: Entering directory `/home/juan/Downloads/which-2.20/tilde'
make[3]: Entering directory `/home/juan/Downloads/which-2.20/tilde'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/home/juan/Downloads/which-2.20/tilde'
make[2]: Leaving directory `/home/juan/Downloads/which-2.20/tilde'
Making install in .
make[2]: Entering directory `/home/juan/Downloads/which-2.20'
make[3]: Entering directory `/home/juan/Downloads/which-2.20'
test -z "/usr/local/bin" || /usr/bin/mkdir -p "/usr/local/bin"
  /usr/bin/install -c 'which' '/usr/local/bin/which'
test -z "/usr/local/share/info" || /usr/bin/mkdir -p "/usr/local/share/info"
 /usr/bin/install -c -m 644 './which.info' '/usr/local/share/info/which.info'
 install-info --info-dir='/usr/local/share/info' '/usr/local/share/info/which.info'
test -z "/usr/local/share/man/man1" || /usr/bin/mkdir -p "/usr/local/share/man/man1"
 /usr/bin/install -c -m 644 './which.1' '/usr/local/share/man/man1/which.1'
make[3]: Leaving directory `/home/juan/Downloads/which-2.20'
make[2]: Leaving directory `/home/juan/Downloads/which-2.20'
make[1]: Leaving directory `/home/juan/Downloads/which-2.20'


Once finished, I tested the command to see if it works and it does.
[root@localhost which-2.20]# which time
/usr/bin/time



The second GNU software I chose is nano, a GNU text editor with customizable key bindings and many extra features such as search and replace, go to line/column number, auto-indentation, etc.

I downloaded the tar file from this link http://www.nano-editor.org/dist/v2.2/nano-2.2.6.tar.gz
Once the download finished, I issued the command tar xvf nano-2.2.6.tar.gz to extract all the files and components into a directory called nano-2.2.6.

I got into the nano-2.2.6 directory and issued the command cat on the INSTALL file.

I briefly followed the instructions given in the INSTALL file which was:
  1. Issue the ./configure command to start gathering the necessary files into a package.
  2. Issue the make command to compile the package.
  3. Issue the make install command to start installing the program and data files.
 Once finished, I tested the command to see if it works and it does.

 [root@localhost nano-2.2.6]# nano

That is all.


No comments:

Post a Comment