Skip to content

Instantly share code, notes, and snippets.

@mreid
Created January 29, 2012 21:59
Show Gist options
  • Save mreid/1700908 to your computer and use it in GitHub Desktop.
Save mreid/1700908 to your computer and use it in GitHub Desktop.
Install Vowpal Wabbit on Mac OS X Lion

The INSTALL instructions that come with Vowpal Wabbit appear not to work on Mac OS X Lion. Here's what I did to get it to compile. You will need the developer tools that come with the XCode installation.

The only dependency VW has is the boost C++ library. So first, download and install Boost

To install Boost, do the following:

$ cp ~/Downloads/boost_1_48_0.tar.bz2 ./
$ tar xfj boost_1_48_0.tar.bz2
$ cd boost_1_48_0
$ ./bootstrap.sh					# Install defaults to /usr/local
$ sudo ./b2 install

To install VW, do the following:

$  git clone https://github.com/JohnLangford/vowpal_wabbit.git
$ autoreconf --force --install		# Options copy any needed autoconf files to local
$ ./configure
$ make
$ make install
$ vw --help
@chintan09
Copy link

Thanks for the tip! I had to install automake, libtool, boost via macports and it worked well.

@CindiThompsonUSF
Copy link

This was the magic post I needed! Thanks so much.

@asimjalis
Copy link

Thanks. That worked.

Here is the full script (adding David Rosenberg’s brew steps):

# Install prereqs
brew install automake
brew install libtool
brew install boost
brew install boost-build

# Install VW
git clone https://github.com/JohnLangford/vowpal_wabbit.git
cd vowpal_wabbit
autoreconf --force --install
./configure
make
make install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment