Results 1 to 5 of 5
  1. #1

    Member Since
    Jun 10, 2011
    Moving /usr/local to ~/local
    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

  2. #2

    Lifeisabeach's Avatar
    Member Since
    Sep 30, 2007
    The Republic of Neptune
    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.

  3. #3

    IvanLasston's Avatar
    Member Since
    Feb 26, 2010
    Rocky Mountain High, Colorado
    1.8 GHz i7 MBA 11" OSX 10.8.2
    /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.

  4. #4

    Member Since
    Jun 10, 2011
    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.

  5. #5

    vansmith's Avatar
    Member Since
    Oct 19, 2008
    Early 2015 13" rMBP
    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Think I broke /usr/local
    By LWA in forum macOS - Operating System
    Replies: 1
    Last Post: 03-29-2012, 11:24 PM
  2. Where is usr/local located?
    By MohammedDoghman in forum macOS - Apps and Games
    Replies: 3
    Last Post: 11-11-2010, 10:43 PM
  3. usr/local NOT exists!!!!
    By amlet in forum macOS - Operating System
    Replies: 5
    Last Post: 10-25-2010, 01:12 PM
  4. No /usr/local/lib at all
    By XMARLTONX in forum macOS - Operating System
    Replies: 7
    Last Post: 06-01-2010, 07:25 PM
  5. /usr/local
    By oxygren in forum macOS - Operating System
    Replies: 4
    Last Post: 07-13-2009, 07:55 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts