Installing Sugar on Ubuntu 6.06 Linux.

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Installing Sugar on Ubuntu 6.06 Linux.

Osmo Maatta
Hello all,

I just installed Sugar on my Ubuntu Linux desktop.

I encountered following issues:

When running
$ cd /home/moma/sugar-jhbuild/
$ ./sugar-jhbuild


1)  Error: Cannot create directory `/home/ruan'. Permission denied.   (hard
coded directory name).

make   install
Making install in src
make[1]: Entering directory
`/home/moma/sugar-jhbuild/source/matchbox-window-manager/src'
make[2]: Entering directory
`/home/moma/sugar-jhbuild/source/matchbox-window-manager/src'
test -z "/home/ruan/sugar/sugar-jhbuild/build/bin" || mkdir -p --
"/home/ruan/sugar/sugar-jhbuild/build/bin"
mkdir: cannot create directory `/home/ruan': Permission denied
make[2]: *** [install-binPROGRAMS] Error 1
make[2]: Leaving directory
`/home/moma/sugar-jhbuild/source/matchbox-window-manager/src'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory
`/home/moma/sugar-jhbuild/source/matchbox-window-manager/src'
make: *** [install-recursive] Error 1
*** error during stage install of matchbox-window-manager: Error running
make   install *** [9/15]


  [1] rerun stage install
  [2] ignore error and continue to done
  [3] give up on module
  [4] start shell
choice:
-----

Notice that my home directory is in /home/moma/.

I solved this problem by creating a temporary "/home/ruan" directory.

$ sudo mkdir /home/ruan
$ sudo chmod 777 /home/ruan

And it compiled and installed OK.
It put many files in "/home/ruan".
----------------------------------------------------------------------------------------------------

2)   error during stage configure of matchbox-window-manager:....[9/15]

XFixesShowCursor  error...

I got this error message several time.

I downloaded and installed newer libxfixes3 and libxfixes-dev from
http://packages.ubuntulinux.org/edgy/libdevel/libxfixes-dev
Actually these packages belong to next version of Ubuntu (Edgy Eft).

But those packages caused many other errors.  So I had to remove them and
download / re-install the original Ubuntu Dapper packages from
http://packages.ubuntu.com/cgi-bin/search_packages.pl?keywords=libxfixes&searchon=names&subword=1&version=dapper&release=all

$ dpkg -i --force-all *.deb

This obviously the same as
$ sudo apt-get install --reinstall libxfixes-dev  libxfixes3

And Sugar was happy. It compiled and installed OK.
At the moment, I have no explanation why it worked after re-installation of
those packages.
-------------------------------------------------------------------------------------------------------

3) Running Sugar:
I copied all files from (the hard-coded) location
/home/ruan/sugar/sugar-jhbuild/
to my working area
/home/moma/sugar-jhbuild/

$ cd /home/moma/sugar-jhbuild
$ cp -r /home/ruan/sugar/sugar-jhbuild/* .

It copied a "build" directory.
----

How to run Sugar ?

$ cd /home/moma/sugar-jhbuild
$ ./sugar-jhbuild run

It shows me this picture:  http://bildr.no/view/9288  (a screenshot)
The gecko browser is working well.

Is this the entire Sugar?
What else should I see in the Sugar sreen ?
-------------------------------------------------------------------------------------------------------

Many thanks,
  // moma

This distro is:

$ uname -a
Linux moma-desktop 2.6.15-23-386 #1 PREEMPT Tue May 23 13:49:40 UTC 2006
i686 GNU/Linux

$ cat /etc/*release*
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=6.06
DISTRIB_CODENAME=dapper
DISTRIB_DESCRIPTION="Ubuntu 6.06.1 LTS"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.laptop.org/pipermail/sugar/attachments/20060825/ff80fa5c/attachment.html
Reply | Threaded
Open this post in threaded view
|

Installing Sugar on Ubuntu 6.06 Linux.

Simon Schampijer-2
Hi,
read the answer from Marco a few mails ago about how sugar looks like at
the moment:
"...the chat activity is not implemented... You can chat in the context
of a shared activity though. Just open a browser activity and F3 on it
(this is going to change a lot with the final design). "
Other activities will follow (like the multi-player game memory as a
first test application).
Simon



Osmo Maatta wrote:

> Hello all,
>
> I just installed Sugar on my Ubuntu Linux desktop.
>
> I encountered following issues:
>
> When running
> $ cd /home/moma/sugar-jhbuild/
> $ ./sugar-jhbuild
>
>
> 1)  Error: Cannot create directory `/home/ruan'. Permission denied.  
> (hard coded directory name).
>
> make   install
> Making install in src
> make[1]: Entering directory
> `/home/moma/sugar-jhbuild/source/matchbox-window-manager/src'
> make[2]: Entering directory
> `/home/moma/sugar-jhbuild/source/matchbox-window-manager/src'
> test -z "/home/ruan/sugar/sugar-jhbuild/build/bin" || mkdir -p --
> "/home/ruan/sugar/sugar-jhbuild/build/bin"
> mkdir: cannot create directory `/home/ruan': Permission denied
> make[2]: *** [install-binPROGRAMS] Error 1
> make[2]: Leaving directory
> `/home/moma/sugar-jhbuild/source/matchbox-window-manager/src'
> make[1]: *** [install-am] Error 2
> make[1]: Leaving directory
> `/home/moma/sugar-jhbuild/source/matchbox-window-manager/src'
> make: *** [install-recursive] Error 1
> *** error during stage install of matchbox-window-manager: Error
> running make   install *** [9/15]
>
>
>   [1] rerun stage install
>   [2] ignore error and continue to done
>   [3] give up on module
>   [4] start shell
> choice:
> -----
>
> Notice that my home directory is in /home/moma/.
>
> I solved this problem by creating a temporary "/home/ruan" directory.
>
> $ sudo mkdir /home/ruan
> $ sudo chmod 777 /home/ruan
>
> And it compiled and installed OK.
> It put many files in "/home/ruan".
> ----------------------------------------------------------------------------------------------------
>
>
> 2)   error during stage configure of matchbox-window-manager:....[9/15]
>
> XFixesShowCursor  error...
>
> I got this error message several time.
>
> I downloaded and installed newer libxfixes3 and libxfixes-dev from
> http://packages.ubuntulinux.org/edgy/libdevel/libxfixes-dev 
> Actually these packages belong to next version of Ubuntu (Edgy Eft).
>
> But those packages caused many other errors.  So I had to remove them
> and download / re-install the original Ubuntu Dapper packages from
> http://packages.ubuntu.com/cgi-bin/search_packages.pl?keywords=libxfixes&searchon=names&subword=1&version=dapper&release=all 
> <http://packages.ubuntu.com/cgi-bin/search_packages.pl?keywords=libxfixes&searchon=names&subword=1&version=dapper&release=all>
>
> $ dpkg -i --force-all *.deb
>
> This obviously the same as
> $ sudo apt-get install --reinstall libxfixes-dev  libxfixes3
>
> And Sugar was happy. It compiled and installed OK.
> At the moment, I have no explanation why it worked after
> re-installation of those packages.
> -------------------------------------------------------------------------------------------------------
>
>
> 3) Running Sugar:
> I copied all files from (the hard-coded) location
> /home/ruan/sugar/sugar-jhbuild/
> to my working area
> /home/moma/sugar-jhbuild/
>
> $ cd /home/moma/sugar-jhbuild
> $ cp -r /home/ruan/sugar/sugar-jhbuild/* .
>
> It copied a "build" directory.
> ----
>
> How to run Sugar ?
>
> $ cd /home/moma/sugar-jhbuild
> $ ./sugar-jhbuild run
>
> It shows me this picture:  http://bildr.no/view/9288 
> <http://bildr.no/view/9288>  (a screenshot)
> The gecko browser is working well.
>
> Is this the entire Sugar?
> What else should I see in the Sugar sreen ?
> -------------------------------------------------------------------------------------------------------
>
>
> Many thanks,
>   // moma
>
> This distro is:
>
> $ uname -a
> Linux moma-desktop 2.6.15-23-386 #1 PREEMPT Tue May 23 13:49:40 UTC
> 2006 i686 GNU/Linux
>
> $ cat /etc/*release*
> DISTRIB_ID=Ubuntu
> DISTRIB_RELEASE= 6.06
> DISTRIB_CODENAME=dapper
> DISTRIB_DESCRIPTION="Ubuntu 6.06.1 LTS"
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Sugar mailing list
> [hidden email]
> http://mailman.laptop.org/mailman/listinfo/sugar
>  

Reply | Threaded
Open this post in threaded view
|

Installing Sugar on Ubuntu 6.06 Linux.

Dan Williams-4
In reply to this post by Osmo Maatta
On Fri, 2006-08-25 at 17:14 +0200, Osmo Maatta wrote:

> Hello all,
>
> I just installed Sugar on my Ubuntu Linux desktop.
>
> I encountered following issues:
>
> When running
> $ cd /home/moma/sugar-jhbuild/
> $ ./sugar-jhbuild
>
>
> 1)  Error: Cannot create directory `/home/ruan'. Permission denied.
> (hard coded directory name).

Where is that directory hard-coded?  Did you copy the sugar-jhbuild
installation from somebody else's machine without re-running autogen.sh?
Obviously that's not going to work if you just copy it when it's already
been configured.

Try doing a fresh git pull and see if that makes it work.

Dan

> make   install
> Making install in src
> make[1]: Entering directory
> `/home/moma/sugar-jhbuild/source/matchbox-window-manager/src'
> make[2]: Entering directory
> `/home/moma/sugar-jhbuild/source/matchbox-window-manager/src'
> test -z "/home/ruan/sugar/sugar-jhbuild/build/bin" || mkdir -p --
> "/home/ruan/sugar/sugar-jhbuild/build/bin"
> mkdir: cannot create directory `/home/ruan': Permission denied
> make[2]: *** [install-binPROGRAMS] Error 1
> make[2]: Leaving directory
> `/home/moma/sugar-jhbuild/source/matchbox-window-manager/src'
> make[1]: *** [install-am] Error 2
> make[1]: Leaving directory
> `/home/moma/sugar-jhbuild/source/matchbox-window-manager/src'
> make: *** [install-recursive] Error 1
> *** error during stage install of matchbox-window-manager: Error
> running make   install *** [9/15]
>
>
>   [1] rerun stage install
>   [2] ignore error and continue to done
>   [3] give up on module
>   [4] start shell
> choice:
> -----
>
> Notice that my home directory is in /home/moma/.
>
> I solved this problem by creating a temporary "/home/ruan" directory.
>
> $ sudo mkdir /home/ruan
> $ sudo chmod 777 /home/ruan
>
> And it compiled and installed OK.
> It put many files in "/home/ruan".
> ----------------------------------------------------------------------------------------------------
>
> 2)   error during stage configure of
> matchbox-window-manager:....[9/15]
>
> XFixesShowCursor  error...
>
> I got this error message several time.
>
> I downloaded and installed newer libxfixes3 and libxfixes-dev from
> http://packages.ubuntulinux.org/edgy/libdevel/libxfixes-dev 
> Actually these packages belong to next version of Ubuntu (Edgy Eft).
>
> But those packages caused many other errors.  So I had to remove them
> and download / re-install the original Ubuntu Dapper packages from
> http://packages.ubuntu.com/cgi-bin/search_packages.pl?keywords=libxfixes&searchon=names&subword=1&version=dapper&release=all
>
> $ dpkg -i --force-all *.deb
>
> This obviously the same as
> $ sudo apt-get install --reinstall libxfixes-dev  libxfixes3
>
> And Sugar was happy. It compiled and installed OK.
> At the moment, I have no explanation why it worked after
> re-installation of those packages.
> -------------------------------------------------------------------------------------------------------
>
> 3) Running Sugar:
> I copied all files from (the hard-coded) location
> /home/ruan/sugar/sugar-jhbuild/
> to my working area
> /home/moma/sugar-jhbuild/
>
> $ cd /home/moma/sugar-jhbuild
> $ cp -r /home/ruan/sugar/sugar-jhbuild/* .
>
> It copied a "build" directory.
> ----
>
> How to run Sugar ?
>
> $ cd /home/moma/sugar-jhbuild
> $ ./sugar-jhbuild run
>
> It shows me this picture:  http://bildr.no/view/9288  (a screenshot)
> The gecko browser is working well.
>
> Is this the entire Sugar?
> What else should I see in the Sugar sreen ?
> -------------------------------------------------------------------------------------------------------
>
> Many thanks,
>   // moma
>
> This distro is:
>
> $ uname -a
> Linux moma-desktop 2.6.15-23-386 #1 PREEMPT Tue May 23 13:49:40 UTC
> 2006 i686 GNU/Linux
>
> $ cat /etc/*release*
> DISTRIB_ID=Ubuntu
> DISTRIB_RELEASE= 6.06
> DISTRIB_CODENAME=dapper
> DISTRIB_DESCRIPTION="Ubuntu 6.06.1 LTS"
>
> _______________________________________________
> Sugar mailing list
> [hidden email]
> http://mailman.laptop.org/mailman/listinfo/sugar

Reply | Threaded
Open this post in threaded view
|

Re: Installing Sugar on Ubuntu 6.06 Linux.

Osmo Maatta
In reply to this post by Osmo Maatta
Re-hello,

Second attempt.

I made a complete reinstallation of Sugar in Ubuntu Dapper and the verdict
is this:

gcc  -g -O2   -o matchbox-window-manager  main.o wm.o base_client.o
main_client.o toolbar_client.o toolbar_client_alt.o dockbar_client.o
dialog_client.o select_client.o desktop_client.o ewmh.o misc.oclient_common.o
keys.o list.o stack.o composite-engine.o session.o mbtheme.o
xml.o-L/home/moma/sugar-jhbuild/build/lib -lmb -lX11 -lXext -lpng12
-lXfixes
wm.o: In function
`wm_set_cursor_visibility':/home/moma/sugar-jhbuild/source/matchbox-window-manager/src/wm.c:2863:
undefined reference to `XFixesHideCursor'
:/home/moma/sugar-jhbuild/source/matchbox-window-manager/src/wm.c:2857:
undefined reference to `XFixesShowCursor'
collect2: ld returned 1 exit status
make[2]: *** [matchbox-window-manager] Error 1
make[2]: Leaving directory
`/home/moma/sugar-jhbuild/source/matchbox-window-manager/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/home/moma/sugar-jhbuild/source/matchbox-window-manager'
make: *** [all] Error 2
*** error during stage build of matchbox-window-manager: Error running
make   *** [9/15]

  [1] rerun stage build
  [2] ignore error and continue to install
  [3] give up on module
  [4] start shell
  [5] go to stage force_checkout
  [6] go to stage configure
choice:
-------------------------------------------

Functions XFixesShowCursor()" and XFixesHideCursor() do not exist in Ubuntu
6.06's  libXfixes library (linked by gcc as -l Xfixes).
So I edited the
/home/moma/sugar-jhbuild/source/matchbox-window-manager/src/wm.c and
commented out the problematic lines (2 lines).

Then it compiled OK.

...
Install browser.activity ...
Install chat.activity ...
Install groupchat.activity ...
Install terminal.activity ...
test -z "/home/moma/sugar-jhbuild/build/share/sugar" || mkdir -p --
"/home/moma/sugar-jhbuild/build/share/sugar"
 /usr/bin/install -c -m 644 'dbus-installed.conf'
'/home/moma/sugar-jhbuild/build/share/sugar/dbus-installed.conf'
make[2]: Leaving directory `/home/moma/sugar-jhbuild/source/sugar'
make[1]: Leaving directory `/home/moma/sugar-jhbuild/source/sugar'
*** success *** [15/15]
------------------------------------------

Notice: The version of libXfixes3 in Ubuntu is  v1:3.0.1.2-0ubuntu3.

Show the version:
$ apt-cache  show  libXfixes3

Package: libxfixes3
Maintainer: Ubuntu X Maintainers <[hidden email]>
Architecture: i386
Source: libxfixes
Version: 1:3.0.1.2-0ubuntu3
Depends: libc6 (>= 2.3.4-1), libx11-6, x11-common (>= 7.0.0-0ubuntu3)
Filename: pool/main/libx/libxfixes/libxfixes3_3.0.1.2-0ubuntu3_i386.deb
----

Next Ubuntu-version (Edgy Eft with planned release in october) will include
upgraded versions of libXfixes3 and libXfixes-dev,  which will include
XFixesShowCursor() and XFixesHideCursor().
---------  ----------

$ ./sugar-jhbuild run

Yes, it runs OK.

--- the end
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.laptop.org/pipermail/sugar/attachments/20060825/f1f5b2b9/attachment.html
Reply | Threaded
Open this post in threaded view
|

Re: Installing Sugar on Ubuntu 6.06 Linux.

Simon Schampijer-2
Osmo Maatta wrote:

> Re-hello,
>
> Second attempt.
>
> I made a complete reinstallation of Sugar in Ubuntu Dapper and the
> verdict is this:
>
> gcc  -g -O2   -o matchbox-window-manager  main.o wm.o base_client.o
> main_client.o toolbar_client.o toolbar_client_alt.o dockbar_client.o
> dialog_client.o select_client.o desktop_client.o ewmh.o misc.o
> client_common.o keys.o list.o stack.o composite-engine.o session.o
> mbtheme.o xml.o -L/home/moma/sugar-jhbuild/build/lib -lmb -lX11 -lXext
> -lpng12       -lXfixes
> wm.o: In function
> `wm_set_cursor_visibility':/home/moma/sugar-jhbuild/source/matchbox-window-manager/src/wm.c:2863:
> undefined reference to `XFixesHideCursor'
> :/home/moma/sugar-jhbuild/source/matchbox-window-manager/src/wm.c:2857:
> undefined reference to `XFixesShowCursor'
> collect2: ld returned 1 exit status
> make[2]: *** [matchbox-window-manager] Error 1
> make[2]: Leaving directory
> `/home/moma/sugar-jhbuild/source/matchbox-window-manager/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory
> `/home/moma/sugar-jhbuild/source/matchbox-window-manager'
> make: *** [all] Error 2
> *** error during stage build of matchbox-window-manager: Error running
> make   *** [9/15]
>
>   [1] rerun stage build
>   [2] ignore error and continue to install
>   [3] give up on module
>   [4] start shell
>   [5] go to stage force_checkout
>   [6] go to stage configure
> choice:
> -------------------------------------------
>
> Functions XFixesShowCursor()" and XFixesHideCursor() do not exist in
> Ubuntu 6.06's  libXfixes library (linked by gcc as -l Xfixes).
> So I edited the
> /home/moma/sugar-jhbuild/source/matchbox-window-manager/src/wm.c and
> commented out the problematic lines (2 lines).
>
> Then it compiled OK.
>
> ...
> Install browser.activity ...
> Install chat.activity ...
> Install groupchat.activity ...
> Install terminal.activity ...
> test -z "/home/moma/sugar-jhbuild/build/share/sugar" || mkdir -p --
> "/home/moma/sugar-jhbuild/build/share/sugar"
>  /usr/bin/install -c -m 644 'dbus-installed.conf'
> '/home/moma/sugar-jhbuild/build/share/sugar/dbus-installed.conf'
> make[2]: Leaving directory `/home/moma/sugar-jhbuild/source/sugar'
> make[1]: Leaving directory `/home/moma/sugar-jhbuild/source/sugar'
> *** success *** [15/15]
> ------------------------------------------
>
> Notice: The version of libXfixes3 in Ubuntu is  v1:3.0.1.2-0ubuntu3.
>
> Show the version:
> $ apt-cache  show  libXfixes3
>
> Package: libxfixes3
> Maintainer: Ubuntu X Maintainers <[hidden email]
> <mailto:[hidden email]>>
> Architecture: i386
> Source: libxfixes
> Version: 1:3.0.1.2-0ubuntu3
> Depends: libc6 (>= 2.3.4-1), libx11-6, x11-common (>= 7.0.0-0ubuntu3)
> Filename: pool/main/libx/libxfixes/libxfixes3_3.0.1.2-0ubuntu3_i386.deb
> ----
>
> Next Ubuntu-version (Edgy Eft with planned release in october) will
> include upgraded versions of libXfixes3 and libXfixes-dev,  which will
> include XFixesShowCursor() and XFixesHideCursor().
> ---------  ----------
>
> $ ./sugar-jhbuild run
>
> Yes, it runs OK.
>
> --- the end
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Sugar mailing list
> [hidden email]
> http://mailman.laptop.org/mailman/listinfo/sugar
>  

Same problem here on Debian with libxfixes3 Version: 1:3.0.1.2-4
. Used the same 'fix' you did to make it compile.
Simon