Sugar on Fedora Core 5: Difference between revisions

From OLPC
Jump to navigation Jump to search
mNo edit summary
m (Reverted edits by 202.108.28.23 (Talk) to last version by Cjl)
 
(46 intermediate revisions by 31 users not shown)
Line 1: Line 1:
==Install required packages==
This tutorial is intended to be used by those of us who are interested in the project, but not to the degree with which we might gain access to the hardware :-)


You will need some packages from the [[Fedora Core]] repositories.
I have made this relatively granular in detail, as that is what I would have liked to have seen--especially as a relative novice. My hope is that others might have an easier go of it!
You can download the [[Sugar]] environment from here http://hg.fedoraproject.org/hg/olpc/applications/sugar--devel


Or you can use yum, as root, to install them:
Note: This is a work in progress. It is not complete, due to Python not being able to see several modules required by Sugar. If you have experience with Python environment configuration, please edit this page! I am open to any and all comments/suggestions, and would like to get this up and running as a tutorial for others.


yum install git gcc gcc-c++ autoconf automake libtool automake17 mozilla \
Note: The instructions below are for Fedora Core 5, though may work on older or newer versions of Fedora Core.
mozilla-devel avahi avahi-glib avahi-tools xorg-x11-server-Xnest libXdamage-devel \
docbook-style-xsl gtk-doc libtiff-devel libjpeg-devel libXt-devel perl-XML-Parser \
==Get and install mercurial==
gnome-common libgsf-devel libgnomeprint22-devel libgnomeprintui22-devel \
<pre>
enchant-devel fribidi-devel gstreamer-devel gstreamer-plugins-base-devel \
su -
python-pycurl expat-devel
rpm -i mercurial-0.9-1.fc5.i386.rpm (*see below)
</pre>
==Get Sugar from repository==
<pre>
hg clone http://hg.fedoraproject.org/hg/olpc/applications/sugar--devel
</pre>
==Get dependencies ironed out==
<pre>
yum install gnome-common


There may be more packages required; if you find any more, please append them to this list.
yum install gtk2 gtk2-devel (Note: this is libgtk2.0 in Debian distros)


==Build==
yum install libstdc++ (which pulled multiple dependencies of its own!)
yum install libstdc++.so.5 (even though libstdc++.so.6 existed!)


The easiest way to build Sugar from sources is to [[Sugar with sugar-jhbuild|use sugar-jhbuild]].
yum install avahi


yum install avahi-qt3

yum install dbus
</pre>
==Create symbolic link for libstdc++==
<pre>
ln -s /usr/local/lib/libstdc++.so.5 /usr/lib/libstdc++.so.5
</pre>

==Get xulrunner from http://developer.mozilla.org==


==Install xulrunner (gecko-embed depends on it)==
<pre>
tar -xzf xulrunner-1.8.0.1.en-US.linux-i686.tar.gz

(they recommend untarring to /opt/xulrunner/1.8.0.1, I used /opt/xulrunner)

/opt/xulrunner/xulrunner --register-global
</pre>

==Install gecko-embed from cvs==
<pre>
cvs -d :pserver:anonymous@anoncvs.gnome.org:/cvs/gnome co gecko-embed
</pre>
==Build gecko-embed==
<pre>
cd gecko-embed
./autogen.sh
make
make install (as root or use sudo)
</pre>
==Get and Install avahi from avahi.org==
<pre>
tar -xzf avahi-0.6.11.tar.gz
./autogen.sh
</pre>


==Build Sugar==
<pre>
cd sugar--devel
./autogen.sh
make
</pre>
==Run Sugar==
<pre>
avahi-daemon -D (may already be running)
./sugar/sugar

Note: Sugar does not run, but throws ImportError: No module named avahi.
I believe this is due to PYTHONPATH or PATH not being set correctly?

Note: Alleviated above error by copying avahi.py from avahi.org and dropping in my PYTHONPATH.

Note: Got an ImportError: No module named geckoembed. I created a symlink to the correct location:
ln -s /usr/local/lib/python2.4/geckoembed/__init__.py /usr/lib/python2.4/site-packages/geckoembed/__init__.py

(This is getting to be a little frustrating...)
</pre>

==NOTES==

* Path will be dependent upon where you saved the RPMs to, i.e., if you saved to the desktop, your path might be /home/<username>/Desktop/<rpm package name>


[[Category:Installing Sugar]]
[[Category:Installing Sugar]]
[[Category:Sugar]]
[[Category:Developers]]
[[Category:Software development]]

Latest revision as of 01:40, 21 December 2008

Install required packages

You will need some packages from the Fedora Core repositories. You can download the Sugar environment from here http://hg.fedoraproject.org/hg/olpc/applications/sugar--devel

Or you can use yum, as root, to install them:

yum install git gcc gcc-c++ autoconf automake libtool automake17 mozilla \
  mozilla-devel avahi avahi-glib avahi-tools xorg-x11-server-Xnest libXdamage-devel \
  docbook-style-xsl gtk-doc libtiff-devel libjpeg-devel libXt-devel perl-XML-Parser \
  gnome-common libgsf-devel libgnomeprint22-devel  libgnomeprintui22-devel \
  enchant-devel fribidi-devel gstreamer-devel gstreamer-plugins-base-devel \
  python-pycurl expat-devel

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

Build

The easiest way to build Sugar from sources is to use sugar-jhbuild.