Sugar on Ubuntu: Difference between revisions

From OLPC
Jump to navigation Jump to search
No edit summary
m (added headings)
Line 21: Line 21:
cd sugar-jhbuild
cd sugar-jhbuild
./sugar-jhbuild
./sugar-jhbuild

If you had already checked out sugar-jhbuild previously, make sure your copy is up-to-date before building:

cd sugar-jhbuild
git pull

=== Troubleshooting ===

==== automake version mismatch ====


During the building task you may get the following error:
During the building task you may get the following error:


''error during stage configure of matchbox-window-manager:....[9/12]''
error during stage configure of matchbox-window-manager:....[9/12]


This error happens because Ubuntu uses the automake 1.4 version in contrast with matchbox-window-manager which uses the automake 1.9 version. In order to bypass this error you can execute the following command:
This error happens because Ubuntu uses the automake 1.4 version in contrast with matchbox-window-manager which uses the automake 1.9 version. In order to bypass this error you can execute the following command:


''sudo update-alternatives --config automake''
sudo update-alternatives --config automake


You will get the following list with the asterisk being at the 1 selection
You will get the following list with the asterisk being at the 1 selection


There are 3 alternatives which provide `automake'.

Selection Alternative
There are 3 alternatives which provide `automake'.
+ 1 /usr/bin/automake-1.4
Selection Alternative
+ 1 /usr/bin/automake-1.4
2 /usr/bin/automake-1.7
2 /usr/bin/automake-1.7
* 3 /usr/bin/automake-1.9
Press enter to keep the default[*], or type selection number:
* 3 /usr/bin/automake-1.9
Press enter to keep the default[*], or type selection number:


Here you should press the button 3 and the try again to build sugar.
Here you should press the button 3 and the try again to build sugar.
If you had already checked out sugar-jhbuild previously, make sure your copy is up-to-date before building:


==== git, the SCM ====
cd sugar-jhbuild
git pull


On Ubuntu 6.06 Dapper Drake, git has been deprecated. You have to run the following command to get git to work properly.
On Ubuntu 6.06 Dapper Drake, git has been deprecated. You have to run the following command to get git to work properly.
Line 50: Line 56:
sudo update-alternatives --config git
sudo update-alternatives --config git
Select option #2: git-scm
Select option #2: git-scm

If you were looking for the instructions that were here previously that detailed pulling libraries from CVS/git, check the revisions for this page.


=== Testing sugar ===
=== Testing sugar ===

Revision as of 19:11, 23 August 2006

Installation

The easiest way to install Sugar on Ubuntu is to use Sugar-jhbuild. The instructions on this page are for Ubuntu 6.06 "Dapper Drake."

apt-get the prerequisites

You need a number of packages from the Ubuntu repositories. Some of these packages are not available for the stock Ubuntu install, and you may need to enable the universe and multiverse repositories.

sudo apt-get install build-essential cvs subversion libgtk2.0-dev libidl-dev \
  gnome-common gtk-doc-tools libxt-dev automake1.7 automake1.9 python-gtk2-dev \
  python2.4-avahi git-core cogito python-dev avahi-utils \
  libgconf2-dev xnest libgnome2-dev mozilla-dev libmatchbox-dev python-cairo-dev

There may be more packages required; if you find any more, please append them to this list.

Using Sugar-jhbuild

Use of Sugar-jhbuild is detailed on building Sugar from sources. To summarize those instructions:

git clone git://dev.laptop.org/sugar-jhbuild
cd sugar-jhbuild
./sugar-jhbuild

If you had already checked out sugar-jhbuild previously, make sure your copy is up-to-date before building:

cd sugar-jhbuild
git pull

Troubleshooting

automake version mismatch

During the building task you may get the following error:

error during stage configure of matchbox-window-manager:....[9/12]

This error happens because Ubuntu uses the automake 1.4 version in contrast with matchbox-window-manager which uses the automake 1.9 version. In order to bypass this error you can execute the following command:

sudo update-alternatives --config automake

You will get the following list with the asterisk being at the 1 selection

There are 3 alternatives which provide `automake'.
  Selection    Alternative
 +    1        /usr/bin/automake-1.4
      2        /usr/bin/automake-1.7
 *    3        /usr/bin/automake-1.9
Press enter to keep the default[*], or type selection number:

Here you should press the button 3 and the try again to build sugar.

git, the SCM

On Ubuntu 6.06 Dapper Drake, git has been deprecated. You have to run the following command to get git to work properly.

sudo update-alternatives --config git
Select option #2: git-scm

Testing sugar

When using sugar-jhbuild, you can use:

./sugar-jhbuild run

If you want to run Sugar from the source tree enter in a jhbuild shell:

./sugar-jhbuild shell 

Then from the directory sugar-jhbuild/source/sugar), use:

shell/sugar