output denotes a directory named 1.9 ie
<ruby_install_dir>/lib/ruby/gems/1.9.1/gems/thin-1.2.8-x86-mingw32/lib/1.9/
Note. My thin version is 1.2.10. In the following, I will use the path as it appears in my system.
For some reason, thin stone does not come with this catalog. But a file called thin_parser.so is in the parent directory <ruby_install_dir>/lib/ruby/gems/1.9.1/gems/thin-1.2.10/lib/
So, my first decision was to create the 1.9 directory and copy the thin_parser.so file onto it. Now thin start works for me.
Alternatively, you can edit the file <ruby_install_dir>/lib/ruby/gems/1.9.1/gems/thin-1.2.10/lib/thin.rb and change
if Thin.win? # Select proper binary under Windows major_ruby_version = RUBY_VERSION[/^(\d+\.\d+)/] require "#{Thin::ROOT}/#{major_ruby_version}/thin_parser" else require "#{Thin::ROOT}/thin_parser" end
to
if Thin.win? # Select proper binary under Windows major_ruby_version = RUBY_VERSION[/^(\d+\.\d+)/] require "#{Thin::ROOT}/thin_parser" else require "#{Thin::ROOT}/thin_parser" end
or even easier
require "#{Thin::ROOT}/thin_parser"
I'm not sure if the workaround is the best, since I don't know what other thin files are expected in the existing directory. I do not know where Thin.win is located? the plug is becoming important.
I decided in favor of the first solution. But both ways fixed the problem for me.
Yours faithfully,
Tim
source share