LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-06-2004, 01:34 AM   #1
apocolpse
Member
 
Registered: Oct 2004
Distribution: Fedora Core 4
Posts: 91

Rep: Reputation: 15
Question Software Installation


I'm a extremely new to Linux ... one weeks on Suse 9.1 actually. I've a fairly easy time adapting so far, however I a bit stumped on the "right" way to install software. I'm an intermediate java programmer and use alot of meida apps. I'm used to setting env paths on my winXp box and installing programs for one, some or all users on the machine. I'm not so sure how I can do this in linux. What directory(s) do I install programs in if I want exclusive and/or universal user privileges to programs ? I currenly use apt to get and install most of my packages now, and I have no idea how to compile them on my own...... yet.
 
Old 10-06-2004, 01:48 AM   #2
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 63
This question is a bit broad, but here are a few things to know:

- / and /usr are for apt-/rpm-managed packages.
- /opt is for non-packaged software, *if* this software is self-contained in one directory, such as Java, Netscape Communicator...
- /usr/local is for non-packaged software, that follows the Unix standard: binaries in bin/, libraries in lib/, and so on.

Most source tarballs (tar.gz, tar.bz2) you'll compile will end up in /usr/local. Most of the time, you'll just have to do that:
./configure --help (read available options)
./configure (+ maybe options you want to use)
make (build the software)
make install (install it)
Only this last step needs to be done as root.

Whatever the method for building/installing the software, you're bound to have required/optional dependences. You'll be told about those by error messages while compiling, or errors/warnings during the configure-step. So look closely at warnings and errors.
Install needed dependencies with rpm/apt, or by building them yourself.

Setting environment variables for everyone is done in /etc/profile; same for a group of people, except you'll have to test for the group (gid) yourself.
Setting environment variables for one person is done in this person's .profile file in their home-directory.

User-/group-permissions in Linux (and Unix in general) is done for each file, and does not depend on the location of those files.
read:
man chmod
man chgrp
man chown

I hope this helps.

Yves.
 
Old 10-06-2004, 03:24 AM   #3
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Google up a copy of 'Newbie's Linux Manual' for the very-new-to Linux.
 
Old 10-06-2004, 04:30 PM   #4
apocolpse
Member
 
Registered: Oct 2004
Distribution: Fedora Core 4
Posts: 91

Original Poster
Rep: Reputation: 15
Thanks
 
  


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
Installation Software for Custom Developed Java/Perl Software donkey123 Linux - Software 0 06-15-2005 05:26 PM
Software Installation aethiolas Linux - Newbie 2 02-01-2005 02:06 PM
Software Installation magus1ghz Linux - Software 4 02-05-2004 06:53 PM
Software Installation Help!! Sabeer Linux - Software 3 10-07-2003 09:47 AM
Software Installation Tcj Linux - Newbie 3 01-14-2002 01:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:25 PM.

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