How to compile Ruby from source on Windows for FS3

For general discussion related FlowStone
VPDannyMan
Posts: 118
Joined: Mon Jan 04, 2010 4:50 am

Re: How to compile Ruby from source on Windows for FS3

Post by VPDannyMan »

No DWB I Think a lot of people agree with you. However, AFAIK it does not matter where you copy the Ruby DLL you can still have only one instance... I may be wrong though but I thought someone here mentioned that...Maybe Trog? I don't know...
Dimmak01
Posts: 12
Joined: Mon Oct 19, 2009 11:38 am

Re: How to compile Ruby from source on Windows for FS3

Post by Dimmak01 »

Thanks DWB, for a great tutorial, but I still have one question: how to install
pr-zlib? :?:

I made all by your mini-guide and then check:
ruby -v #=> ruby 1.9.3p0 (2011-10-30) [i386-mswin32_90]
gem -v #=> 1.8.11 and no any warnigs( psych installed correctly)

but when I try to install zlib I get this:

C:\>gem install pr-zlib-1.0.0.gem
ERROR: Loading command: install (LoadError)
cannot load such file -- zlib
ERROR: While executing gem ... (NameError)
uninitialized constant Gem::Commands::InstallCommand
:shock:
Please help me to solve this problem... :idea:
User avatar
digitalwhitebyte
Posts: 106
Joined: Sat Jul 31, 2010 10:20 am

Re: How to compile Ruby from source on Windows for FS3

Post by digitalwhitebyte »

you can simply install it by hand.
download it from here.
from the folder [ lib ], take
the folder [ pr ] with its 2 file, and add to the library of your ruby build.
your_build/lib/ruby/1.9.1/pr/rbzlib.rb
your_build/lib/ruby/1.9.1/pr/zlib.rb
Dimmak01
Posts: 12
Joined: Mon Oct 19, 2009 11:38 am

Re: How to compile Ruby from source on Windows for FS3

Post by Dimmak01 »

no luck...
My case solution: Download zlib-1.2.5.win32.zip from here
http://xmlsoft.org/sources/win32/

put all files in x:Ruby_source/ext/zlib and

cd x:Ruby_source/ext/zlib
ruby extconf.rb; nmake; nmake install :D
User avatar
digitalwhitebyte
Posts: 106
Joined: Sat Jul 31, 2010 10:20 am

Re: How to compile Ruby from source on Windows for FS3

Post by digitalwhitebyte »

perfect, optimal solution. updated it to the mini-guide.
Post Reply