ruby on rails on nokia N900
Yes, we can! ruby on rails works well on nokia n900.
Install ruby from maemo repository (dev).
Download and install rubygems (use –no-rdoc and –no-ri).
Rubygems creates only /usr/bin/gem1.8 so you should create a soft link like this: ln -s /usr/bin/gem1.8 /usr/bin/gem
Type gem install rails -V and wait.
Now you are ready to start your rails app on nokia n900!
Just run ruby script/server in your project folder. To create a project folder use rails my_app as usual.
Your server may not start if you miss libopenssl-ruby. In this case you get an error about net/https: apt-get install libopenssl-ruby.
Unfortunately Rails works but gets no database connection and thus is quite useless. Sqlite3-ruby or mysql cannot be installed.
Cheers
Michael
Hi Michael! You can compile sqlite3 with nokia n900 dev environment without problem or you can search about it on maemo talk where another guy posted a link to his personal repository with sqlite3-ruby 😉 happy hacking!
I’m wondering is it “optified”… where does Ruby installs it’s packages… to the system partition (what would take away precious space) or /opt “partition”?
Hi Tomasz! I dont know if _all_ ruby packages are optified. I think that official repo can only include optified packages but for other packages maybe… at the moment I have only packages from official repository so i cant incestigate about that. what I can say at the moment is, after my personal experience, that you have to make attention about rubygems. it’s required (or not?) to run rails and every gem talks about mb and mb… and mb… and mb
I dont remeber very well but you can install gems on another path and you also have to skip rdoc documentation generation. happy hacking!
http://talk.maemo.org/showthread.php?p=590398
this link brings you to maemo talk forum’s post where you can find info about precompiled ruby libs for n900 like ruby-mysql, ruby-sqlite3 and more! Enjoy! 🙂
Thanks so much. I’ve been searching to find if the N900 had this capability. I no longer have excuses for not buying!
Hi, I have not managed to Install rails, I used the repo from http://maemorepo.kaspernj.org, I installed rubygems 1.8.10 from http://rubyforge.org/frs/?group_id=126 also I installed makefrom sdk repo an TCC, but I keep getting ow-crypt.h:18: ‘,’ expected make: *** [wrapper.o] Error 1 what I am doing wrong? what else do I need, do I have to use ruby-gems from kspernj repo? If I do that then I can’t install libopenssl-ruby, thanks for your post and I hope you can help me 🙂