ruby-on-rails – Ruby on Rails:在Windows 7上运行Typhoeus(64
发布时间:2020-12-17 02:29:25 所属栏目:百科 来源:网络整理
导读:我不能让Typhoeus gem在我的 Windows 7机器上运行. 基本上,它没有在“C:/Ruby192/lib/ruby/gems/1.9.1/gems/typhoeus-0.2.4/ext/typhoeus/”中找到“native.so”文件.我该如何解决? C:/Ruby192/lib/ruby/gems/1.9.1/gems/typhoeus-0.2.4/lib/typhoeus.rb:1
我不能让Typhoeus gem在我的
Windows 7机器上运行.
基本上,它没有在“C:/Ruby192/lib/ruby/gems/1.9.1/gems/typhoeus-0.2.4/ext/typhoeus/”中找到“native.so”文件.我该如何解决? C:/Ruby192/lib/ruby/gems/1.9.1/gems/typhoeus-0.2.4/lib/typhoeus.rb:10:in `require': 126: The specified module could not be found. - C:/Ruby192/lib/ruby/gems/1.9.1/gems/typhoeus-0.2.4/ext/typhoeus/native.so (LoadError) from C:/Ruby192/lib/ruby/gems/1.9.1/gems/typhoeus-0.2.4/lib/typhoeus.rb:10:in `<top (required)>' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.13/lib/bundler/runtime.rb:68:in `require' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.13/lib/bundler/runtime.rb:68:in `block (2 levels) in require' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.13/lib/bundler/runtime.rb:66:in `each' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.13/lib/bundler/runtime.rb:66:in `block in require' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.13/lib/bundler/runtime.rb:55:in `each' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.13/lib/bundler/runtime.rb:55:in `require' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.13/lib/bundler.rb:120:in`require' 解决方法
问题似乎是typhoeus需要curl作为开发库来成功编译它的native.so扩展.
首先,你需要从downloads page安装RubyInstaller DevKit. http://groups.google.com/group/rubyinstaller/browse_thread/thread/c8a4bdb6663cbf7c 在同一篇文章中,同一篇文章提到用户试图让gem在Windows上工作失败并且他最终切换到路边. PS:虽然其他人可能会说* .so是共享对象的UNIX / POSIX约定,但是Ruby决定用于Windows C-Extensions的扩展,就像Python使用* .pyd作为扩展. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |