![]() |
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 |
Re: Cant find Ruby GTK anywhere?
Doesnt matter - I compiled them myself now...
|
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. |
Re: Cant find Ruby GTK anywhere?
This thread is relative to my interests.
I love Ruby. |
Re: Cant find Ruby GTK anywhere?
If anyone is interested, I will gladly publish my successful builds of Ruby GTK and Ruby Gnome 2?
|
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.
|
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 :)
|
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 ********... |
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? |
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 :-) |
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!
|
Re: Cant find Ruby GTK anywhere?
I am absolutely interested :)
|
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! |
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 |
Re: Cant find Ruby GTK anywhere?
Quote:
Quote:
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. |
Re: Cant find Ruby GTK anywhere?
Quote:
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. |
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.
|
Re: Cant find Ruby GTK anywhere?
Quote:
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. |
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. |
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 |
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 |
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. |
Re: Cant find Ruby GTK anywhere?
Quote:
Quote:
|
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. |
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 |
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 |
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 |
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.. |
Re: Cant find Ruby GTK anywhere?
Quote:
|
Re: Cant find Ruby GTK anywhere?
Quote:
|
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 |
Re: Cant find Ruby GTK anywhere?
Quote:
then continue to use gem as you've become accustom |
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?
|
Re: Cant find Ruby GTK anywhere?
Quote:
|
Re: Cant find Ruby GTK anywhere?
thanks for the reply.
Quote:
when I run /usr/bin/gem I still get the message "-sh: gem: not found" Any other ideas? Cheers, Fabian |
Re: Cant find Ruby GTK anywhere?
Quote:
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. |
Re: Cant find Ruby GTK anywhere?
Quote:
Code:
./gem 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. |
Re: Cant find Ruby GTK anywhere?
Quote:
Quote:
Cheers, F. |
Re: Cant find Ruby GTK anywhere?
Quote:
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 If not - you can do try to install it again: Code:
apt-get install ruby ruby-gems |
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