Download the source code from the git repository:
$ git clone git://git.sugarlabs.org/sugar-core/mainline.git sugar-core
Step inside the sugar-core directory and install the system dependecies:
$ sudo ./install-deps.sh
Run the configuration script:
$ ./autogen.sh
Build and install:
$ make; make install
Now you are ready to run it:
$ ./install/bin/sugar