OESF Portables Forum

Everything Else => General Support and Discussion => Zaurus General Forums => Archived Forums => Software => Topic started by: lareya on January 28, 2005, 03:45:18 pm

Title: Ruby Install?
Post by: lareya 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 (http://www.math.umd.edu/~dcarrera/ruby/0.3/) 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
Title: Ruby Install?
Post by: lareya 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
Title: Ruby Install?
Post by: mars 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.
Title: Ruby Install?
Post by: lareya 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