1. a) download the libdivsufsort of Yuta Mori from
      http://code.google.com/p/libdivsufsort/
   b) unpack libdivsufsort-2.0.1.tar.gz into a directory libdivsufsort-2.0.1
      open the CMakeList.txt file with an editor and
	  change the option BUILD_DIVSUFSORT64 from OFF to ON
   c) create a build directory
   d) cd build
   e) cmake ..
   f) make
   g) make install  
2. a) goto the build directory /path/to/sdsl/build 
   b) cmake ..
   c) make 

You can now compile your program example.cc by

g++ -O3 -DNDEBUG -funroll-loops -I/path/to/sdsl/build/include/ -L/path/to/sdsl/build/lib/ \
		                        -I/usr/local/include/ -L/usr/local/lib/ \
								-o example example.cc -lsdsl -ldivsufsort -ldivsufsort64
