LinuxQuestions.org
Help answer threads with 0 replies.
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 06-13-2006, 06:04 AM   #1
dh2k
Member
 
Registered: Jan 2006
Distribution: Slackware 13.0 (KDE 3.5.10 from 12.2; Xfce 4.6; Fluxbox); Slackware 13.1 (KDE 4.5)
Posts: 203

Rep: Reputation: 44
What directory should you install software?


When installing source applications is there any preferred directory to install in/to?

I briefly explain the problem I had;

i installed Opera Web Browser using:
./configure
make
make install

into directory /home/[useraccount]/myapps/

Then I deleted dir myapps/ and now I have fragments of opera in my system e.g. in the KDE start menu.
But obviously I cannot run Opera anymore.

Is there are directory where all software should be installed to as a general rule of thumb?

---
Mandriva2006FE on P3-1.0GHz/256MB/20GB/400MB Swap
 
Old 06-13-2006, 06:14 AM   #2
Okie
Member
 
Registered: Mar 2002
Location: Oklahoma
Posts: 964

Rep: Reputation: 34
i dont think opera is available as sourcecode, but when i do compile sourcecode that i know to work good i give it a --prefix=/usr but when testing something new that i am not totally sure about i let it go to /usr/local since /usr/local is usually empty i can easily remove it if i dont want it...

./configure --help for more info (generic)

./configure --help=short for info specific to the software you are compiling
 
Old 06-13-2006, 06:27 AM   #3
Last Attacker
Member
 
Registered: Jun 2004
Location: South Africa
Distribution: Ubuntu
Posts: 120

Rep: Reputation: 15
Also, if you have a program that doesn't install through an RPM, etc. but through it own installer like Netbeans or the Java JDK in Linux, a good place to install it is in the /opt directory.
What I do about source compilation is I place it in /tmp, compile it from there, install, etc. and then remove it.
I want to start moving them to /usr/local/src or something.
 
Old 06-13-2006, 06:37 AM   #4
prozac
Member
 
Registered: Oct 2005
Location: Australia
Distribution: slackware 12.1
Posts: 753

Rep: Reputation: 32
actually /usr/local/src is the general convention for user programs (source). any application will generally try to install their files in certain location so that they are easily available for desktop managers. for example, your app icons will most probably go in /usr/share/pixmaps your executables would go in /usr/local/bin and like wise. many programs let you control this by asking you where to install these files at installation (generally thru' scripts).also the ./configure --prefix option works for the purpose of letting you decide where to put the install.
 
  


Reply

Tags
compile, install, paths


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
How do I install software from local directory 10.1 beta8 1kyle Suse/Novell 7 03-27-2006 09:42 AM
How to install the software in a specified directory on a cd? anuode Solaris / OpenSolaris 1 09-17-2005 10:42 AM
software install directory shavak Linux - Newbie 10 02-03-2005 11:23 PM
give users permission to install software in their directory? ksgill Linux - Newbie 7 12-17-2003 12:16 PM


All times are GMT -5. The time now is 12:28 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration