LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-29-2006, 12:13 AM   #1
tzpow2k2
LQ Newbie
 
Registered: Jun 2006
Posts: 23

Rep: Reputation: 15
How to install anything


Hi I am a super newbie at Linux. I am just confused on how to install software in Linux. I normally download my tar.gz and tar files in a folder named "MyDownloads". So to install I navigate to MyDownloads folder and unzip them gzip -d file.tar.gz tar -xvf file.tar.. So this is where I get confused. Now that every software that I unzip is in "MyDownloads" and I dont want to install all software in that folder. I dont think this is the right place to put them. So where is the right place to unzip a tar file at? Unlike Windows everything you installed is under Program Files. Is there a folder like "Program Files that I can unzip all the software to?

thank you
 
Old 06-29-2006, 12:22 AM   #2
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
One of the great beauties of *nix is you can do most anything you want. It is very convenient in many ways to compile in your home directory (or MyDownloads or whatever). Since you have read and write permissions there. The step make install will put the necessary files where they need to go.

That being said, the "correct" place to compile software is usually /usr/local. That is fine, although usually to write to /usr/local you need to be root.

Also, you're making much work for yourself both unzipping and then extracting files from the tar. Check out the man page for tar. Adding -z unzips gzipped files, and -j unzips bzip2 files. So the way I would compile on your system would be comething like newapp.tar.gz would be:

Code:
cd /usr/local
su
tar -zxvf /home/me/MyDownloads/newapp.tar.gz
cd newapp
./configure
make
make install
Peace,
JimBass
 
Old 06-29-2006, 12:55 AM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
The MyDownloads is probably the best place to download and untar you tarballs.
Then you only need to su to root before the "make install" phase. This will copy the program, library files and manpages where they need to go, usually under /usr or /usr/local. After the "make install" phase, you can delete the directory that you compiled the source from, and keep just the tarball. If there are quite a few tarballs building up over time, you can back them up to cdrom in case you need to reinstall later.

I do the same thing, except, I call my directory "downloads" instead.
 
Old 06-29-2006, 05:49 AM   #4
x86processor
Member
 
Registered: Jun 2006
Location: Chennai, India
Distribution: Embdebian, Debian, Fedora Core, Redhat, Slackware, Ubuntu.
Posts: 112

Rep: Reputation: 15
Its better to use your distro package manager to install software.

But, if you want to compile and install from source code, you can put it in say, /home/foobar/installs directory. You can specify with --prefix option to ./configure as to where you want to install the binaries as well. But, all these are for developers and testers.
 
Old 06-29-2006, 05:57 AM   #5
mikieboy
Member
 
Registered: Apr 2004
Location: Warrington, Cheshire, UK
Distribution: Linux Mint 12 LXDE
Posts: 555

Rep: Reputation: 33
tzpow2K2, what distro are you using? As x86processor appears to be hinting, you may be making life harder for yourself by installing from source!
 
Old 06-29-2006, 07:56 PM   #6
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
There is one advantage to having the source. Some packages have a "make pdf" or "make ps" target to generate printable, or at least more readable versions of the documentation. I have downloaded source RPMs of select packages that I have already installed to be able to print out the documentation. The "Gawk: Effective Awk Programming" book is excellent. You may be able to get this from a gawk-doc package. The regular awk manual from the gawk package source is also very good.
 
Old 07-07-2006, 11:13 AM   #7
tzpow2k2
LQ Newbie
 
Registered: Jun 2006
Posts: 23

Original Poster
Rep: Reputation: 15
thank everyone for replying and looking. Now I know how to install new softwares. But I just downloaded Email-Send-2.11.tar.gz from Cpan.org and I have Perl installed already few months ago. I am sorry but I am confused again and please correct me if i am wrong. Email-Send-2.11.tar.gz is not an individual software. It is one of Perl's modules right? So I just downloaded that and extracted in usr/local however I can't get it to work and have this message Can't locate Email/Send.pm in @INC
So I assume that i must have extracted in the wrong place. What should I do and where should I extract in situation like this?

thanks
 
Old 07-07-2006, 11:16 AM   #8
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
You could try reading the installation instructions.
 
Old 07-07-2006, 12:38 PM   #9
tzpow2k2
LQ Newbie
 
Registered: Jun 2006
Posts: 23

Original Poster
Rep: Reputation: 15
useful info thanks alot
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
fc3 install doesnt install grub properly onto sata drive sabo Linux - Newbie 4 02-03-2007 04:04 PM
Make Install xmms-plugin install fail - deb sarge Khepri Linux - Software 2 02-18-2006 10:05 PM
make install does not install daemons (clamd snortd). Is this a feature of tarball? Emmanuel_uk Linux - Newbie 3 11-15-2005 01:29 AM
Error: Unable to boot /install/2.6/linux when starting Etch Install BuckRogers01 Debian 4 08-06-2005 06:40 PM
How do I re-install an operatingsystem? Corrupted install. Yast wont load. URGENT.thx CrewXp SUSE / openSUSE 5 05-09-2005 12:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration