# Ruby1.9 on windows

**URL:** <https://www.ruby-forum.com/t/ruby1-9-on-windows/128622>\
**Category:** Ruby\
**Created:** [February 9, 2008, 3:05pm UTC](https://www.ruby-forum.com/t/ruby1-9-on-windows/128622 "2008-02-09T15:05:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![guilherme](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/77aa72/32.png) [@guilherme](https://www.ruby-forum.com/u/guilherme)\
**Post date:** [February 9, 2008, 3:05pm UTC](https://www.ruby-forum.com/t/ruby1-9-on-windows/128622/1 "2008-02-09T15:05:45Z")

</div>

hello, my first post here 😃

Here, ruby1.8 runs great on Windows. I’m able to compile & develop  
some extensions, play with gems. Anyway, doing usual things …

However I’m not really getting on well with ruby 1.9.

First, rubygems is installing gems into a weird directory “C:\LAN…”.  
The most interesting part is that when requiring a gem, it looks for  
“C:\ruby\lib\gem…” instead of “C:LAN…”. Ok, I managed to solve  
this by just changing the --install-dir to the appropriate path. Now  
rubygems apparently runs gracefully.

Second, I’m trying to compile some libs of mine (which BTW use  
extensions)

“mkmf can find header files for ruby at C:/ruby1.9/lib/ruby/include/  
ruby.h”

I’ve placed all the necessary files into C:/ruby1.9/lib/ruby/include  
and it still doesn’t find them.

Just to make sure:

ruby -v  
ruby 1.9.0 (2007-12-25 revision 14709) [i386-mswin32]

Thanks,  
G

---

<div class="post-metadata">

**Author:** ![guilherme](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/77aa72/32.png) [@guilherme](https://www.ruby-forum.com/u/guilherme)\
**Post date:** [February 9, 2008, 7:36pm UTC](https://www.ruby-forum.com/t/ruby1-9-on-windows/128622/2 "2008-02-09T19:36:05Z")

</div>

On Feb 9, 11:03 am, Guilherme [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> this by just changing the --install-dir to the appropriate path. Now
> 
> Just to make sure:
> 
> ruby -v  
> ruby 1.9.0 (2007-12-25 revision 14709) [i386-mswin32]
> 
> Thanks,  
> G

After a while I decided to give it another try.

I’ve tweaked a little bit the rbconfig.rb and mkmf.rb. Looks like I’m  
now able to compile extensiosn again.

Thanks,  
G
