Search This Blog

Thursday, May 17, 2012

Installing GraphLab on Ubuntu

Installing GraphLab on Ubuntu

Recently I am spending more and more time giving supports to people who are installing Graphlab on ubuntu. Installation should be rather simple. The directions below are for Ubuntu Natty (11.04)

0) Login into your ubuntu machine (64 bit).
On amazon EC2 - you can launch instance AMI-e9965180

1) Installing libboost
sudo apt-get update
sudo apt-get install zlib1g-dev libbz2-dev
sudo apt-get install build-essential
sudo apt-get install libboost1.42-all-dev

2) Installing itpp
sudo apt-get install libitpp-dev libitpp7-dbg
3) Install Mercurial
sudo apt-get install mercurial
4) Install cmake
sudo apt-get install cmake
5a) Install graphlab from mercurial
Go to graphlab download page, and follow the download link to the mercurial repository.
copy the command string: "hg clone..." and execute it in your ubuntu shell.


or 5b) Install graphlab from tgz file
Go to graphlab download page, and download the latest release.
Extract the tgz file using the command: "tar xvzf graphlabapi_v1_XXX.tar.gz"
where XXX is the version number you downloaded.

6a) configure and compile - for GraphLab version 1

cd graphlabapi
export BOOST_ROOT=/usr/
./configure --bootstrap --yes
cd release/
make -j4

6b) configure and compile - for GraphLab version 2

cd graphlabapi
hg pull
hg update v2
export BOOST_ROOT=/usr/
./configure
cd release/
make -j4

7) Test Graphlab
cd tests
./runtests.sh

8) Optional: install Octave.
If you don't have access to Matlab, Octave is an open source replacement. Octave is useful for preparing input formats to GraphLab's collaborative filtering library and reading the output.
You can install Octave using the command:
sudo apt-get install octave3.2

Let me know how it went!

Note: from Clive Cox, RummbleLabs.com : For Ubuntu Lucid add the following:
sudo add-apt-repository ppa:lucid-bleed/ppa
sudo apt-get update

No comments:

Post a Comment

Thank you