Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: nutjob16 on September 10, 2010, 10:43:02 AM

Title: installing workrave on tc
Post by: nutjob16 on September 10, 2010, 10:43:02 AM
Hello,

I tried to install workrave and I was running into a few issues.  I'm used to installing workrave from the debian repositories... 

I downloaded the source code and I tried installing the dependencies with the Appbrowser, but some would not install, giving me an error "Cannot allocate memory"

Just wondering if anyone had any advice for me.  I'm new to Tiny Core. 

Thanks,
Title: Re: installing workrave on tc
Post by: Juanito on September 10, 2010, 11:08:13 AM
What sort of machine are you using (cpu, ram), which version of tinycore are you using and which extensions gave you problems?
Title: Re: installing workrave on tc
Post by: nutjob16 on September 10, 2010, 12:09:07 PM
I am using a PII with 128 MB.  I am using the latest version of tc (3.0). 

The packages I had a problem with were libgnomeuimm, GDome. 

At first, I even had a problem installing gcc.  Then I rebooted and was able to install.  I tried to do a ./configure and it gave me an error "C compiler cannot create executables". 

Title: Re: installing workrave on tc
Post by: curaga on September 10, 2010, 12:32:15 PM
Do you have swap?
Title: Re: installing workrave on tc
Post by: nutjob16 on September 10, 2010, 12:44:42 PM
I do have a swap set up, but I'm not sure if it is being used.  I installed over another distro and left the partitions as is.  Do I have to do anything special to have the swap recognized? 
Title: Re: installing workrave on tc
Post by: tinypoodle on September 10, 2010, 12:55:33 PM
Code: [Select]
swapon /dev/XdN
or
Code: [Select]
swapon /path/to/swapfile
check with
Code: [Select]
free
Title: Re: installing workrave on tc
Post by: nutjob16 on September 10, 2010, 01:07:36 PM
Looks like I might already be using the swap. 

I typed in "free" and got...


                        total         used         free       shared      buffers
  Mem:       125088       122544         2544            0         3228
 Swap:        31260        11740        19520
Total:       156348       134284        22064


Title: Re: installing workrave on tc
Post by: curaga on September 10, 2010, 01:08:47 PM
No, that is the in-ram swap of TC 3.x.

cat /proc/swaps
Title: Re: installing workrave on tc
Post by: nutjob16 on September 10, 2010, 01:44:09 PM
Okay, I ran the swapon command and I believe it worked.  I didn't receive any feedback.  I was able to install libgnomeui.  However, libgnomeuimm and GDome do not appear in the Appbrowser. 

Also, I tried to ./configure again and it is still giving me the "C compiler cannot create executables" error again. 

I took a look in the config.log file for workrave and I wasn't able to get anything out of it. 

Title: Re: installing workrave on tc
Post by: Juanito on September 10, 2010, 02:22:36 PM
I was able to install libgnomeui.  However, libgnomeuimm and GDome do not appear in the Appbrowser.

I had a look at compiling libgnomeuimm at one point, I'll check if I actually did it - of course nothing stops you from compiling it...

Quote
Also, I tried to ./configure again and it is still giving me the "C compiler cannot create executables" error again. 

To set up to compile in tc you need to load the compiletc meta-extension, which will load everything normally required to compile - gcc on its own will not work.
Title: Re: installing workrave on tc
Post by: nutjob16 on September 10, 2010, 03:20:48 PM
The compiletc package worked, or at least got me farther.  I'm hoping those other packages are optional... 

configure is now telling me that there is no X.  Would that be because xorg isn't installed? 

This seems like its more trouble than its worth.   
Title: Re: installing workrave on tc
Post by: ^thehatsrule^ on September 10, 2010, 05:10:04 PM
Most likely it needs X dev stuff.  You could try xorg-7.5-dev
Title: Re: installing workrave on tc
Post by: Juanito on September 11, 2010, 03:25:41 AM
I had a look at compiling libgnomeuimm at one point, I'll check if I actually did it - of course nothing stops you from compiling it...

I never posted libgnomeuimm - I'll recompile against the latest extension updates and post
Title: Re: installing workrave on tc
Post by: Juanito on September 11, 2010, 06:20:17 AM
libgnomeuimm posted
Title: Re: installing workrave on tc
Post by: Juanito on September 11, 2010, 07:34:54 AM
gdome2 posted
Title: Re: installing workrave on tc
Post by: Juanito on September 11, 2010, 10:55:38 AM
 :o

Code: [Select]
$ ldd `which workrave`
        linux-gate.so.1 =>  (0xb7729000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb765a000)
        libSM.so.6 => /usr/lib/libSM.so.6 (0xb7653000)
        libICE.so.6 => /usr/lib/libICE.so.6 (0xb763f000)
        libpanel-applet-2.so.0 => /usr/local/lib/libpanel-applet-2.so.0 (0xb7633000)
        libbonoboui-2.so.0 => /usr/local/lib/libbonoboui-2.so.0 (0xb75e2000)
        libgnomecanvas-2.so.0 => /usr/local/lib/libgnomecanvas-2.so.0 (0xb75b9000)
        libgnome-2.so.0 => /usr/local/lib/libgnome-2.so.0 (0xb75a7000)
        libpopt.so.0 => /usr/local/lib/libpopt.so.0 (0xb759d000)
        libart_lgpl_2.so.2 => /usr/local/lib/libart_lgpl_2.so.2 (0xb758b000)
        libbonobo-2.so.0 => /usr/local/lib/libbonobo-2.so.0 (0xb753e000)
        libbonobo-activation.so.4 => /usr/local/lib/libbonobo-activation.so.4 (0xb752c000)
        libORBit-2.so.0 => /usr/local/lib/libORBit-2.so.0 (0xb74e3000)
        libXtst.so.6 => /usr/local/lib/libXtst.so.6 (0xb74de000)
        libgconf-2.so.4 => /usr/local/lib/libgconf-2.so.4 (0xb74b9000)
        libgdome.so.0 => /usr/local/lib/libgdome.so.0 (0xb748b000)
        libz.so.1 => /usr/lib/libz.so.1 (0xb747a000)
        libpulse-mainloop-glib.so.0 => /usr/local/lib/libpulse-mainloop-glib.so.0 (0xb7476000)
        libpulse.so.0 => /usr/local/lib/libpulse.so.0 (0xb7444000)
        libdbus-glib-1.so.2 => /usr/local/lib/libdbus-glib-1.so.2 (0xb742b000)
        libdbus-1.so.3 => /usr/local/lib/libdbus-1.so.3 (0xb73fb000)
        libpthread.so.0 => /lib/libpthread.so.0 (0xb73e3000)
        libgstreamer-0.10.so.0 => /usr/local/lib/libgstreamer-0.10.so.0 (0xb733f000)
        libxml2.so.2 => /usr/local/lib/libxml2.so.2 (0xb721f000)
        libX11.so.6 => /usr/lib/libX11.so.6 (0xb711e000)
        libgtkmm-2.4.so.1 => /usr/local/lib/libgtkmm-2.4.so.1 (0xb6dff000)
        libatkmm-1.6.so.1 => /usr/local/lib/libatkmm-1.6.so.1 (0xb6dc1000)
        libgdkmm-2.4.so.1 => /usr/local/lib/libgdkmm-2.4.so.1 (0xb6d7e000)
        libgiomm-2.4.so.1 => /usr/local/lib/libgiomm-2.4.so.1 (0xb6ce9000)
        libpangomm-1.4.so.1 => /usr/local/lib/libpangomm-1.4.so.1 (0xb6cbf000)
        libgtk-x11-2.0.so.0 => /usr/local/lib/libgtk-x11-2.0.so.0 (0xb690a000)
        libglibmm-2.4.so.1 => /usr/local/lib/libglibmm-2.4.so.1 (0xb68bb000)
        libcairomm-1.0.so.1 => /usr/local/lib/libcairomm-1.0.so.1 (0xb6893000)
        libsigc-2.0.so.0 => /usr/local/lib/libsigc-2.0.so.0 (0xb688c000)
        libgdk-x11-2.0.so.0 => /usr/local/lib/libgdk-x11-2.0.so.0 (0xb67fc000)
        libatk-1.0.so.0 => /usr/local/lib/libatk-1.0.so.0 (0xb67e1000)
        libgio-2.0.so.0 => /usr/local/lib/libgio-2.0.so.0 (0xb674b000)
        libpangoft2-1.0.so.0 => /usr/local/lib/libpangoft2-1.0.so.0 (0xb6726000)
        libgdk_pixbuf-2.0.so.0 => /usr/local/lib/libgdk_pixbuf-2.0.so.0 (0xb670e000)
        libpangocairo-1.0.so.0 => /usr/local/lib/libpangocairo-1.0.so.0 (0xb6703000)
        libcairo.so.2 => /usr/local/lib/libcairo.so.2 (0xb6697000)
        libpango-1.0.so.0 => /usr/local/lib/libpango-1.0.so.0 (0xb6656000)
        libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb65f2000)
        libfontconfig.so.1 => /usr/local/lib/libfontconfig.so.1 (0xb65c4000)
        libgobject-2.0.so.0 => /usr/local/lib/libgobject-2.0.so.0 (0xb6588000)
        libgmodule-2.0.so.0 => /usr/local/lib/libgmodule-2.0.so.0 (0xb6583000)
        libgthread-2.0.so.0 => /usr/local/lib/libgthread-2.0.so.0 (0xb657f000)
        librt.so.1 => /lib/librt.so.1 (0xb6576000)
        libglib-2.0.so.0 => /usr/local/lib/libglib-2.0.so.0 (0xb6493000)
        libm.so.6 => /lib/libm.so.6 (0xb646d000)
        libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0xb6456000)
        libc.so.6 => /lib/libc.so.6 (0xb6312000)
        /lib/ld-linux.so.2 (0xb772a000)
        libuuid.so.1 => /lib/libuuid.so.1 (0xb630e000)
        libgailutil.so.18 => /usr/local/lib/libgailutil.so.18 (0xb6307000)
        libXinerama.so.1 => /usr/local/lib/libXinerama.so.1 (0xb6304000)
        libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0xb62fd000)
        libXcursor.so.1 => /usr/lib/libXcursor.so.1 (0xb62f4000)
        libXcomposite.so.1 => /usr/local/lib/libXcomposite.so.1 (0xb62f1000)
        libXext.so.6 => /usr/lib/libXext.so.6 (0xb62e4000)
        libXdamage.so.1 => /usr/local/lib/libXdamage.so.1 (0xb62e1000)
        libXfixes.so.3 => /usr/local/lib/libXfixes.so.3 (0xb62dc000)
        libgnomevfs-2.so.0 => /usr/local/lib/libgnomevfs-2.so.0 (0xb628e000)
        libgnutls.so.26 => /usr/local/lib/libgnutls.so.26 (0xb6217000)
        libtasn1.so.3 => /usr/local/lib/libtasn1.so.3 (0xb620a000)
        libgcrypt.so.11 => /usr/local/lib/libgcrypt.so.11 (0xb6196000)
        libgpg-error.so.0 => /usr/local/lib/libgpg-error.so.0 (0xb6192000)
        libavahi-glib.so.1 => /usr/local/lib/libavahi-glib.so.1 (0xb618e000)
        libavahi-client.so.3 => /usr/local/lib/libavahi-client.so.3 (0xb6181000)
        libavahi-common.so.3 => /usr/local/lib/libavahi-common.so.3 (0xb6177000)
        libssp.so.0 => /usr/local/lib/libssp.so.0 (0xb6174000)
        libutil.so.1 => /lib/libutil.so.1 (0xb6170000)
        libesd.so.0 => /usr/local/lib/libesd.so.0 (0xb6166000)
        libasound.so.2 => /usr/local/lib/libasound.so.2 (0xb60c8000)
        libaudiofile.so.0 => /usr/local/lib/libaudiofile.so.0 (0xb60a7000)
        libresolv.so.2 => /lib/libresolv.so.2 (0xb6092000)
        libpixman-1.so.0 => /usr/local/lib/libpixman-1.so.0 (0xb6033000)
        libpng12.so.0 => /usr/lib/libpng12.so.0 (0xb6015000)
        libXrender.so.1 => /usr/lib/libXrender.so.1 (0xb600d000)
        libexpat.so.1 => /usr/local/lib/libexpat.so.1 (0xb5fed000)
        libORBitCosNaming-2.so.0 => /usr/local/lib/libORBitCosNaming-2.so.0 (0xb5fe9000)
        libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb5fe4000)
        libdl.so.2 => /lib/libdl.so.2 (0xb5fe0000)
        libXau.so.6 => /usr/lib/libXau.so.6 (0xb5fdc000)
        libXi.so.6 => /usr/lib/libXi.so.6 (0xb5fd0000)
        libpulsecommon-UNKNOWN.UNKNOWN.UNKNOWN.so => /usr/local/lib/libpulsecommon-UNKNOWN.UNKNOWN.UNKNOWN.so (0xb5f8f000)
        libiconv.so.2 => /usr/local/lib/libiconv.so.2 (0xb5eb6000)
        libsndfile.so.1 => /usr/local/lib/libsndfile.so.1 (0xb5e5f000)
        libFLAC.so.8 => /usr/local/lib/libFLAC.so.8 (0xb5e23000)
        libvorbisenc.so.2 => /usr/local/lib/libvorbisenc.so.2 (0xb5d33000)
        libvorbis.so.0 => /usr/local/lib/libvorbis.so.0 (0xb5d0f000)
        libogg.so.0 => /usr/local/lib/libogg.so.0 (0xb5d0a000)
        libgdbm.so.3 => /usr/local/lib/libgdbm.so.3 (0xb5d05000)
Title: Re: installing workrave on tc
Post by: curaga on September 11, 2010, 05:01:49 PM
All that for a popup? *cough*
Title: Re: installing workrave on tc
Post by: Juanito on September 12, 2010, 02:02:20 AM
So .. just to finish this up, the python markdown and cheetah modules are required to finish compiling workrave.

..and then, it will only run with full x (i.e. Xorg-7.5) and even then it needs the record module (which I borrowed from debian for testing purposes) and the record module in turn requires libaudit.

..it did work, but I don't think it would work well in your 128MB of ram  :)
Title: Re: installing workrave on tc
Post by: curaga on September 12, 2010, 04:07:54 AM
~/.X.d/breaks

while [ 1 ]; do sleep 1h; popup 'Take a break!'; done
Title: Re: installing workrave on tc
Post by: tinypoodle on September 13, 2010, 04:16:17 AM
#This program is free software; you can redistribute it and/or modify it under the terms of the WTFPL
~/.X.d/breaks

while [ 1 ]; do sleep 1h; popup "Take a break!"; done

May this be redistributed under the name workrave-ultralight?

Keep It Simple, Stupid!

 ;D

Title: Re: installing workrave on tc
Post by: curaga on September 13, 2010, 08:37:10 AM
That script is officially under WTFPL. Also needed single quotes ;)
Title: Re: installing workrave on tc
Post by: tinypoodle on September 13, 2010, 08:49:01 AM
Apologies. Attempted to fix by editing post.