maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Cant find Ruby GTK anywhere? (https://talk.maemo.org/showthread.php?t=39797)

kaspernj 2010-01-08 22:42

Cant find Ruby GTK anywhere?
 
Hi.

I was very happy to find Ruby-packages in the extras-devel-repository. But why is there no GTK-packages for it?

Is there another repository, I should configure in order to get the GTK-packages?


UPDATE

I compiled everything myself and set up a repository for this.

Name: kaspernj.org
Webaddress: http://maemorepo.kaspernj.org
Distribution: fremantle
Components: main

apt-get install ruby ruby-gnome2-all ruby-sqlite3

kaspernj 2010-01-09 00:52

Re: Cant find Ruby GTK anywhere?
 
Doesnt matter - I compiled them myself now...

wmarone 2010-01-09 05:44

Re: Cant find Ruby GTK anywhere?
 
Yeah, RubyGTK isn't in the repos yet. I've been trying to get the Ruby Hildon bindings to build, but haven't had luck.

I did build ruby-glade, and was able to get a simple ruby powered GUI going on my N900 though.

fatalsaint 2010-01-09 06:54

Re: Cant find Ruby GTK anywhere?
 
This thread is relative to my interests.

I love Ruby.

kaspernj 2010-01-09 11:31

Re: Cant find Ruby GTK anywhere?
 
If anyone is interested, I will gladly publish my successful builds of Ruby GTK and Ruby Gnome 2?

fatalsaint 2010-01-09 19:04

Re: Cant find Ruby GTK anywhere?
 
If you can make optified deb packages I say get them into extras-devel and start the process. Never is a bad thing to have more packages... and there has to be more than us 3 that use ruby.

knewter 2010-01-09 19:51

Re: Cant find Ruby GTK anywhere?
 
I am absolutely interested. I'd love to write apps for the phone with Ruby. I run a software company, nothing but ruby devs :)

kaspernj 2010-01-09 22:24

Re: Cant find Ruby GTK anywhere?
 
Okay. I think I will compiled the whole thing myself and publish it. As I can see, not much of the current Ruby-packages are "optified".

Why the hell didnt they make the root partiton bigger anyway? This optifi thing is ********...

kaspernj 2010-01-10 17:44

Re: Cant find Ruby GTK anywhere?
 
Just wanted to give everyone an update, if some of you are following this...

I have successfully compiled and optified some Ruby-packages. Until now:

ruby (tested)
ruby-gems (tested)
ruby-rake
ruby-gnome2-all (tested)
ruby-sqlite3 (tested)
ruby-net-ssh2 (tested)
ruby-gettext (tested)

I am trying to package but haven't been able to:
ruby-revolution
ruby-hildon

Does any of you have any wishes for additional packages, you would like me to package as well?

kaspernj 2010-01-12 13:29

Re: Cant find Ruby GTK anywhere?
 
Just ran my first successful application with my packages on my N900!

I used SQLite3, Gtk2, GtkBuilder and gettext. Everything worked perfectly.

I will soon publish the packages :-)

knewter 2010-01-12 21:19

Re: Cant find Ruby GTK anywhere?
 
Awesome news. I'm looking forward to it like you wouldn't believe. I'm actually on vacation this week and was hoping to get some ruby-gtk hacking going on the phone, so I'm curious how long you think it might be :) Thanks!

ironoxid 2010-01-12 23:10

Re: Cant find Ruby GTK anywhere?
 
I am absolutely interested :)

kaspernj 2010-01-13 10:02

Re: Cant find Ruby GTK anywhere?
 
Hi all.

I just finished setting up the repository for my Ruby-packages (I will try to upload them to the testing-devel repositories at a later time, when the packages are tested a bit more).

Create a new catalog on your phone and type in the following:
Name: kaspernj.org
Webaddress: http://maemorepo.kaspernj.org
Distribution: fremantle
Components: main

SSH to your phone, do a "apt-get update" and then "apt-cache search ruby".

To install Ruby with GTK and SQLite3:
apt-get install ruby ruby-gnome2-all ruby-sqlite3

Everything should now work as usual, when you are working with Ruby on your normal computer.

I would really appreciate, if you could give me some feedback. Bugs, extensions you want or whatever.

Happy hacking!

ironoxid 2010-01-13 23:53

Re: Cant find Ruby GTK anywhere?
 
Ty!!!
I'll try it on weekend! Yesterday I compiled ruby-gnome2-all and it works well. But, what about ruby-hildon? It exists?
Has anyone tried this before?
http://site.realitybites.eu/download/ruby-hildon-src

wmarone 2010-01-14 00:17

Re: Cant find Ruby GTK anywhere?
 
Quote:

Originally Posted by kaspernj (Post 461702)
Okay. I think I will compiled the whole thing myself and publish it. As I can see, not much of the current Ruby-packages are "optified".

They aren't, and desperately need to be.

Quote:

Why the hell didnt they make the root partiton bigger anyway? This optifi thing is ********...
Physical limitation. The fast NAND chip the OS is stored on is only 256MB in size, and bigger ones didn't appear until well after they started designing the N900.

Kaspernj how did you get ruby-hildon to build (also, where did you source it from?) And if you could, include ruby-glade as it makes designing at least a plain GTK gui very, very easy.

ironoxid 2010-01-14 00:29

Re: Cant find Ruby GTK anywhere?
 
Quote:

Originally Posted by wmarone (Post 469450)
Physical limitation. The fast NAND chip

Is this chip so fast (yes I've read /opt_problem)? But there's a real difference about common non-intensive applications?
I've ruby on rails installed so I moved and symlinked /usr/lib/ruby to /home/opt/ruby and it works well, not as server of course :D

About ruby-hildon there is a link (not tested by me) in my previous post.

knewter 2010-01-14 00:57

Re: Cant find Ruby GTK anywhere?
 
I'm installing these packages as we speak! And yeah, i'll probably try to make ruby-hildon behave, if it's functional. Thanks much. I'd put my vote in for ruby-glade as well, but I'm thrilled to have this for free. You rule.

wmarone 2010-01-14 01:15

Re: Cant find Ruby GTK anywhere?
 
Quote:

Originally Posted by ironoxid (Post 469463)
Is this chip so fast (yes I've read /opt_problem)? But there's a real difference about common non-intensive applications?
I've ruby on rails installed so I moved and symlinked /usr/lib/ruby to /home/opt/ruby and it works well, not as server of course :D

The chip is quite fast, as it is attached directly on top of the CPU and has a much faster interconnect. Applications that are part of the core OS and data stored on the root partition will be read significantly faster. The caveat to this is the chip is very low capacity.

By contrast, the 32GB eMMC gets about 14MB/s and my microSD card gets about 6MB/s. High capacity, but comparatively low speed.

Knewter: best of luck getting ruby-hildon to behave, I couldn't work out what the Makefile was trying to do. It looked like it belonged in some other suite or something.

kaspernj 2010-01-14 10:12

Re: Cant find Ruby GTK anywhere?
 
wmarone, why not use GtkBuilder to design GUI? Isnt Glade deprecated? I dont think it is being developed any more anymore... I actually thought that Glade was already in my packages, but I will look into it after lunch today.

GtkBuilder works very well. I will post an example after lunch as well, so you can see how to get started.

I have NOT been able to compile ruby-hildon... Sadly. But I will also give that another try, when I get the time. I havent been able to compile Revolution either, which we need to get access to the contacts, the calendar and so on. It looks like the evolution-libs used by Maemo are just too old for Revolution.


Right now I am also working on packaging PHP and PHP-GTK for all the PHP-devs who would like to write some code for the phone. I have been able to compile PHP with all the libs except ODBC and IMAP until now.

kaspernj 2010-01-14 13:08

Re: Cant find Ruby GTK anywhere?
 
Here is a GtkBuilder-example, which works with my build (GtkBuilder is almost like Glade).

class MyWindow
def initialize
@gui = Gtk::Builder.new
@gui.add_from_file("gui/win_main.ui")
@gui.connect_signals(){|handler|method(handler)}

@window = @gui.get_object("window")
@window.show
end

def on_window_destroy
Gtk::main_quit
end
end

kaspernj 2010-01-14 16:07

Re: Cant find Ruby GTK anywhere?
 
I should really write this in a seperate PHP-post, but here it goes:

I just added the following packages to the repository:
php53 (tested)
php53-gtk2 (tested)
php53-mysql
php53-sqlite
php53-gd
php53-mbstring
php53-xml
php53-dev

After installing php53 and php53-gtk2, you can run PHP-scripts like this:
phpgtk myscript.php

Or without Gtk-support:
php myscript.php

kaspernj 2010-01-14 19:54

Re: Cant find Ruby GTK anywhere?
 
By taking some old ruby-hildon packages and mixing some .so's together I actually included the hildon-package successfully.

Do any of you know, where I can find some documentation on how to use Ruby Hildon in order to test it?

If the tests goes well I will of course publish the ruby-hildon package as well.

I also packaged ruby-libruby today, if any of you needs those files. All optified of course.

wmarone 2010-01-14 19:59

Re: Cant find Ruby GTK anywhere?
 
Quote:

Originally Posted by kaspernj (Post 471945)
By taking some old ruby-hildon packages and mixing some .so's together I actually included the hildon-package successfully.

Excellent

Quote:

I also packaged ruby-libruby today, if any of you needs those files. All optified of course.
Hero! When I am home this evening I will remove my Ruby packages and pull yours down.

kaspernj 2010-01-14 20:07

Re: Cant find Ruby GTK anywhere?
 
Anyway - to the guys complaining about the missing glade-package. Glade should be included in the "ruby-gnome2-all"-package.

At least these lines work on my N900:
require "gtk2"
require "libglade2"

Please write me back if Glade does not work on your phones, then I will look further into it...


I have also included "ruby-mysql" and "ruby-postgres" in the repository.

fry 2010-01-16 10:35

Re: Cant find Ruby GTK anywhere?
 
great, thanks a lot for your work!

I've also installed ruby-gems, but when I run the gem command it only gives out:

-sh: gem: not found

I have previously installed gems from source which ran ok (but not optified) and wanted to try your version to have something optified.

Cheers,
Fabian

kaspernj 2010-01-16 16:36

Re: Cant find Ruby GTK anywhere?
 
Hi fry.

I have not been able to re-produce your problem. Have you tried removing the package and then installing it again?

Are you trying as root or your nomal user? (type "whoami" to find out)

What is the output of:
ls -l /usr/bin | grep gem

What is the output of:
ls -l /opt/ruby/bin

fry 2010-01-17 07:00

Re: Cant find Ruby GTK anywhere?
 
thanks for the quick reply. I've tried it both as root and normal user, same result.

Here the other outputs:
~ # ls -l /usr/bin | grep gem
lrwxrwxrwx 1 1000 1000 17 Jan 17 17:53 gem -> /opt/ruby/bin/gem

~ # ls -l /opt/ruby/bin
-rwxr-xr-x 1 1000 1000 547 Jan 11 02:27 gem

I've now uninstalled the ruby-gems package and installed ruby-gems from rubyforge, this works fine.

Not sure if it's my system or the package.

Cheers,

Fabian

edgedemon 2010-01-17 09:12

Re: Cant find Ruby GTK anywhere?
 
Im getting a '404 Not Found' for the kaspernj repo.
Anyone else getting the same

EIDT
Im also getting it for the maemo.org repo as well...

Might be something to do with the server move, so I will try again later and see how I get on..

Alan_Peery 2010-01-17 22:21

Re: Cant find Ruby GTK anywhere?
 
Quote:

Originally Posted by edgedemon (Post 477687)
Im getting a '404 Not Found' for the kaspernj repo.
Anyone else getting the same
.

I am also having problems with his repository. In sharing it with the entire Maemo communitty on a day when the normal repositories have been out of commission, he may have had enough traffic that he's gone over his traffic limit at his hosting service. (A theory only, no proof...)

wmarone 2010-01-17 22:23

Re: Cant find Ruby GTK anywhere?
 
Quote:

Originally Posted by Alan_Peery (Post 478762)
I am also having problems with his repository. In sharing it with the entire Maemo communitty on a day when the normal repositories have been out of commission, he may have had enough traffic that he's gone over his traffic limit at his hosting service. (A theory only, no proof...)

None of the packages he's hosting are in the primary repos yet.

kaspernj 2010-01-18 09:15

Re: Cant find Ruby GTK anywhere?
 
Hi all.

My repository has not been down. And it is still up.

If you cant reach it - try to enter this address into your URL in your browser:
http://maemorepo.kaspernj.org

You should be redirected to this thread, if you reach it. If you cant reach it, try to do a:

"dig maemorepo.kaspernj.org"

...and give me the output.

On Windows you can do a ping instead:

ping maemorepo.kaspernj.org

cweedon@yahoo.com 2010-01-20 13:37

Re: Cant find Ruby GTK anywhere?
 
Quote:

Originally Posted by fry (Post 475892)
great, thanks a lot for your work!

I've also installed ruby-gems, but when I run the gem command it only gives out:

-sh: gem: not found

I have previously installed gems from source which ran ok (but not optified) and wanted to try your version to have something optified.

Cheers,
Fabian

gem1.8 i know... it threw me for a loop too but you can ln-s /usr/bin/gem1.8 /usr/bin/gem
then continue to use gem as you've become accustom

cardiff-blues 2010-01-20 18:19

Re: Cant find Ruby GTK anywhere?
 
Ok, I am having a go at this now and running these commands in xterm. (Feel like bit of a hacker). I think everything has installed ok. How do I test or use this now for iplayer?

gohan2091 2010-01-22 17:33

Re: Cant find Ruby GTK anywhere?
 
Quote:

Originally Posted by kaspernj (Post 479446)
Hi all.

My repository has not been down. And it is still up.

If you cant reach it - try to enter this address into your URL in your browser:
http://maemorepo.kaspernj.org

You should be redirected to this thread, if you reach it. If you cant reach it, try to do a:

"dig maemorepo.kaspernj.org"

...and give me the output.

On Windows you can do a ping instead:

ping maemorepo.kaspernj.org

Trying this for iPlayer and can't get pass the first step... where do I download the repository as I don't see a download link, only http://maemorepo.kaspernj.org which loops me back to this thread...

fry 2010-01-24 10:39

Re: Cant find Ruby GTK anywhere?
 
thanks for the reply.

Quote:

Originally Posted by cweedon@yahoo.com (Post 484183)
gem1.8 i know... it threw me for a loop too but you can ln-s /usr/bin/gem1.8 /usr/bin/gem
then continue to use gem as you've become accustom

that didn't help, /usr/bin/gem is already there, it's symlinked to /home/opt/ruby/bin/gem .

when I run /usr/bin/gem I still get the message "-sh: gem: not found"

Any other ideas?
Cheers,
Fabian

kaspernj 2010-01-24 19:26

Re: Cant find Ruby GTK anywhere?
 
Quote:

Originally Posted by gohan2091 (Post 489043)
Trying this for iPlayer and can't get pass the first step... where do I download the repository as I don't see a download link, only http://maemorepo.kaspernj.org which loops me back to this thread...

Yes - if you try accessing the repository by a HTTP-browser, then you will be redirected to this thread. Since I placed the instructions for setting up the repository in this thread, this is where you will be redirected.

Chances are that if you dont even know how to set up the repository, you shouldnt be playing with all the command-line-stuff, since that may also be a bit hard for you.

There is no "download link" for the applications - you will have to set up a new repository in your applications-manager as described multiple places in this and other threads, and then use apt-get to install them.

Anyways - keep the iPlayer-messages in the iPlayer-thread - this thread has little to do with iPlayer.

kaspernj 2010-01-24 19:29

Re: Cant find Ruby GTK anywhere?
 
Quote:

Originally Posted by fry (Post 491650)
that didn't help, /usr/bin/gem is already there, it's symlinked to /home/opt/ruby/bin/gem .

when I run /usr/bin/gem I still get the message "-sh: gem: not found"

Any other ideas?
Cheers,
Fabian

What happens if you go to "/opt/ruby/bin" and executes the following command:

Code:

./gem
Based on what you have written, it looks like the package have sat everything up as it should have.

If you have a "gem1.8" - you are properly using the Ruby-packages from the devel-repository. I do not support anything from these packages sorry - they arent even optified or contain Gtk.

fry 2010-01-25 00:18

Re: Cant find Ruby GTK anywhere?
 
Quote:

Originally Posted by kaspernj (Post 492318)
What happens if you go to "/opt/ruby/bin" and executes the following command:

Code:

./gem

the same message: -sh: ./gem: not found

Quote:

If you have a "gem1.8" - you are properly using the Ruby-packages from the devel-repository. I do not support anything from these packages sorry - they arent even optified or contain Gtk.
gem1.8 has not been there and I've manually deleted all gem stuff from before. The repository source is a good hint. Is there a way to determine from which repo a file comes?

Cheers,
F.

kaspernj 2010-01-25 08:08

Re: Cant find Ruby GTK anywhere?
 
Quote:

Originally Posted by fry (Post 492759)
the same message: -sh: ./gem: not found

gem1.8 has not been there and I've manually deleted all gem stuff from before. The repository source is a good hint. Is there a way to determine from which repo a file comes?

Cheers,
F.

If you have manually removed some stuff, that could mean that you have f**ked up your packages.

Have you configured the extras-devel repository? If so - remove it.

Then do a:
Code:

apt-get remove --purge ruby ruby1.8 libruby1.8 iplayer-dl
apt-get clean
apt-get update
apt-cache search ruby

If you still find ruby1.8 - then you still have the extras-devel enabled.

If not - you can do try to install it again:
Code:

apt-get install ruby ruby-gems

kaspernj 2010-01-27 13:02

Re: Cant find Ruby GTK anywhere?
 
I have found several problems regarding networking with TCP in the version of Ruby, which I had in my repository. I replaced it with a working version some days ago.

I have also given my version of Ruby a higher version-number, which makes it replace the version in the extras-devel.


All times are GMT. The time now is 13:32.

vBulletin® Version 3.8.8