gem install passenger:在Windows上无法构建gem原生扩展

时间:2013-09-11 16:05:49

标签: ruby-on-rails ruby passenger

我尝试过输入

gem install passenger

我得到的错误是

Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
ERROR:  Error installing passenger:
    ERROR: Failed to build gem native extension.

    C:/RailsInstaller/Ruby1.9.3/bin/ruby.exe extconf.rb 
    C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/passenger4.0.17/lib/phusion_passengerrb:177:in `find_location_configuration_file': undefined method `dir' for nil:NilClass (NoMehodError)

    from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/passenger-4.0.17/lib/phuson_passenger.rb:78:in `locate_directories'
    from extconf.rb:43:in `<main>'

有什么想法吗?我正在使用ruby 1.9.3

   ruby 1.9.3p392 (2013-02-22) [i386-mingw32]

0 个答案:

没有答案