[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

running ruby programs on a windows xp computer

julian

4/3/2006 10:23:00 AM

I have a couple of questions which is fairly simple , as I am very new
to ruby programming, There are a lot of editors that one can use to
write a ruby program, and ruby 1.8.2 comes with an editor built in
called SciTE. I am using SciTE and at the moment ruby 1.8.2 as that
seemed the stable version of rub available.
Question 1
If you use SciTE to write a ruby program and save it in a directory
with a .rb exstension, is it true that it can be ran in the cmd
(command prompt) fine, but if you try to run the ruby program in the
SciTE editor by opening the output windoow ,and choosing the go option
(F5) that some ruby programs will not run in this way, especially if
there ar gets statements in them where the program is trying to get
characters from the key board? Basically a ruby program ran in SciTe
with a gets statement will try to open up a command prompt when you run
it and then craches! Yes?!

Question 2
If I want to upgrade from ruby version 1.8.2 to to 1.8.4, is there a
best possible way to do this, or is it best to use the uninstaller that
comes with ruby and unistall the current version and then to use the
ruby one click installer at http://rubyinstaller.rub... to
install ruby 1.8.4, and finally is there a finished stable 1.8.4
version available?

if any one can help, I would be very graitfull many thanks julian.

8 Answers

Curt Hibbs

4/3/2006 10:55:00 AM

0

On 4/3/06, julian <jkbowler@tiscali.co.uk> wrote:
>
> Question 2
> If I want to upgrade from ruby version 1.8.2 to to 1.8.4, is there a
> best possible way to do this, or is it best to use the uninstaller that
> comes with ruby and unistall the current version and then to use the
> ruby one click installer at http://rubyinstaller.rub... to
> install ruby 1.8.4, and finally is there a finished stable 1.8.4
> version available?

You can have both both versions installed simultaneously if you wish,
which ever you have on your path is the one that will be used by
default. Just make sure you install 1.8i.4 to a new directory (i.e.,
do not try to install on top of 1.8.2 as people have reported probems
when doing this).

Curt


julian

4/3/2006 11:34:00 AM

0

ta very much indeed for your responce, please just explain if possible
the bit where you say "which ever you have on your path" Ruby would
always be installed in c:/ruby wouldn't it??
If we leave aside issues of partitioning disk drives and creation of
more than one partition!!
A drive on a computer would be C: and ruby would exist in a directory
in the root called ruby wouldn't it ?

so if as you say you could instal both 1.8.2 and 1.8.4 where would you
install each one and how would the computer no which one to use when
you run ruby programname.rb... please help......... ta cheers thanks

Huw Collingbourne

4/3/2006 11:34:00 AM

0

If you are a Visual Studio 2005 user, you may be interested in the Ruby In
Steel environment which we are developing. This is a free programming Ruby
add-in for VS2005 and we'll be releasing the first public beta before the
end of April.

Keep up to date with this project here: http://www.sapphir...

best wishes
Huw Collingbourne
================================
Bitwise Magazine
www.bitwisemag.com
Dark Neon Ltd.
================================


julian

4/3/2006 12:14:00 PM

0

Huw Collingbourne wrote:
> If you are a Visual Studio 2005 user, you may be interested in the Ruby In
> Steel environment which we are developing. This is a free programming Ruby
> add-in for VS2005 and we'll be releasing the first public beta before the
> end of April.
>
> Keep up to date with this project here: http://www.sapphir...
>
> best wishes
> Huw Collingbourne
> ================================
> Bitwise Magazine
> www.bitwisemag.com
> Dark Neon Ltd.
> ================================

Thank you very much for your responce, but I do feel that it does not
appear to be wholely relavent to the conversation entirely.... I am
attempting to learn more about writing and running ruby programs using
a basic windows xp machine , and at the mo i am not a visual studio
2005 user and do not plan to become one in the future at the current
moment. but thanks for the information ta

Bengt Dahlqvist

4/3/2006 12:25:00 PM

0

as i understand it, there will be quite a few
non-back-compatible changes in ruby 2.0,
what matz calls "maximum breakage".
is there any summary anywhere on the
net of the changes to come?



Curt Hibbs

4/3/2006 12:42:00 PM

0

On 4/3/06, julian <jkbowler@tiscali.co.uk> wrote:
> ta very much indeed for your responce, please just explain if possible
> the bit where you say "which ever you have on your path" Ruby would
> always be installed in c:/ruby wouldn't it??
> If we leave aside issues of partitioning disk drives and creation of
> more than one partition!!
> A drive on a computer would be C: and ruby would exist in a directory
> in the root called ruby wouldn't it ?
>
> so if as you say you could instal both 1.8.2 and 1.8.4 where would you
> install each one and how would the computer no which one to use when
> you run ruby programname.rb... please help......... ta cheers thanks

c:\ruby is merely the default installation directory. You can install
it in any directory your prefer (just make sure there are no space
characters in the path name).

Curt


Curt Hibbs

4/3/2006 12:45:00 PM

0

On 4/3/06, Huw Collingbourne <huw@delthisbitdarkneon.com> wrote:
> If you are a Visual Studio 2005 user, you may be interested in the Ruby In
> Steel environment which we are developing. This is a free programming Ruby
> add-in for VS2005 and we'll be releasing the first public beta before the
> end of April.
>
> Keep up to date with this project here: http://www.sapphir...

Very nice... I'm glad to see this!

Curt


james_b

4/3/2006 2:13:00 PM

0

julian wrote:
> Huw Collingbourne wrote:
>
>>If you are a Visual Studio 2005 user, you may be interested in the Ruby In
>>Steel environment which we are developing. This is a free programming Ruby
>>add-in for VS2005 and we'll be releasing the first public beta before the
>>end of April.
.

>
>
> Thank you very much for your responce, but I do feel that it does not
> appear to be wholely relavent to the conversation entirely.... I am
> attempting to learn more about writing and running ruby programs using
> a basic windows xp machine , and at the mo i am not a visual studio
> 2005 user and do not plan to become one in the future at the current
> moment. but thanks for the information ta

I'm not a Visual Studio user, preferring (at least for Ruby development)
to use gvim on WinXP, but regardless of platform one should give serious
thought to the choice of Ruby editor.

That you are using Scite may be more a coincidence of packaging than
anything else. You may prefer Scite to the other choices, but if you
haven't spent a little time trying out alternatives than you may be
doing yourself a disservice.

There have been past threads here on ruby-talk about editor choice, so
you may want to search the archives to get some ideas.

--
James Britt

"Blanket statements are over-rated"