Sep 10

Homebrew is my favorite package manager. If you installed Xcode just for brew than this post might be interesting for you.

Kenneth Reitz created a GCC Installer for OSX without Xcode! Thank you. This package is about 500 MB. Compared to Xcode you save at least 1,5 GB on your SSD.

So let’s go to work:

  • Remove Xcode
  • sudo /Developer/Library/uninstall-devtools --mode=all

    This will delete Xcode. For more details see John’s post

  • Download and install GCC for Mac without Xcode
  • Currently 10.6 and 10.7 packages are available at https://github.com/kennethreitz/osx-gcc-installer/downloads

  • Install brew (see http://mxcl.github.com/homebrew/)
  • /usr/bin/ruby <(curl -fsSkL raw.github.com/mxcl/homebrew/go)
  • You're done
  • You can verify your success with brew doctor.

Caution:
You don't need Xcode for formulas like gradle, groovy, maven, tomcat etc. Nevertheless some formulas will require Xcode!

Tagged with:
Mar 17

If you are using Homebrew and want to use the maven formular you have to delete the symbolic link /usr/bin/mvn.

Thereby you use your homebrew maven installation instead of the shipping version of OSX.

The executable is located at /usr/local/bin/ which should be part of your path already.
The maven package itself can be found at /usr/local/Cellar/maven/3.0.3/libexec. This will be interesting for your IDE, which often wants a pointer to your maven home directory. I created a symlink current so that I can change the version to use at the command line without the need to configure my IDE again.

[/usr/local/Cellar/maven] master@struggy$ sudo ln -s 3.0.3/libexec/ current

That’s it.

Tagged with:
preload preload preload