Homebrew Mavericks

From Wiki for iCub and Friends
Revision as of 16:01, 18 July 2014 by Vtikha (talk | contribs) (Created page with "This installation has been confirmed to work on OSX Mavericks with Homebrew. Latest update and testing: 18/07/2014 - using OS X 10.9.4 with or without Xcode 5.1.1 = Installin...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This installation has been confirmed to work on OSX Mavericks with Homebrew. Latest update and testing: 18/07/2014 - using OS X 10.9.4 with or without Xcode 5.1.1

Installing Xcode

To compile anything on OS X (including YARP), you'll need to have Xcode (http://developer.apple.com/xcode/) installed. This can be done through the App Store. Once installed, you need to install Command Line Tools.

To do this, open XCode, go to XCode->Preferences->Downloads and install Command Line Tools.

If you do not see the option install Command Line Tools, run the following on a terminal

 xcode-select —install

Once this is done, you can now continue with the installation steps

Installing X11

In OS X 10.8 Mountain Lion and later, X11 is not provided anymore. You need to install XQuartz, from http://xquartz.macosforge.org/landing/. In earlier version of OS X, this is not stricly necessary, but recommended as XQuartz is more robust and updated that the system-provided X11.

Installing Homebrew

Before proceeding with the installation we recommend installing wget using curl (can also be done in Homebrew)

 cd ~/Downloads
 curl -O http://ftp.gnu.org/gnu/wget/wget-1.15.tar.gz
 tar -zxvf wget-1.15.tar.gz
 cd wget-1.15/
 ./configure

if you get a error configuring: error: --with-ssl was given, but GNUTLS is not available, use the following command.

 ./configure --with-ssl=openssl
 make
 sudo make install

Installing homebrew (http://mxcl.github.com/homebrew/) is very simple, just follow the official installation steps.

After the installation, you can run the following command to check if your setup is good :

  brew doctor

If you had Homebrew already installed on your system, update and upgrade :

  brew update
  brew upgrade

Installing Yarp

Here we provide information for installing the YARP dependencies via Homebrew and getting and compiling YARP from the repository. Install YARP dependencies

 brew install `brew deps --1 yarp | sed -e ':a' -e 'N' -e '$!ba' -e 's/\n/ /g'`

and the following for yarpbuilder

 brew install goocanvas