# 64 bit ruby installation on 64 bit windows

**URL:** <https://www.ruby-forum.com/t/64-bit-ruby-installation-on-64-bit-windows/192363>\
**Category:** Ruby\
**Created:** [July 29, 2010, 4:02am UTC](https://www.ruby-forum.com/t/64-bit-ruby-installation-on-64-bit-windows/192363 "2010-07-29T04:02:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ichigo\_poi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/d2c977/32.png) [@ichigo\_poi](https://www.ruby-forum.com/u/ichigo_poi)\
**Post date:** [July 29, 2010, 4:02am UTC](https://www.ruby-forum.com/t/64-bit-ruby-installation-on-64-bit-windows/192363/1 "2010-07-29T04:02:31Z")

</div>

hi, could anyone help me answer the following questions.

i’ve tried installing a 64-bit ruby on a 64-bit windows.  
i’ve successfully installed it and able to try some codes  
using irb. but when i tried to update the gem, i got the  
error that the zlib can’t be found, even though i have  
it in the ruby\bin folder.

my question is this, does zlib dll and other dlls need to be  
64 bit in order to install gems in ruby?  
are there any links where i can download 64-bit zlib?  
i tried googling but couldn’t find one.

thanks in advance.

---

<div class="post-metadata">

**Author:** ![ichigo\_poi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/d2c977/32.png) [@ichigo\_poi](https://www.ruby-forum.com/u/ichigo_poi)\
**Post date:** [July 29, 2010, 3:02pm UTC](https://www.ruby-forum.com/t/64-bit-ruby-installation-on-64-bit-windows/192363/2 "2010-07-29T15:02:58Z")

</div>

On Jul 28, 11:02 pm, Ichigo P. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> hi, could anyone help me answer the following questions.
> 
> i’ve tried installing a 64-bit ruby on a 64-bit windows.  
> i’ve successfully installed it and able to try some codes  
> using irb. but when i tried to update the gem, i got the  
> error that the zlib can’t be found, even though i have  
> it in the ruby\bin folder.
> 
> my question is this, does zlib dll and other dlls need to be  
> 64 bit in order to install gems in ruby?

Yes, all the DLLs needs to be exactly of the same architecture.

> <https://stackoverflow.com/questions/2265023/load-32bit-dll-library-in-64bit-application>

> are there any links where i can download 64-bit zlib?

There is no pre-built binary. Even more, you will need to use the same  
compiler used to build Ruby as the CRT differences could generate  
issues in memory allocation and release (which translates to  
segfaults)

Unless you have a 64bits DLL that you need to interface with, I would  
advise you install 32bits Ruby and avoid the pain of building  
everything (zlib, openssl, readline and many others) from scratch.

It might be biased, but I would recommend you use RubyInstaller  
packages:

> **[RubyInstaller for Windows](https://rubyinstaller.org/)**
>
> The easy way to install Ruby on Windows This is a self-contained Windows-based installer that includes the Ruby language, an execution environment, important...

HTH,

---

<div class="post-metadata">

**Author:** ![ichigo\_poi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/d2c977/32.png) [@ichigo\_poi](https://www.ruby-forum.com/u/ichigo_poi)\
**Post date:** [July 30, 2010, 1:57pm UTC](https://www.ruby-forum.com/t/64-bit-ruby-installation-on-64-bit-windows/192363/3 "2010-07-30T13:57:26Z")

</div>

Ichigo P. wrote:

> hi, could anyone help me answer the following questions.
> 
> i’ve tried installing a 64-bit ruby on a 64-bit windows.

jruby under a 64-bit java VM should work OOTB on doze. That’s probably  
not the answer you were looking for, but thought I’d throw it out there.

---

<div class="post-metadata">

**Author:** ![ichigo\_poi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/d2c977/32.png) [@ichigo\_poi](https://www.ruby-forum.com/u/ichigo_poi)\
**Post date:** [July 30, 2010, 10:39am UTC](https://www.ruby-forum.com/t/64-bit-ruby-installation-on-64-bit-windows/192363/4 "2010-07-30T10:39:06Z")

</div>

Yes I tried to compile ruby for 64b arch, but there is too many  
libraries to compile in 64, and at the end, I choose to use 32b version  
of ruby.

If you don’t need to install any gems and just for a basic usage, it  
will work fine, but quickly you would install some gems, thaw will  
require specific libraries you will need to compile in 64b too, and then  
you will see that this specific library you will try to compile don’t  
support your compiler or 64b or something like that :s

but still if you want to try, I suggest you to don’t use the microsoft  
compiler, since some important library (don’t remember wich one) dont  
support this compiler anymore (that’s probably why the rubyinstaller  
team did not compile new rubyinstaller version with mswin32, but use  
mingw …)

Of course you will also need to recompile all gems you want to install.

---

<div class="post-metadata">

**Author:** ![ichigo\_poi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/d2c977/32.png) [@ichigo\_poi](https://www.ruby-forum.com/u/ichigo_poi)\
**Post date:** [August 4, 2010, 6:53am UTC](https://www.ruby-forum.com/t/64-bit-ruby-installation-on-64-bit-windows/192363/5 "2010-08-04T06:53:39Z")

</div>

On Fri, Jul 30, 2010 at 6:57 AM, Roger P. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> jruby under a 64-bit java VM should work OOTB on doze. Â That’s probably  
> not the answer you were looking for, but thought I’d throw it out there.

Yes. No recompiles, no C exts that don’t support 64-bit. Unpack and run.

- Charlie
