LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 06-23-2005, 11:48 PM   #1
matthewa
Member
 
Registered: Mar 2005
Distribution: Slackware 10.1
Posts: 123

Rep: Reputation: 15
Compiling and Building where?


When building new software..e.g.mplayer, openoffice, etc.......whats the best directory in the root tree to build it in?
 
Old 06-23-2005, 11:51 PM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 326Reputation: 326Reputation: 326Reputation: 326
You should build as a user, so a /home account. You only need root for installation.
 
Old 06-24-2005, 01:14 AM   #3
matthewa
Member
 
Registered: Mar 2005
Distribution: Slackware 10.1
Posts: 123

Original Poster
Rep: Reputation: 15
ok.what Im saying is this:

If your going to install software globaly into your filesystem........like if you want a piece of software installed for all users on the system to use.......maybe like jre........or an mplayer that each user can use.......what would be the best place in the filesystem tree to begin to build that application?

In other words......im not asking where the program should be installed on the system, because generally make install will put the proper files in the proper place........Im asking what directory within the filesystem tree is the proper place to put the tarball ........and unzip it.......and build it.

In other words.........im not asking what bash mode to enter into to build the directory......like user or root.......instead whats the usual file within the filesystem tree to build software in? Would it be /opt...since that file is set aside for "optional software"........or /usr..........or /usr/local?


Just wandering. I have a habit of building within the /opt directory. Just wandering where other linux gurus do this at?
 
Old 06-24-2005, 01:21 AM   #4
n0xvb
Member
 
Registered: Sep 2004
Location: 127.0.0.1
Distribution: Slackware 13; openSUSE 11.2
Posts: 255

Rep: Reputation: 32
Quote:
Originally posted by matthewa
ok.what Im saying is this:
If your going to install software globaly into your filesystem........like if you want a piece of software installed for all users on the system to use.......maybe like jre........or an mplayer that each user can use.......what would be the best place in the filesystem tree to begin to build that application?
I like to use /usr/local/share
 
Old 06-24-2005, 09:56 AM   #5
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 326Reputation: 326Reputation: 326Reputation: 326
The build tree should be kept private (/home), and not placed into the generally accessible areas unless you want your user population to have access to the source. The /usr, /opt hierarchies are generally for the binaries. /usr/local/src is generally where you would place globally accessessible source/builds.
 
Old 06-24-2005, 11:37 AM   #6
matthewa
Member
 
Registered: Mar 2005
Distribution: Slackware 10.1
Posts: 123

Original Poster
Rep: Reputation: 15
Interesting.......thank you for your posts. Im putting together a linux learning site and trying to gather the correct information for my tutorials. Instead of just teaching the way that I do, I really wanted to get as many opinions from other users as I could. There seems to be different opinions on this particular subject, so I gather that it depends on the Distro the person is using as much as the persons preference?
 
Old 06-24-2005, 11:50 AM   #7
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 326Reputation: 326Reputation: 326Reputation: 326
The only standards, if your distribution adheres to them, are in the Linux Standards Base. While some file locations are defined (and more will be), there are many areas that are outside the standard. Most of the larger distributions are now LSB compliant, which makes life easier for developers.
 
Old 06-24-2005, 12:06 PM   #8
matthewa
Member
 
Registered: Mar 2005
Distribution: Slackware 10.1
Posts: 123

Original Poster
Rep: Reputation: 15
mac...........thanks for the link! Thats going to be a big help in my research. I new I could get the right answers here!
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
building and compiling VCDImager-0.7.2 Kilahchris Linux - Software 0 05-17-2005 11:54 PM
Help with compiling/building RPM leisure Linux - Software 2 05-08-2005 11:18 PM
Building cross-compiling toolchain radhapriya Linux - Software 1 06-25-2004 12:01 AM
compiling / building the dvd+rw-tools-5.13.4.7.4.tar.gz wahwah Linux - Newbie 3 10-19-2003 05:40 PM
[Compiling - building - Installing] Please Help unk Linux - Newbie 2 08-04-2002 10:53 PM


All times are GMT -5. The time now is 04:32 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