Skip to content

Instantly share code, notes, and snippets.

@myobie
Created February 18, 2012 20:14

Revisions

  1. myobie revised this gist Dec 11, 2012. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions mountain-lion-brew-setup.markdown
    Original file line number Diff line number Diff line change
    @@ -45,6 +45,10 @@ You may also need to symlink gcc for certain ruby gems and other stuff like that

    sudo ln -s /usr/bin/gcc /usr/bin/gcc-4.2

    Maybe even g++ if you use that:

    sudo ln -s /usr/bin/g++ /usr/bin/g++-4.2

    You are good to go.

    # Random links that may help
  2. myobie revised this gist Jul 31, 2012. 1 changed file with 6 additions and 2 deletions.
    8 changes: 6 additions & 2 deletions mountain-lion-brew-setup.markdown
    Original file line number Diff line number Diff line change
    @@ -36,11 +36,15 @@ Things that gave me issues that I had to remove and install:

    You might need to install libxml2 and link it manually to make sure you don't get the wrong xml2-config if your path:

    $ brew install libxml2
    $ brew link libxml2
    brew install libxml2
    brew link libxml2

    Run `brew doctor` and fix anything it tells you.

    You may also need to symlink gcc for certain ruby gems and other stuff like that:

    sudo ln -s /usr/bin/gcc /usr/bin/gcc-4.2

    You are good to go.

    # Random links that may help
  3. myobie revised this gist Jul 30, 2012. 1 changed file with 5 additions and 0 deletions.
    5 changes: 5 additions & 0 deletions mountain-lion-brew-setup.markdown
    Original file line number Diff line number Diff line change
    @@ -42,3 +42,8 @@ $ brew link libxml2
    Run `brew doctor` and fix anything it tells you.

    You are good to go.

    # Random links that may help

    * http://robots.thoughtbot.com/post/27985816073/the-hitchhikers-guide-to-riding-a-mountain-lion
    * http://coderwall.com/p/dtbuqg
  4. myobie revised this gist Jul 30, 2012. 1 changed file with 5 additions and 1 deletion.
    6 changes: 5 additions & 1 deletion mountain-lion-brew-setup.markdown
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@

    ### 1) Install XCode 4.4 into /Applications

    Get it from <http://developer.apple.com>. You will not be able to submit apps to any stores using this XCode version, so turn away if that is something you might want to do.
    Get it from the App Store.

    ### 2) Install Command Line Tools

    @@ -38,3 +38,7 @@ You might need to install libxml2 and link it manually to make sure you don't ge

    $ brew install libxml2
    $ brew link libxml2

    Run `brew doctor` and fix anything it tells you.

    You are good to go.
  5. myobie revised this gist Apr 20, 2012. 1 changed file with 6 additions and 1 deletion.
    7 changes: 6 additions & 1 deletion mountain-lion-brew-setup.markdown
    Original file line number Diff line number Diff line change
    @@ -32,4 +32,9 @@ Things that gave me issues that I had to remove and install:

    * macvim
    * imagemagick
    * ghostscript
    * ghostscript

    You might need to install libxml2 and link it manually to make sure you don't get the wrong xml2-config if your path:

    $ brew install libxml2
    $ brew link libxml2
  6. @DAddYE DAddYE revised this gist Mar 20, 2012. 1 changed file with 8 additions and 12 deletions.
    20 changes: 8 additions & 12 deletions mountain-lion-brew-setup.markdown
    Original file line number Diff line number Diff line change
    @@ -1,39 +1,35 @@
    # Get Mountain Lion and Homebrew to Be Happy

    ## 1) Install XCode 4.4 into /Applications
    ### 1) Install XCode 4.4 into /Applications

    Get it from <http://developer.apple.com>. You will not be able to submit apps to any stores using this XCode version, so turn away if that is something you might want to do.

    ## 2) Install Command Line Tools
    ### 2) Install Command Line Tools

    In XCode's Preferences > Downloads you can install command line tools.

    [insert screenshot]

    ## 3) Let Everyone Know Where XCode Is
    ### 3) Let Everyone Know Where XCode Is

    sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer

    ## 4) Install X11
    ### 4) Install X11

    Visit <http://xquartz.macosforge.org/trac/wiki> and download and install 2.7.2+.

    You will need to fix the symlink it makes:

    ln -s /opt/X11 /usr/X11

    ## 7) Reinstall your brews
    ### 5) Reinstall your brews

    brew list

    Will tell you what you need to check. Try out everything one by one and when one doesn't work `brew remove it` and then reinstall it. If the install doesn't work, try `brew install it --use-gcc` to prevent llvm from getting in the way.

    Things that gave me issues that I had to remove and install:

    - macvim
    - imagemagick
    - ghostscript

    - - -

    Let me know if I missed anything.
    * macvim
    * imagemagick
    * ghostscript
  7. @DAddYE DAddYE revised this gist Mar 20, 2012. 1 changed file with 3 additions and 18 deletions.
    21 changes: 3 additions & 18 deletions mountain-lion-brew-setup.markdown
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    # Get Mountain Lion and Homebrew to Be Happy

    ## 1) Install XCode 4.3 into /Applications
    ## 1) Install XCode 4.4 into /Applications

    Get it from <http://developer.apple.com>. You will not be able to submit apps to any stores using this XCode version, so turn away if that is something you might want to do.

    @@ -16,24 +16,11 @@ In XCode's Preferences > Downloads you can install command line tools.

    ## 4) Install X11

    Visit <http://xquartz.macosforge.org/trac/wiki> and download and install 2.7.0.
    Visit <http://xquartz.macosforge.org/trac/wiki> and download and install 2.7.2+.

    You will need to fix the symlink it makes:

    sudo mv /usr/X11 /usr/X11.old
    sudo mv /usr/X11R6 /usr/X11

    ## 5) Get GCC

    Visit <https://github.com/kennethreitz/osx-gcc-installer> and download and install GCC-10.7.pkg.

    Now, since most of this happened late last night, I am not 100% sure this is necessary after you've done the `xcode-select`, but I remember doing this. If you find it's not necessary, please let me know so I can remove it as a step.

    ## 6) Check Yo PATH

    My path:

    PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:~/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin"
    ln -s /opt/X11 /usr/X11

    ## 7) Reinstall your brews

    @@ -43,8 +30,6 @@ Will tell you what you need to check. Try out everything one by one and when one

    Things that gave me issues that I had to remove and install:

    - libxml2
    - libxslt
    - macvim
    - imagemagick
    - ghostscript
  8. myobie created this gist Feb 18, 2012.
    54 changes: 54 additions & 0 deletions mountain-lion-brew-setup.markdown
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,54 @@
    # Get Mountain Lion and Homebrew to Be Happy

    ## 1) Install XCode 4.3 into /Applications

    Get it from <http://developer.apple.com>. You will not be able to submit apps to any stores using this XCode version, so turn away if that is something you might want to do.

    ## 2) Install Command Line Tools

    In XCode's Preferences > Downloads you can install command line tools.

    [insert screenshot]

    ## 3) Let Everyone Know Where XCode Is

    sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer

    ## 4) Install X11

    Visit <http://xquartz.macosforge.org/trac/wiki> and download and install 2.7.0.

    You will need to fix the symlink it makes:

    sudo mv /usr/X11 /usr/X11.old
    sudo mv /usr/X11R6 /usr/X11

    ## 5) Get GCC

    Visit <https://github.com/kennethreitz/osx-gcc-installer> and download and install GCC-10.7.pkg.

    Now, since most of this happened late last night, I am not 100% sure this is necessary after you've done the `xcode-select`, but I remember doing this. If you find it's not necessary, please let me know so I can remove it as a step.

    ## 6) Check Yo PATH

    My path:

    PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:~/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin"

    ## 7) Reinstall your brews

    brew list

    Will tell you what you need to check. Try out everything one by one and when one doesn't work `brew remove it` and then reinstall it. If the install doesn't work, try `brew install it --use-gcc` to prevent llvm from getting in the way.

    Things that gave me issues that I had to remove and install:

    - libxml2
    - libxslt
    - macvim
    - imagemagick
    - ghostscript

    - - -

    Let me know if I missed anything.