Making installs through the source

Reply

Join Date: Jan 2004
Posts: 150
Reputation: WEATHER CHANNEL will become famous soon enough WEATHER CHANNEL will become famous soon enough 
Solved Threads: 1
WEATHER CHANNEL's Avatar
WEATHER CHANNEL WEATHER CHANNEL is offline Offline
Banned

Sticky:

 
0
  #1
Jan 31st, 2004
STICKY: NAME IT WHAT YOU LIKE

Making installs through the source Is not difficult.
I am aware that 99% of people who use linux and visit daniweb are probably more than capable of doing this. And I have noticed a select few on IRC ( the rare times I do get on IRC using encrypted shell accounts) who were unable.

The method shown below should cover generic installs for all eventualitues (except RPM packages).
For the example, I shall use "nmap-3.50.tar.gz" because everyone needs nmap.


1. Find the file type, and decompress
  • This is more useful than it sounds. For example, you download a .tar.gz file in Mozilla, and Mozilla decompresses it on-the-fly, but saves it with the .gz extension still there - it is now only a tar file, but the file extension suggests you need to run gunzip, or the tar -z option... Running this will tell you more about the file you're trying to install:
    file nmap-3.50.tar.gz

    The output will tell you that the file is either "gzip compressed file" or "tar archive".
    If the file is "gzip compressed", run the following:

    gunzip nmap-3.50.tar.gz

    This will leave you with a file called nmap-3.50.tar
    You can now untar the file,
    tar -xvf nmap-3.50.tar

    If the file has a .bz2 extension, or shows "bzip compressed file" as the output of the file command, you should run:
    bunzip2 file.tar.bz2
    tar xvf file.tar


    2. Configure
  • Now execute the following:
    cd ./nmap-3.50
    (of course, use the directory created from the extraction of the files from the tar archive)
    ./configure
    (configure scripts can often take paramaters, although usually don't need to unless you are installing software in conjunction with other software (e.g. Apache and PHP) or if your system has required libraries in a different place to usual, you can tell configure where to find them.
    type ./configure --help
    to list the options you can pass to the script.


    3. Compiling & Installing
  • If configure ran successfully, i.e. did not exit with an error message, you can now run the following:
    make install
    (the && after make prevents 'make install' running unless make successfully completed).


    4. Optional Steps
  • You can now optionally type:
    make clean
    to clear up a few files and perhaps save a bit of disk space, granted this isn't usually a problem for most people living in modern times with computers having excessively large hard drives.Hey, you never know!
I wrote this paper a week ago and earned myself yet another A in class, looks like Im headed for another 4.0 this semester. Hopefully I obtain all my certs.
CISSP CISM CISA. Because security is my forte. Enjoy!
Reply With Quote Quick reply to this message  
Join Date: Aug 2003
Posts: 372
Reputation: TheOgre is a jewel in the rough TheOgre is a jewel in the rough TheOgre is a jewel in the rough 
Solved Threads: 6
TheOgre's Avatar
TheOgre TheOgre is offline Offline
Posting Whiz

Re: Making installs through the source

 
0
  #2
Feb 6th, 2004
...an encrypted shell account? I've never seen or heard of one of those, and I've been on IRC for a VERY long time. Could you explain to me what that is? I know what a bouncer is (like bnc), but I've never heard of an encrypted shell account. Or do you mean using SSH to connect to a UNIX shell account?

Nice job on the tutorial, btw :)
If you spend more on coffee than on IT security, you will be hacked.
What's more, you deserve to be hacked.
-- former White House cybersecurity czar Richard Clarke
Reply With Quote Quick reply to this message  
Join Date: Jan 2004
Posts: 150
Reputation: WEATHER CHANNEL will become famous soon enough WEATHER CHANNEL will become famous soon enough 
Solved Threads: 1
WEATHER CHANNEL's Avatar
WEATHER CHANNEL WEATHER CHANNEL is offline Offline
Banned

Re: Making installs through the source

 
0
  #3
Feb 6th, 2004
Lol, I guess is not that common. Yeah, we have been doing it for years.(1997) c slashdot.org http://slashdot.org/articles/02/01/26/2119252.shtml
Hint to people do not use IRC with a root or admin user......pls do yourself a favor. Tell them Ogre.

Originally Posted by The Ogre
Nice job on the tutorial, btw
Thanks, it's not a tut though just a sticky that has not been stuck. I guess the mods don't pay much attention in here or they don't know what the sticky is about.
Last edited by WEATHER CHANNEL; Feb 6th, 2004 at 6:27 pm.
Reply With Quote Quick reply to this message  
Join Date: Jan 2004
Posts: 150
Reputation: WEATHER CHANNEL will become famous soon enough WEATHER CHANNEL will become famous soon enough 
Solved Threads: 1
WEATHER CHANNEL's Avatar
WEATHER CHANNEL WEATHER CHANNEL is offline Offline
Banned

Re: Making installs through the source

 
0
  #4
Feb 11th, 2004
PS: Ogre, not to mention chatting on a 128 bit encrypt. *wink*wink*
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC