# Windows 7 64-bit install

**URL:** <https://www.ruby-forum.com/t/windows-7-64-bit-install/203781>\
**Category:** Ruby\
**Created:** [February 27, 2011, 3:58am UTC](https://www.ruby-forum.com/t/windows-7-64-bit-install/203781 "2011-02-27T03:58:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [February 27, 2011, 3:58am UTC](https://www.ruby-forum.com/t/windows-7-64-bit-install/203781/1 "2011-02-27T03:58:24Z")

</div>

Is there any advantage to a “manual” installation versus RubyInstaller  
on Windows 7 64-bit? Are they mutually exclusive?

If I do a “manual” install, what is the usual $TOPDIR in Windows 7?

I’m a retired software engineer (nearly 50 years experience) so am not  
afraid to do command line things, etc. I’m a little new to Windows,  
having used mostly Linux for the past 10 years and many other OSs before  
that.

This is not a production environment. This is for my own amusement. Yes,  
I enjoy programming just for fun in my retirement. I’ve played a bit  
with Ruby on Linux. But I’m getting more used to Windows and want to  
play with it here.

–Bob

---

<div class="post-metadata">

**Author:** ![gracei](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/f6c823/32.png) [@gracei](https://www.ruby-forum.com/u/gracei)\
**Post date:** [February 27, 2011, 4:47am UTC](https://www.ruby-forum.com/t/windows-7-64-bit-install/203781/2 "2011-02-27T04:47:18Z")

</div>

On Sun, Feb 27, 2011 at 3:58 AM, Bob P. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Is there any advantage to a “manual” installation versus RubyInstaller  
> on Windows 7 64-bit? Are they mutually exclusive?

Unless you want to set the path and the file associations by hand, you  
can use the RubyInstaller just fine. Given your background, I feel  
silly pointing out that “64 bit” means the CPU. Windows is fully  
capable of running 32 bit applications on a 64 bit OS (it’s 16 bit  
applications that won’t work, but they won’t work on any other OS,  
too; it’s a hardware ‘limitation’).

> If I do a “manual” install, what is the usual $TOPDIR in Windows 7?

Whatever suits you best. C:\Ruby is the canonical installation  
directory for the RubyInstaller.

> I’m a retired software engineer (nearly 50 years experience) so am not  
> afraid to do command line things, etc. I’m a little new to Windows,  
> having used mostly Linux for the past 10 years and many other OSs before  
> that.
> 
> This is not a production environment. This is for my own amusement. Yes,  
> I enjoy programming just for fun in my retirement. I’ve played a bit  
> with Ruby on Linux. But I’m getting more used to Windows and want to  
> play with it here.

You’ll get a rather rough experience with Ruby on Windows, since the  
Ruby community is quite \*NIX centric. That said, the RubyInstaller’s  
DevKit takes away a _lot_ of the hurt, since it provides a compiler  
toolchain (on demand, even!) similar to \*NIX.

Given that you are new to Windows, I’d simply use the RubyInstaller.  
It sets everything that needs to be set, and you are good to go from  
the command line. BTW: If you are used to \*NIX-like command lines, use  
PowerShell. It follows many of the usual \*NIX conventions, and has  
aliases corresponding to common \*NIX tools (ls, grep, more, less). I  
have no idea if it is included in whatever edition of Windows 7 you  
are using, but it’s available here:

> **[PowerShell Documentation - PowerShell](https://learn.microsoft.com/en-us/powershell/)**
>
> Official product documentation for PowerShell

–  
Phillip G.

Though the folk I have met,  
(Ah, how soon!) they forget  
When I’ve moved on to some other place,  
There may be one or two,  
When I’ve played and passed through,  
Who’ll remember my song or my face.

---

<div class="post-metadata">

**Author:** ![gracei](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/f6c823/32.png) [@gracei](https://www.ruby-forum.com/u/gracei)\
**Post date:** [February 27, 2011, 5:13am UTC](https://www.ruby-forum.com/t/windows-7-64-bit-install/203781/3 "2011-02-27T05:13:16Z")

</div>

Phillip G. wrote in post #984182:

> Unless you want to set the path and the file associations by hand, you  
> can use the RubyInstaller just fine. Given your background, I feel  
> silly pointing out that “64 bit” means the CPU. Windows is fully  
> capable of running 32 bit applications on a 64 bit OS (it’s 16 bit  
> applications that won’t work, but they won’t work on any other OS,  
> too; it’s a hardware ‘limitation’).

Yes, I knew that Windows would run 32-bit applications, but I specified  
that I’m running 64-bit Windows 7 in case there are both a 32-bit and  
64-bit version of Ruby’s various files, etc. that I needed to know  
about. I have run into several such problems running 64-bit Linux.

> > If I do a “manual” install, what is the usual $TOPDIR in Windows 7?
> 
> Whatever suits you best. C:\Ruby is the canonical installation  
> directory for the RubyInstaller.
> 
> You’ll get a rather rough experience with Ruby on Windows, since the  
> Ruby community is quite \*NIX centric. That said, the RubyInstaller’s  
> DevKit takes away a _lot_ of the hurt, since it provides a compiler  
> toolchain (on demand, even!) similar to \*NIX.
> 
> Given that you are new to Windows, I’d simply use the RubyInstaller.  
> It sets everything that needs to be set, and you are good to go from  
> the command line. BTW: If you are used to \*NIX-like command lines, use  
> PowerShell. It follows many of the usual \*NIX conventions, and has  
> aliases corresponding to common \*NIX tools (ls, grep, more, less). I  
> have no idea if it is included in whatever edition of Windows 7 you  
> are using, but it’s available here:  
> [PowerShell Documentation - PowerShell | Microsoft Learn](http://technet.microsoft.com/en-us/scriptcenter/dd742419.aspx)

Thank you very much, Phillip. This is exactly the advice I was looking  
for.

–Bob

---

<div class="post-metadata">

**Author:** ![gracei](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/f6c823/32.png) [@gracei](https://www.ruby-forum.com/u/gracei)\
**Post date:** [February 27, 2011, 5:30am UTC](https://www.ruby-forum.com/t/windows-7-64-bit-install/203781/4 "2011-02-27T05:30:47Z")

</div>

On Sun, Feb 27, 2011 at 5:13 AM, Bob P. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Yes, I knew that Windows would run 32-bit applications, but I specified  
> that I’m running 64-bit Windows 7 in case there are both a 32-bit and  
> 64-bit version of Ruby’s various files, etc. that I needed to know  
> about. I have run into several such problems running 64-bit Linux.

Not that I am aware of. IIRC, Ruby, at least on Windows, is strictly  
32 bit. If all else fails, you can use RVM[0] to manage multiple  
versions of Ruby (with their own RubyGem libraries).

You can also sidestep all this and use JRuby, which should run  
everywhere where a Java VM runs. 😉

In any case, RubyGems should catch architecture specifics like this,  
and not offer an incompatible install.

> Thank you very much, Phillip. This is exactly the advice I was looking  
> for.

Always happy to help. 🙂

[0] [http://rvm.beginrescueend.com/](http://rvm.beginrescueend.com/)

–  
Phillip G.

Though the folk I have met,  
(Ah, how soon!) they forget  
When I’ve moved on to some other place,  
There may be one or two,  
When I’ve played and passed through,  
Who’ll remember my song or my face.

---

<div class="post-metadata">

**Author:** ![gracei](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/f6c823/32.png) [@gracei](https://www.ruby-forum.com/u/gracei)\
**Post date:** [March 5, 2011, 8:17am UTC](https://www.ruby-forum.com/t/windows-7-64-bit-install/203781/5 "2011-03-05T08:17:16Z")

</div>

On Sat, Feb 26, 2011 at 10:30 PM, Phillip G.  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Not that I am aware of. IIRC, Ruby, at least on Windows, is strictly  
> 32 bit. If all else fails, you can use RVM[0] to manage multiple  
> versions of Ruby (with their own RubyGem libraries).
> 
> You can also sidestep all this and use JRuby, which should run  
> everywhere where a Java VM runs. 😉

FYI, there are both 32 and 64-bit JVM installs for Windows, and JRuby  
will run fine out of the box on either. Regardless of 32 or 64-bit,  
JRuby always has 64-bit Fixnum and Float, so the main thing you get  
from a 64-bit JVM is a larger addressable memory space (anyone out  
there with 50GB Ruby applications?)

- Charlie
