Installing with GNU Autotools

This tutorial demonstrates how too install software using GNU Autotools. GNU Autotools is a useful way to install software under any distribution of Linux.

Instructions
For this tutorial we will assume that you are intending too install Alexei: Part IX. Note that this step will work for all Piga products and most other GNU/Linux software, just remember of coarse to change the file and directory names (e.g. Part-Nine-1.2.0.tar.gz, ~/Part-Nine-1.2, etc.) as appropreate for the specific program you are intending too install.

Assuming you already have all the proper dependencies installed, the first thing you must do is download a copy of the Autotools data (Part-Nine-1.2.0.tar.gz) from the Piga Wiki to your home directory.

Once this is completed, load up a terminal and type “tar -xf Part-Nine-1.2.0.tar.gz” to extract the necessary files. After that type “cd ~/Part-Nine-1.2” and use the “su” command to gain root privileges, if you have sudo configured you do not have to do an su but put "sudo" in front of all the commands, however, if you have the root password then it might be easier to su given the amount of commands you need to run as root. Once this is completed, you can type “./configure” to prepare your system. After that build the program with the “make” command, and then install it with “make install”.

Code:

All of the commands you type are bolded [hamish@localhost ~]$ tar -xf Part-Nine-1.2.0.tar.gz [hamish@localhost ~]$ cd ~/Part-Nine-1.2 [hamish@localhost Part-Nine-1.2]$ su Password: [root@localhost Part-Nine-1.2]# ./configure  checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for gambas2 binaries... Ok checking for gambas2 components path... Ok checking for gb.gtk component... Ok checking for gb.form component... Ok checking for gb.gtk.ext component... Ok checking for gb.sdl.sound component... Ok configure: creating ./config.status config.status: creating Makefile [root@localhost Part-Nine-1.2]# make  Compiling Part-Nine project... OK  [root@localhost Part-Nine-1.2]# make install  make[1]: Entering directory `/home/hamish/Part-Nine-1.2' Installing Part-Nine.gambas file in /usr/local/bin... make[1]: Nothing to be done for `install-data-am'. make[1]: Leaving directory `/home/hamish/Part-Nine-1.2' [root@localhost Part-Nine-1.2]# ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for gambas2 binaries... Ok checking for gambas2 components path... Ok checking for gb.gtk component... Ok checking for gb.form component... Ok checking for gb.gtk.ext component... Ok checking for gb.sdl.sound component... Ok configure: creating ./config.status config.status: creating Makefile [root@localhost Part-Nine-1.2]# make Compiling Part-Nine project... OK  [root@localhost Part-Nine-1.2]# make install make[1]: Entering directory `/home/hamish/Part-Nine-1.2' Installing Part-Nine.gambas file in /usr/local/bin... make[1]: Nothing to be done for `install-data-am'. make[1]: Leaving directory `/home/hamish/Part-Nine-1.2' [root@localhost Part-Nine-1.2]#

After following these steps, you can launch Alexei: Part IX from either the terminal or a launcher using the following command: Code: Part-Nine.gambas