Administration
  Home arrow Administration arrow Page 9 - Linux Administration: Installing Softw...
Dev Shed Forums 
Administration  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Forums Sitemap 
IBM® developerWorks 
Dedicated Servers 
E-Commerce Hosting 
Linux Web Hosting 
Managed Hosting 
Small Business Hosting 
Download TestComplete 
VPS Hosting 
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
ADMINISTRATION

Linux Administration: Installing Software
By: McGraw-Hill/Osborne
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 29
    2004-11-02

    Table of Contents:
  • Linux Administration: Installing Software
  • Installing a New Package
  • Uninstalling a Package
  • Compile and Install GNU Software
  • Looking for Documentation
  • Installing the Package and Testing the Software
  • Common Software Problems
  • Cleanup and When There is No Configure Script
  • Compiling and Installing a GNU Program
  • Project Summary

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
     
    ADVERTISEMENT

    Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here

    Linux Administration: Installing Software - Compiling and Installing a GNU Program
    (Page 9 of 10 )

    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 Administration Articles
    More By McGraw-Hill/Osborne


     

       

    ADMINISTRATION ARTICLES

    - Configuring Load-Balanced Clusters
    - Load-Balanced Clusters
    - UNIX Time Format Demystified
    - Making Changes in the CVS
    - Building Your First CVS Repository
    - CVS Quickstart Guide
    - Authorizing Users in Samba
    - Handling User Accounts in Samba
    - Authentication in Samba
    - Accounts, Authentication, and Authorization
    - Advanced Concepts on Dealing with Files and ...
    - Dealing with Files and Filesystems
    - More Hacks for the User Environment in BSD
    - Personalizing the User Environment in BSD
    - Customizing the User Environment in BSD

     
    Accelerating Trading Partner Performance
     
    Competing on Analytics
     
    Cost Effective Scaling with Virtualization and Coyote Point Systems
     
    Five Checkpoints to Implementing IP Telephony
     
    Hosted Email Security: Staying Ahead of New Threats
     




    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway