maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   OS2007 / Maemo 3 / Bora (https://talk.maemo.org/forumdisplay.php?f=23)
-   -   Trouble installing Ruby (https://talk.maemo.org/showthread.php?t=5442)

Nathan Turnage 2007-03-23 04:14

Trouble installing Ruby
 
I am trying to install Ruby on the n800, but I am in dependency-hell. I added the repo listed on the 2006Wip, but the package is requiring libgdbm and libreadline4. Libreadline5 is installed, but Ruby still requires v4. Does anyone know where I can get these libs?

~Nate

Nathan Turnage 2007-03-23 23:25

Re: Trouble installing Ruby
 
So nobody knows where I can find libgdbm then?

bakerbaker 2007-04-19 05:30

Re: Trouble installing Ruby
 
whoa, you can actually program ruby on the n800....now that is cool.

SeRi@lDiE 2007-04-19 05:41

Re: Trouble installing Ruby
 
Here is the port for Ruby to run in the N800.

http://www.erratasec.com/ruby_1.8.4_armel.deb

bakerbaker 2007-04-19 14:08

Re: Trouble installing Ruby
 
now this would be crazy....wouold it be possible to run mysql, rails, and webbrick?

Nathan Turnage 2007-04-19 19:03

Re: Trouble installing Ruby
 
Irb works, but I haven't been able to get gems installed. I keep getting an out of memory error. Strange because the internal memory is less than half full and I have the entire mini SD card (included in package) for swap. So long story short, no gems (rails, nitro, etc.).

You could conceivably use SQLite and nginx (sp?) to serve rails apps... if gems worked.

~Nate

Nathan Turnage 2007-04-19 19:04

Re: Trouble installing Ruby
 
FYI, there is a Google SoC project to build Ruby bindings for Maemo. Then Pythonistas won't be the only ones writing apps for Maemo. :^)

bakerbaker 2007-05-14 13:57

Re: Trouble installing Ruby
 
http://flickr.com/photos/kwe/484269853/

check it out

Nathan Turnage 2007-05-14 14:13

Re: Trouble installing Ruby
 
You realize that you have now obligated yourself to the task of writing up a tutorial, don't you? Are you using nginx? Which version of SQLite? Seriously, you have to tell us how you got all this working together.

bakerbaker 2007-05-14 15:31

Re: Trouble installing Ruby
 
hi nathan.

thats not my account, im currently working on getting rails installed. i think the author of the flickr account said he is using webbrick.

ive gotten ruby, ruby gems, and sqlite installed. all you have to do is go to http://pierre.droids-corp.org/maemo/gems/ and click the links and they install. however, i am running into a problem installing rails. getting a mysterious segmentation fault on yaml.rb:133. been googleing around and it could be a user access problem, however, it seems i am still getting it.

i am posting my progress on my blog at railsgrunt.com

if you find out, please let me know. thanks!

KNK 2007-05-15 17:53

Re: Trouble installing Ruby
 
Wow this would be great to have. I have been coding Rails lately and I am actually using N800 as a beefed up eBook reader :P got all my Ruby/Rails books on the N800. So developing Rails on it would be even better!

Nathan Turnage 2007-05-15 18:04

Re: Trouble installing Ruby
 
Quote:

got all my Ruby/Rails books on the N800
I have bought most of mine as PDFs from Oreilly and PragProg, too. I love reading about feature X and then hopping right over to irb to try it out... while I am in the back yard with my dogs. Now we can hack on Rails. I love it. :D

bakerbaker 2007-05-15 18:51

Re: Trouble installing Ruby
 
well guys get to work and find out how to get rails + webbrick up and running!

still stuck here, i opened the yaml file to see any fishy whitespaces but no luck. i also ssh'd into the n800 and tried gen install rails via root, but the device crashes.

djasmith 2007-06-10 00:32

Re: Trouble installing Ruby
 
Greetings

I kinda like the idea of dabbling with some RoR on my N800 so I downloaded ruby, gems and sqlite and installed them.

I then started the process of updating gems using gem update --system via ssh on the n800 and it starts does a little beginning bulk update and then crashes and restarts my device?

I tried running the update from my mac via ssh and get the same results?

Anyone else experiencing this sort of issue?

thanks in advance

Dave

garethr 2007-07-15 17:22

Re: Trouble installing Ruby
 
Hi All

I'd run into the same problem described here and managed to find a workaround. The problem, I think, is with Gem trying to download either the list of available packages or the gems themselves. If you do this step and then install the gems locally everything works fine. I've written it up, along with a couple of other points on my blog:

http://morethanseven.net/posts/ruby-...on-nokia-n800/

ifallacy 2007-07-17 16:41

Re: Trouble installing Ruby
 
for the gem installation, don't use the --update flag, just do it manually

go to:
http://pierre.droids-corp.org/maemo/gems/

and download all your gems, then run:

gem install activesupport-1.4.1.gem --no-rdoc --no-ri && gem install activerecord-1.15.2.gem --no-rdoc --no-ri && gem install actionpack-1.13.2.gem --no-rdoc --no-ri && gem install actionmailer-1.3.2.gem --no-rdoc --no-ri && gem install actionwebservice-1.2.2.gem --no-rdoc --no-ri && gem install rake-0.7.1.gem --no-rdoc --no-ri && gem install rails-1.2.2.gem --no-rdoc --no-ri

^that all should be in one line, just copy paste to xterm or ssh and run it in the directory that you saved your gems to - basically it will install the gems just without the documentation (which you probably don't read anyways)

that's what i did to install ruby on rails and i got several apps working (namely, tracks)

EDIT: more tutorials:
http://www.digitalknk.com/2007/05/27...ur-nokia-n800/

jags 2008-02-13 16:33

Re: Trouble installing Ruby
 
hey guys u can install ruby 1.8.6 on maemo os 2008 from

http://www.elkins.org/packages/binary/
*ruby-1.8.6.deb - Ruby programing language

i installed it in red pill mode and it got installed perfectly
with no errors
ruby -v works perfectly also i was able to compile code
but the irb is not working
the irb file is installed in
/usr/bin
it was pointing to /usr/local/bin/ruby
i modified it to point to /usr/bin/ruby(as on maemo)
saved it and set the file permissions to 777

but now when i execute irb command
i get this error

Nokia-N800-50-2:~# irb
/usr/bin/irb:10:in `require': no such file to load -- irb (LoadError)
from /usr/bin/irb:10
also tried from the installed directory
Nokia-N800-50-2:~# cd /usr/bin/
Nokia-N800-50-2:/usr/bin# irb
/usr/bin/irb:10:in `require': no such file to load -- irb (LoadError)
from /usr/bin/irb:10
Nokia-N800-50-2:/usr/bin#


can anyboby take this further

jags


All times are GMT. The time now is 09:51.

vBulletin® Version 3.8.8