How to install GraphLab on Ubuntu 11.04(32bit/64bit)

For Ubuntu 11.04 32bit

Before install the GraphLab,we need to install libboost,cmake first.You can install them by apt-get or sypaptic.And it seems GraphLab’s new configure scripts will automatically download and install cmake,boost and kyoto cabinet.

 

System Environment:
Ubuntu 11.04 32bit on Lenovo T400

 

Step1 : Installing itpp
following the instructions provided by Danny Bickson http://bickson.blogspot.com/2011/02/installing-blaslapackitpp-on-amaon-ec2.html

 

1)Install required packages
$ sudo apt-get install --yes --force-yes automake autoconf libtool* gfortran
2) Install lapack
$ sudo apt-get install --yes --force-yes liblapack-dev
3) setup LDFLAGS
$ export LDFLAGS="-L/usr/lib -lgfortran"
4)Install Tcmalloc
installed the google-perftools and tcmalloc-minimal by sypaptic.
#sudo apt-get install libgoogle-perftools-dev
5)Download and install itpp
 

download itpp

from http://sourceforge.net/projects/itpp/files/itpp/4.2.0/itpp-4.2.tar.gz/download?use_mirror=autoselect

extract itpp
$ tar xvzf itpp-4.2.tar.gz

Install itpp
$ cd itpp-4.2
$ ./autogen.sh
$ ./configure --without-fft --with-blas=/usr/lib/libblas.a --with-lapack=/usr/lib/liblapack.a CFLAGS=-fPIC CXXFLAGS=-fPIC CPPFLAGS=-fPIC
$ make
$ sudo make install

 

Step2: Installing graphlabapi

1)Install Mercurial

$sudo apt-get install mercurial
You can install tortoisHg and tortoisehg-nautilus,the graphical tool for working with Mercurial.(optional)

2)get copy from googlecode

$ hg clone http://graphlabapi.googlecode.com/hg/ graphlabapi  #Chinese mainland can’t access https://graphlabapi.googlecode.com

3)Install graphlabapi

$ cd graphlabapi/
$ ./configure --bootstrap

 

Step3:Test

1)build pmf

$ cd ~/graphlabapi/release/demoapps/pmf
$ make

2) test

$ ./pmf smalltest 0 --float=true --scheduler="round_robin(max_iterations=15)"

 

For Ubuntu 11.04  64bit

It’s little bit different from Ubuntu 11.04 32bit.

1) Before install Graphlab,  we should install mpi first.

$ sudo apt-get install libopenmpi-dev

2) Install itpp

In configure step

“–with-lapack” and “–with-blas” options are not necessary.The configure script will automatically detect the existence of the blas and lapack libraries which installeded in the earlier steps.

$ ./configure --without-fft

Other Install Steps is same as 32bit.

Thanks Danny Bickson and YuCheng Low for your patience to help me figure out what’s wrong ,and thanks Timmy Wilson provided step by step instructions. But even install 64 bit OS, I still can’t use fopen() read  file kddcup(>4GB). What a pity!

分享到: 更多

Leave a Reply