OS X - Operating System General OS operation information and support

/usr/local vs. /Library for installs?


Post Reply New Thread Subscribe

 
Thread Tools
7stud

 
Member Since: Jul 18, 2007
Posts: 2
7stud is on a distinguished road

7stud is offline
Hi,

How do you know whether to install something in /usr/local or /Library? I installed Apache2 and php5, and they installed in /Library. I installed mysql and it went into /usr/local. Now, I want to install tomcat, and I've seen some instructions that say to install tomcat in /Library and others that say to install tomcat in /usr/local.
QUOTE Thanks
smurfy

 
Member Since: Apr 19, 2007
Posts: 780
smurfy can only hope to improve
Mac Specs: 20" iMac Core 2 Duo 2.16Ghz, 500GB HDD, 1GB RAM, 128MB ATI Radeon X1600

smurfy is offline
it doesn't matter.
QUOTE Thanks
djames42

 
Member Since: Oct 07, 2005
Location: Seattle
Posts: 346
djames42 has a spectacular aura about
Mac Specs: MBP CD 1.83/2ghz/7200 100g + Mini 2ghz C2D 2gb + Mini 1.42ghz G4 + PM 7200/120 + Newton OMP

djames42 is offline
Odd... I have php, mysql, fink and all sorts of other open-source tools I compiled, and they are almost all installed under /usr/local. A few are in /usr/bin, and then the fink-installed tools are generally in /sw. The only things that ever get installed in any of the /[A-Z] directories (such as /Library and /Applications) are the Aqua-based applications.
QUOTE Thanks
7stud

 
Member Since: Jul 18, 2007
Posts: 2
7stud is on a distinguished road

7stud is offline
I got some advice that said it is much easier to edit and move files around when you can see them in Finder like with php5 and apache2 installed in /Library. With mysql, you can't edit the files directly anyway, so you don't need to see any of the files related to mysql, and therefore /usr/local is fine for mysql.

I went ahead and installed tomcat in /Library because servlet apps have large directory structures, and I thought it would be helpful to see them in Finder.

Last edited by 7stud; 07-20-2007 at 08:34 PM.
QUOTE Thanks
fujimo

 
Member Since: Aug 18, 2009
Posts: 1
fujimo is on a distinguished road

fujimo is offline
Just for general knowledge...if you are ever programming on a Mac with a German keyboard layout, the pipe symbol "|" can be input with alt-7.

Now for the German speakers:

Falls ein von euch braucht das sogenannte "pipe" Symbol ...das kann man über alt-7 erreichen.

Happy programming,

fujimo
QUOTE Thanks

Post Reply New Thread Subscribe


« Play FLAC natively | Freezing Macbook »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

All times are GMT -4. The time now is 05:05 AM.

Powered by vBulletin
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?