Mac Forums

Mac Forums (
-   OS X - Development and Darwin (
-   -   /usr vs /Developer/usr (

mbohn 01-08-2010 06:54 PM

/usr vs /Developer/usr
What's the difference? I'd like to use the former for a cross-platform application that I develop on OSX and run on Linux. /usr is common to both, /Developer/usr is not. Any harm in using /usr on both?

vansmith 01-08-2010 07:08 PM

I'm not 100% sure on this answer but I'll try.

After looking in the /Developer/usr directory, it appears to be only apps/libraries that you might commonly find in /usr but are development related. In other words, /Developer/usr appears to contain only that which is pertinent to development. My advice then would be to stick to /usr. I've never actually seen /Developer on Linux installs as it appears to be specific not only to OS X but Xcode. Again, you might want to wait to get a more definite answer on exactly why Xcode has it's own usr directory.

mbohn 01-14-2010 08:42 PM

I've been working with /usr to see how that goes. It works fine but dealing with all the permissions issues can be quite a PITA. I'm going to try and work out a better solution for my situation.

dcow 02-14-2010 09:51 PM

Actually, you've answered the question right there. There is a /Developer/usr because its executables allow you a little more slack as far as what you're allowed to do with them (permissions being one of the major issues). Also, it allows you to test executables easier.

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

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