[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Building Ruby 1.8.5 interpreter for Windows

Yasemin Afacan

10/18/2006 1:30:00 PM

I am a new commer to this site and I am learning Ruby for my Ph.D.
thesis to write a plug-in for SketchUp. Since I am architect, I am
unfamiliar with software terminology.

I have also problems with Ruby Interpreter, I have downloaded Ruby
http://www.ruby-lang.org/en/... from Ruby 1.8.5 One-Click
Installer
And now how is possible to get the Interpreter What should I do? Can you
help me?
How can I manage with those some simple hacks???

Yas

--
Posted via http://www.ruby-....

4 Answers

Bira

10/18/2006 2:07:00 PM

0

On 10/18/06, Yasemin Afacan <yasemine@bilkent.edu.tr> wrote:
> I am a new commer to this site and I am learning Ruby for my Ph.D.
> thesis to write a plug-in for SketchUp. Since I am architect, I am
> unfamiliar with software terminology.
>
> I have also problems with Ruby Interpreter, I have downloaded Ruby
> http://www.ruby-lang.org/en/... from Ruby 1.8.5 One-Click
> Installer
> And now how is possible to get the Interpreter What should I do? Can you
> help me?
> How can I manage with those some simple hacks???

After executing the One-Click Installer, you should be able to type
"irb" in a Command Prompt and get something like this:

irb(main):001:0>

If you do, you have installed Ruby correctly. You can type Ruby code
directly in the irb prompt, and it will run. You can also type your
code in a text editor, save the file with a ".rb" extension and, again
in a Command Prompt window, type the following:

ruby <the name of the file you saved>

This will call the interpreter, and it will run the code inside your file.

--
Bira
http://compexplicita.bl...
http://sinfoniaferida.bl...

David Roberts

10/18/2006 2:09:00 PM

0

Yasemin Afacan wrote:
> I am a new commer to this site and I am learning Ruby for my Ph.D.
> thesis to write a plug-in for SketchUp. Since I am architect, I am
> unfamiliar with software terminology.
>
> I have also problems with Ruby Interpreter, I have downloaded Ruby
> http://www.ruby-lang.org/en/... from Ruby 1.8.5 One-Click
> Installer
> And now how is possible to get the Interpreter What should I do? Can you
> help me?
> How can I manage with those some simple hacks???
>
> Yas

Please see my reply to your identical query under the 1.8.4 heading.

DeeJay

--
Posted via http://www.ruby-....

Alex Young

10/18/2006 2:11:00 PM

0

Yasemin Afacan wrote:
> I am a new commer to this site and I am learning Ruby for my Ph.D.
> thesis to write a plug-in for SketchUp. Since I am architect, I am
> unfamiliar with software terminology.
>
> I have also problems with Ruby Interpreter, I have downloaded Ruby
> http://www.ruby-lang.org/en/... from Ruby 1.8.5 One-Click
> Installer
> And now how is possible to get the Interpreter What should I do? Can you
> help me?
> How can I manage with those some simple hacks???
>
If you've run the installer, you should now be able to double-click .rb
files and have them run under the installed Ruby interpreter. Also, you
can open a command window and type 'irb' (no quotes) - that will give
you a command-line interface to the interpreter.

HOWEVER:

That's not how SketchUp's Ruby interface works. From a quick look at
it, SketchUp expects its Ruby scripts to be put into its Plugins
directory, from where they are automatically loaded. SketchUp's Ruby is
completely independent from the Ruby installed by the One-Click
Installer - they're different versions.

--
Alex

Yasemin Afacan

10/18/2006 6:00:00 PM

0

Alex Young wrote:
> Yasemin Afacan wrote:
>>
> If you've run the installer, you should now be able to double-click .rb
> files and have them run under the installed Ruby interpreter. Also, you
> can open a command window and type 'irb' (no quotes) - that will give
> you a command-line interface to the interpreter.
>
> HOWEVER:
>
> That's not how SketchUp's Ruby interface works. From a quick look at
> it, SketchUp expects its Ruby scripts to be put into its Plugins
> directory, from where they are automatically loaded. SketchUp's Ruby is
> completely independent from the Ruby installed by the One-Click
> Installer - they're different versions.

Thanks a lot for your kind helps

--
Posted via http://www.ruby-....