LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   Compiling and Building where? (http://www.linuxquestions.org/questions/linux-general-1/compiling-and-building-where-336645/)

matthewa 06-23-2005 11:48 PM

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?

macemoneta 06-23-2005 11:51 PM

You should build as a user, so a /home account. You only need root for installation.

matthewa 06-24-2005 01:14 AM

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?

n0xvb 06-24-2005 01:21 AM

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

macemoneta 06-24-2005 09:56 AM

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.

matthewa 06-24-2005 11:37 AM

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?

macemoneta 06-24-2005 11:50 AM

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.

matthewa 06-24-2005 12:06 PM

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


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