Sugar on Fedora 7

From OLPC
Revision as of 22:53, 5 October 2007 by Awjrichards (talk | contribs)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

The preferred method for building Sugar is to build from sources using sugar-jhbuild, as dependencies continue to change. A full build using sugar-jhbuild will require about 3 Gig of disk space.

Step 1: Install the build prerequisites:

sudo yum -y update
sudo yum groupinstall "Development Tools"
sudo yum groupinstall "X Software Development"
sudo yum install git intltool darcs xorg-x11-server-Xephyr \
    gstreamer-devel gstreamer-plugins-base-devel gstreamer-python \
    fribidi-devel enchant-devel openssl-devel sqlite-devel python-devel \
    ncurses-devel expat-devel boost-devel libvorbis-devel libtheora-devel speex-devel \
    docbook-style-xsl GConf2-devel gettext-devel libgsf-devel gnutls-devel liboil-devel \
    avahi-devel avahi-glib-devel poppler-devel gtk-doc gnome-python2-rsvg gnome-python2-libwnck \
    libxslt-devel pango-devel gtk2-devel atk-devel libglade2-devel \
    pycairo-devel pygtk2-devel avahi-tools dbus-glib-devel python-json numpy \
    automake17 bison libjpeg-devel libtiff-devel libXt-devel libXres-devel gnome-doc-utils

Step 2: Follow the build instructions for sugar-jhbuild.

NOTE: the dependency check will fail if you don't have a DISPLAY set.

Problems With sugar-jhbuild (as of at least 2007-10-05)

Attempting to follow Fedora 7 + sugar-jhbuild instructions results in the following (on a fresh Fedora 7 install):

*** Building sugar *** [19/45]
make  
Making all in bin
make[1]: Entering directory `/usr/share/sugar-jhbuild/source/sugar/bin'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/share/sugar-jhbuild/source/sugar/bin'
Making all in data
make[1]: Entering directory `/usr/share/sugar-jhbuild/source/sugar/data'
Makefile:599: *** missing separator.  Stop.
make[1]: Leaving directory `/usr/share/sugar-jhbuild/source/sugar/data'
make: *** [all-recursive] Error 1
*** error during stage build of sugar: ########## Error running make   *** [19/45] 
process 16997: D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open "/usr/share/sugar-jhbuild/build/var/lib/dbus/machine-id": No  such file or directory
See the manual page for dbus-uuidgen to correct this issue.
D-Bus not built with -rdynamic so unable to print a backtrace