Saturday, July 19, 2014

Install GNU command line tools on Mac OSX

http://www.topbug.net/blog/2013/04/14/install-and-use-gnu-command-line-tools-in-mac-os-x/

Install Homebrew

First, visit Homebrew homepage and follow the installation instructions to install Homebrew.
Shortcut: install the latest XCode and then run the following command to install:
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
Then add the following line to your .bashrc or .zshrc:
export PATH="$(brew --prefix coreutils)/libexec/gnubin:/usr/local/bin:$PATH"

Install the GNU Command Line Tools

First comes the most important one – GNU Coreutils:
brew install coreutils
GNU Coreutils contains the most essential UNIX commands, such as lscat.

No comments: