Author Topic: Ruby Install?  (Read 2640 times)

lareya

  • Full Member
  • ***
  • Posts: 150
    • View Profile
    • http://
Ruby Install?
« on: January 28, 2005, 03:45:18 pm »
Hi,
I found the ruby install on the cacko feed. but I wonder is there more to it than that? i was using VisiScript w/ this newbie book ruby tutorial and it wasn't running the examples.  I began to wonder if possibly I need to dynamically link something or config some files?  

ruby 1.8.0-1 ipk  installed on my SD card

oh yeah, when i goto Qkonsole and do:
ruby -v  
I get this:
ruby 1.8.0 (2003-08-04) [arn-linux]

So, I think i did install it, maybe it is me not knowing how to use VisiScript. I do have it checked for Ruby.
I guess I will play around with it more.  

Lareya
« Last Edit: January 28, 2005, 04:42:05 pm by lareya »
SL-C3000: un-bricked (Thanks to Cresho!)
C-860: pdxRom

lareya

  • Full Member
  • ***
  • Posts: 150
    • View Profile
    • http://
Ruby Install?
« Reply #1 on: January 31, 2005, 07:13:00 pm »
Okay, how about VisiScript howto?

What do I need to do to get ruby going on this? as you can see from my last post, I do have ruby running in konsole. so It is loaded correctly.  I also have gone into VisiScript and checked for language - Ruby.  But when I try to input:

print "hello world"  

I don't get the result in the bottom screen.

Now when I print in Konsole

ruby -e 'print "hello world"  i get    hello world

so i try this in visicript
ruby -e 'print "hello world"

but still nothing  

What am I doing wrong?

Thanks

Lareya
SL-C3000: un-bricked (Thanks to Cresho!)
C-860: pdxRom

mars

  • Full Member
  • ***
  • Posts: 145
    • View Profile
Ruby Install?
« Reply #2 on: February 25, 2005, 03:32:34 pm »
You've probably already figured it out, but .  .  .

visiscript is a text editor that runs scripts. Visiscript takes care of calling ruby for you. So if you just put in visiscript: print "Hello World" or puts "Hello World" it should work when the script is run.

BTW, visiscript was taking a couple of minutes to start for me under Cacko. But if you install debian/Xqt you can not only get the latest version of ruby but also install SciTE which is the editor that ruby comes with on Windows. Visiscript is kind of a stripped down version of SciTE anyway.
C-3100 (reaquainting myself with Cacko) / Nokia 810 / Nokia N800 / Asus eeePC
Previously owned: SL-5500 / SL-5600 / SL-6000L / C-860 / Nokia 770 / Pepperpad 3

lareya

  • Full Member
  • ***
  • Posts: 150
    • View Profile
    • http://
Ruby Install?
« Reply #3 on: February 25, 2005, 03:51:04 pm »
Thanks for your reply regarding visiscript.  I have thought about debian/Xqt  for a while, but I think I am still too much of a newbie to do that.  I have looked at the howto's and it looks rather complicated still.  Running the latest Ruby and the SciTE editor sure is tempting tho -

Lareya
SL-C3000: un-bricked (Thanks to Cresho!)
C-860: pdxRom