New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Operating System General OS operation information and support

Moving /usr/local to ~/local


Post Reply New Thread Subscribe

 
Thread Tools
blueskai

 
Member Since: Jun 10, 2011
Posts: 3
blueskai is on a distinguished road

blueskai is offline
Hi everyone!

Is it safe to move the /usr/local directory to ~/local? By "safe" I mean "will not break OSX itself". If some software stops working and needs to be installed again that would be fine. Of course I would also change the PATH environment variable.

I want to have it in my home directory so when I get the new Mac I can just migrate the user (without having to choose "Migrate all other files") and keep my ruby/ffmpeg/... installations.

Any advice would be appreciated
QUOTE Thanks
Lifeisabeach

 
Lifeisabeach's Avatar
 
Member Since: Sep 30, 2007
Location: Wilmington, NC
Posts: 7,041
Lifeisabeach has a reputation beyond reputeLifeisabeach has a reputation beyond reputeLifeisabeach has a reputation beyond reputeLifeisabeach has a reputation beyond reputeLifeisabeach has a reputation beyond reputeLifeisabeach has a reputation beyond reputeLifeisabeach has a reputation beyond reputeLifeisabeach has a reputation beyond reputeLifeisabeach has a reputation beyond reputeLifeisabeach has a reputation beyond reputeLifeisabeach has a reputation beyond repute
Mac Specs: iMac i3 (mid-2010) + OS 10.9; TV 3; iPhone 5S; iPad 4

Lifeisabeach is offline
That's nuts. Why would you move it to a new location? Why not just copy it to the same location on the new computer? Connect the two by firewire with the old booted in Target Disk Mode and copy away. Or make a zip file of that folder and contents, store it in your user's Downloads folder, then extract back to the same path on the new computer.


Please verify and include the exact model/year of your Mac and OS X version number (available from "About This Mac", then "More Info" on the Apple menu).
------
Links: Onyx | EasyFind | Apple Hardware Test | How to test your hard drive | The Safe Mac Adware Removal Guide | Uninstall MacKeeper
------
Lifeisabeach - Mac-Forums Member of the Month June 2009, Feb 2012, and March 2013.
QUOTE Thanks
IvanLasston

 
IvanLasston's Avatar
 
Member Since: Feb 26, 2010
Location: Rocky Mountain High, Colorado
Posts: 2,116
IvanLasston is a splendid one to beholdIvanLasston is a splendid one to beholdIvanLasston is a splendid one to beholdIvanLasston is a splendid one to beholdIvanLasston is a splendid one to beholdIvanLasston is a splendid one to beholdIvanLasston is a splendid one to beholdIvanLasston is a splendid one to behold
Mac Specs: 1.8 GHz i7 MBA 11" OSX 10.8.2

IvanLasston is offline
/usr/local is a standard unix location - you cannot just move it around. You will break something if you try and do this.

If it is just for ruby/ffmpeg - why not just install that on the New Mac? Much easier than messing with /usr/local - There are link libraries, headers, and what not that are linked in programs so if you move them - the programs won't be able to find those libraries and includes.

Final Advice - don't do it - you will break something.
QUOTE Thanks
blueskai

 
Member Since: Jun 10, 2011
Posts: 3
blueskai is on a distinguished road

blueskai is offline
Okay thank you, I'm glad I asked before trying.

It would have been nice though, because installing Ruby and Rails can be a pain, especially with MySQL for MAMP etc...but maybe copying over the /usr/local dir will keep it working.
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 18,352
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is offline
AFAIK, Rails is installed by default (and so is Ruby of course). Why not simply use that version and update it as needed using RubyGems? That would be much easier.

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Writing a Quality Post
QUOTE Thanks

Post Reply New Thread Subscribe


« Hard Drive Permissions | New Macbbook Pro running slow »
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

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Moving mp3's to your Audiobooks folder bobtomay iPod Hardware and Accessories 10 10-10-2009 01:02 PM
/usr/local vs. /Library for installs? 7stud OS X - Operating System 4 08-18-2009 09:44 AM
Moving play lists ned911 iPod Hardware and Accessories 0 12-21-2007 11:28 AM
Moving files in finder vs. copying Turtlehead OS X - Apps and Games 2 02-21-2006 01:13 PM
Pixar Moving to Mac OS X schweb Apple Rumors and Reports 1 08-01-2003 12:35 AM

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

Powered by vBulletin
Copyright ©2000 - 2014, 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?