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) Install Git
sudo apt-get install git
3) Install cmake
sudo apt-get install cmake
4) Install Java+openmpi
5) Install graphlab from git
Go to graphlab download page, and follow the download link to the mercurial repository.
copy the command string: "git clone..." and execute it in your ubuntu shell.
Note: After you cloned the repository and you would like to get up to date,
you can issue the commands:
git pull
Note: After you cloned the repository and you would like to get up to date,
you can issue the commands:
git pull
6) configure and compile - for GraphLab version 2.1
cd graphlab
./configure
cd release/toolkits/collaborative_filtering/ # for example, if you want to compile the cf toolkit
make -j4
cd release/toolkits/collaborative_filtering/ # for example, if you want to compile the cf toolkit
make -j4
7) 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
Thanks to Yifu Diao, for his great comments!
Just finished setting up with Ubuntu 11.10, libboost 1.46, and libitpp7. Thanks very much for the guide.
ReplyDeleteMike
Thanks for the feedback!! Would you mind sending me the exact commands? Some users have trouble with 11.10 and I did not fully figure out the installation there. (You can view the exact commands using "history").
ReplyDeleteI have installed GraphLab on Ubuntu 11.10 64bit.
ReplyDeleteFollowing the instructions in "http://select.cs.cmu.edu/code/graphlab/download.html"
1- I installed Boost, CMake and Kyoto Cabinet
2- The configuration was done using:
./configure --bootstrap --eigen
3- And finally the compilation using:
cd release/
make -j4
Best regards
Alireza
Hi, Thanks for the feedback! Did you manage to run the unit tests (Section 7)?
ReplyDeleteHi, the unit and application tests are done successfully. I didn't install MPICH and therefore the RPC test is not accomplished.
ReplyDeleteCheers
Alireza
Very cool! Would you mind sharing a bit more where are you from and what are you working on?
ReplyDeleteI sent an email.
ReplyDeleteThis procedure works great with Ubuntu 11.10 64bit version as well. :)
ReplyDeleteWorks like a charm also on a bit older Ubuntu 10.10.
ReplyDeleteworks fine on Ubuntu 10.04 LTS and passed all the unit tests.
ReplyDeleteI'm working in computer vision and looking forward to building things on top of it to facilitate large-scale learning. Thanks for making it publicly accessible...
Hi Ning!
DeleteThanks for the update. Would love to help as needed!!
Not sure for other versions but for 12.04 libboost1.48 is the package available.
ReplyDeleteI think 1.42 is no longer available as debian
Yes. On ubuntu 12.04,
Deletesudo apt-get install libboost1.42-all-dev
gives
E: Unable to locate package libboost1.42-all-dev
thanks for these instructions danny
ReplyDeleteHello!
ReplyDeleteI'm trying to install graphlab on ubuntu 12.04
Thanks to Mohit's comment - libboost1.48 passed well
However hyperlinks in 5а) and 5b) leads to 404 page not found. :(
Need your advice or good link.
Thank you!
Hi Alexandr!
DeleteI fixed the links - they point now to graphlab 2.1
I also advise looking at graphchi: http://graphchi.org/
which now replaces the multicore graphlab 1.