我试图在Windows / XP上运行Ruby Thin演示应用程序,当我收到Windows无法找到“msvcr90.dll”for Ruby 1.8.7的错误时 - 我发现了一个可再发行的应用程序并将其放在我的路径中要面对以下信息:
"R6034 ... application has made an attempt to lead the C runtime incorrectly"
今天早些时候我运行了一些事件机器演示oK,所以我认为问题在于Thin。
Ruby堆栈转储没有用......(包含在下面)。有治疗方法吗?
我查看了其他MSVCR90.DLL帖子,这些方法都没有效果。 MSVCR90.DLL现在位于system32中 - 出现“错误链接”错误。
提前致谢。
......将
------
W:\> ruby adapter.rb
>> Thin web server (v1.2.2 codename I Find Your Lack of Sauce Disturbing)
>> Maximum connections set to 1024
>> Listening on 127.0.0.1:3000, CTRL+C to stop
c:/bin/ruby/v1.8/lib/ruby/gems/1.8/gems/thin-1.2.2/lib/thin_parser.so: 1114: A dynamic link library (DLL) initialization routine failed.
- c:/bin/ruby/v1.8/lib/ruby/gems/1.8/gems/thin-1.2.2/lib/thin_parser.so (LoadError)
from c:/bin/ruby/v1.8/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from c:/bin/ruby/v1.8/lib/ruby/gems/1.8/gems/thin-1.2.2/lib/thin/request.rb:1
from c:/bin/ruby/v1.8/lib/ruby/gems/1.8/gems/thin-1.2.2/lib/thin/connection.rb:35:in `post_init'
from c:/bin/ruby/v1.8/lib/ruby/gems/1.8/gems/eventmachine-0.12.8-x86-mswin32-60/lib/em/connection.rb:43:in `new'
from c:/bin/ruby/v1.8/lib/ruby/gems/1.8/gems/eventmachine-0.12.8-x86-mswin32-60/lib/em/connection.rb:36:in `instance_eval'
from c:/bin/ruby/v1.8/lib/ruby/gems/1.8/gems/eventmachine-0.12.8-x86-mswin32-60/lib/em/connection.rb:36:in `new'
from c:/bin/ruby/v1.8/lib/ruby/gems/1.8/gems/eventmachine-0.12.8-x86-mswin32-60/lib/eventmachine.rb:1490:in `event_callback'
from c:/bin/ruby/v1.8/lib/ruby/gems/1.8/gems/eventmachine-0.12.8-x86-mswin32-60/lib/eventmachine.rb:242:in `run_machine'
from c:/bin/ruby/v1.8/lib/ruby/gems/1.8/gems/eventmachine-0.12.8-x86-mswin32-60/lib/eventmachine.rb:242:in `run'
from c:/bin/ruby/v1.8/lib/ruby/gems/1.8/gems/thin-1.2.2/lib/thin/backends/base.rb:57:in `start'
from c:/bin/ruby/v1.8/lib/ruby/gems/1.8/gems/thin-1.2.2/lib/thin/server.rb:156:in `start!'
from c:/bin/ruby/v1.8/lib/ruby/gems/1.8/gems/thin-1.2.2/lib/thin/server.rb:142:in `start'
from adapter.rb:21
答案 0 :(得分:0)
似乎需要排除/ MD参数 并确保您的库调用xfree,而不是免费:)
http://groups.google.com/group/thin-ruby/browse_thread/thread/c15b2472eb97c2ba/ea7c5127035d193b -r
答案 1 :(得分:0)
对于Ruby 1.9,这似乎是通过( Windows )RubyInstaller DevKit解决的,但需要注意的是,它仍在进行中。
回到最初的问题,构建将取决于你正在使用的Ruby所使用的编译器,等等。即使使用当前的DevKit,事情也不是100%。我有一些构建失败。所以对你的环境有一定的敏感性。
祝你好运。