Home arrow Site Administration arrow Page 9 - Linux Administration: Installing Software

Compiling and Installing a GNU Program - Administration

Three basic software installations are covered here -- using the Red Hat Package Manager, compiling software using the standard GNU compilation method, and compiling and installing the software by hand. (From the book Linux Administration, A Beginner's Guide, third edition by Steven Graham and Steve Shah, McGraw-Hill/Osborne, 0072225629, 2002).

TABLE OF CONTENTS:
  1. Linux Administration: Installing Software
  2. Installing a New Package
  3. Uninstalling a Package
  4. Compile and Install GNU Software
  5. Looking for Documentation
  6. Installing the Package and Testing the Software
  7. Common Software Problems
  8. Cleanup and When There is No Configure Script
  9. Compiling and Installing a GNU Program
  10. Project Summary
By: McGraw-Hill/Osborne
Rating: starstarstarstarstar / 32
November 02, 2004

print this article
SEARCH DEV SHED

TOOLS YOU CAN USE

advertisement

In this project, you will download a GNU software package, compile, and install it. I am a big emacs fan, so I am going to show how to download and compile it in this project. emacs most likely already comes standard on a Linux system, as it is a fairly popular editor. As an administrator, you will be exposed to many editors, such as vi, pico, and emacs. You are always guaranteed to have vi on the system. You donít have to install emacs, just pick a package that sounds interesting (stay away from gcc, though)

Step by Step

1. Change your directory to a scratch space that will allow you to compile (typically /usr/local/src).

[root@ford /root ]# cd /usr/local/src

2. Go to the GNU FTP site and download emacs. The latest version as of this writing is emacs-21.2. The software is located at ftp://ftp.gnu.org/gnu/emacs/.

3. Untar the package.

[root@ford /usr/local/src ]# tar -xvzf emacs-21.2.tar.gz

4. cd into the package directory and read the documentation, notably README and INSTALL.

[root@ford /usr/local/src ]# cd emacs-21.2
[root@ford emacs-21.2]# more README
[root@ford emacs-21.2]# more INSTALL

5. Run the configure script with the standard options: --prefix=/usr/local.

[root@ford emacs-21.2]# ./configure --prefix=/usr/local

6. Run make.

[root@ford emacs-21.2]# make

7. If the make completed without any errors, type make install.

[root@ford emacs-21.2]# make install

8. Make sure that you can run the software as both root and a regular user.

[root@ford emacs-21.2]# cd /usr/local/bin
[root@ford bin]# ./emacs
[root@ford bin]# su - sgraham
[sgraham@ford ]-> /usr/local/bin/emacs
[sgraham@ford ]-> exit
[root@ford bin]#

9. Do any cleanup and have a fun time using the software.

[root@ford bin]# cd /usr/local/src/emacs-21.2
[root@ford bin]# make clean

This chapter is from Linux Administration, A Beginner's Guide, third edition, by Graham and Shah. (McGraw-Hill/Osborne, 2002, ISBN: 0072225629). Check it out at your favorite bookstore today.

Buy this book now.



 
 
>>> More Site Administration Articles          >>> More By McGraw-Hill/Osborne
 

blog comments powered by Disqus
escort Bursa Bursa escort Antalya eskort
   

SITE ADMINISTRATION ARTICLES

- Coding: Not Just for Developers
- To Support or Not Support IE?
- Administration: Networking OSX and Win 7
- DotNetNuke Gets Social
- Integrating MailChimp with Joomla: Creating ...
- Integrating MailChimp with Joomla: List Mana...
- Integrating MailChimp with Joomla: Building ...
- Integrating MailChimp with Joomla
- More Top WordPress Plugins for Social Media
- Optimizing Security: SSH Public Key Authenti...
- Patches and Rejects in Software Configuratio...
- Configuring a CVS Server
- Managing Code and Teams for Cross-Platform S...
- Software Configuration Management
- Back Up a Joomla Site with Akeeba Backup

Developer Shed Affiliates

 


Dev Shed Tutorial Topics: