Page 10 of 10

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

Posted: Mon Jun 24, 2013 11:53 pm
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...

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

Posted: Fri Jul 12, 2013 4:17 pm
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:

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

Posted: Fri Jul 12, 2013 5:17 pm
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

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

Posted: Fri Jul 12, 2013 8:32 pm
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

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

Posted: Sat Jul 13, 2013 7:25 am
by digitalwhitebyte
perfect, optimal solution. updated it to the mini-guide.