dsaiztc
7/2/2015 - 3:22 PM

Development Environment OS X.

Development Environment OS X.

Some configurations about Development Environment on OS X

Homebrew

Install

The missing package manager for OS X.

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

It's necessary have installed the Command Line Tools.

Check for any issues with the install:

brew doctor

Which in my case shows 3 warnings:

  • Python is installed at /Library/Frameworks/Python.framework
  • Unbrewed header files were found in /usr/local/include.
  • /usr/bin occurs before /usr/local/bin

I had installed an old version of python (probably downloaded from python.org). Just type sudo rm -rf /Library/Frameworks/Python.framework/. After calling again brew doctor I get the message "Broken symlinks were found. Remove them with brew prune". So I call brew prune, then again brew doctor and now I only get the second error. This error is because I had node.js installed, so I just need to uninstall it:

#go to /usr/local/lib and delete any node and node_modules
cd /usr/local/lib
sudo rm -rf node*
 
# go to /usr/local/include and delete any node and node_modules directory
cd /usr/local/include
sudo rm -rf node*

And that's all! Now I could install both python and node.js by calling brew install ....

Notes about Homebrew

brew installs packages to their own directory /usr/local/Cellar and then symlinks their files into /usr/local/bin.

Command Line Tools

How to Install Command Line Tools in OS X Mavericks & Yosemite (Without Xcode).

xcode-select --install