Typically applications you must compile from source will come as a ".tar.gz", ".tar.bz2", or ".zip" file.
You'll probably want to operate from inside your home directory. If your user is (for example) username, your home directory will be /home/username/. For the rest of this section we will assume you have downloaded your zip file to /home/username/src. If you do not have a src directory, you can create it with the following "mkdir" (make directory) command:
Code:
mkdir /home/username/src/
Change to the /home/username/src/ directory with the "cd" (change directory) command like so:
Code:
cd /home/username/src/
Code:
ls
We now need to unzip the zipped file, this is done differently depending on the file extension.
for files ending in .tar.gz, use:
Code:
tar -zxvf
for files ending in .tar.bz2, use:
Code:
tar -jxvf
Code:
unzip
Code:
ls
Code:
cd
This is where things will differ. Some packages will have an INSTALL or README file which will contain installation instructions. use "ls" to see if the software has an install or readme file. If it does have one, you can use the "more" command to read it, like so:
Code:
more INSTALL
- Configure the installation
- Compile the software
- Install the binaries
The pre-installation configuration is done by executing ./configure:
Code:
./configure
The next stage is to compile the software, this is done using "make". When you run "make" it will read the instructions in the Makefile and build the application binaries.
Code:
make
The final stage is to install these binaries, ie, copy them to a more permanent location. Typically only the "root" user can do this, so you will need to swich to the root user with the "su" command:
Code:
su
Code:
make install
Remember that if you have any problems, please post in the most relevant section of the forums. - When posting, remember to include as much info as possible, including all output and error messages.
SOURCE
No comments:
Post a Comment