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)

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