简体   繁体   English

无法构建gem原生扩展ruby 2.0升级fastthread

[英]Failed to build gem native extension ruby 2.0 upgrade fastthread

I am upgrading my system to ruby 2.0 and I have done everything short of throw my computer on the wall. 我正在将我的系统升级到ruby 2.0并且我已经完成了将计算机扔到墙上的所有事情。 I find it hard to believe that fastthread is the problem. 我发现很难相信fastthread是问题所在。 Has anyone else seen this error when running 'bundle install'. 运行'bundle install'时是否有其他人看到此错误。 Here is my ruby version 这是我的红宝石版本

ruby -v ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-darwin12.2.0] ruby -v ruby​​ 2.0.0p0(2013-02-24修订版39474)[x86_64-darwin12.2.0]

when I try to run rails -v I get this 当我尝试运行rails -v时,我得到了这个

rails -v Could not find fastthread-1.0.7 in any of the sources Run bundle install to install missing gems. rails -v无法在任何源代码中找到fastthread-1.0.7运行bundle install以安装缺少的gem。

Fetching gem metadata from https://rubygems.org/.........
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies...
Using rake (10.0.3) 
Using i18n (0.6.1) 
Using multi_json (1.6.1) 
Using activesupport (3.2.9) 
Using builder (3.0.4) 
Using activemodel (3.2.9) 
Using erubis (2.7.0) 
Using journey (1.0.4) 
Using rack (1.4.5) 
Using rack-cache (1.2) 
Using rack-test (0.6.2) 
Using hike (1.2.1) 
Using tilt (1.3.3) 
Using sprockets (2.2.2) 
Using actionpack (3.2.9) 
Using mime-types (1.21) 
Using polyglot (0.3.3) 
Using treetop (1.4.12) 
Using mail (2.4.4) 
Using actionmailer (3.2.9) 
Using arel (3.0.2) 
Using tzinfo (0.3.35) 
Using activerecord (3.2.9) 
Using activeresource (3.2.9) 
Using bundler (1.3.0) 
Using highline (1.6.15) 
Using net-ssh (2.6.5) 
Using net-scp (1.1.0) 
Using net-sftp (2.1.1) 
Using net-ssh-gateway (1.2.0) 
Using capistrano (2.14.2) 
Using chunky_png (1.2.7) 
Using coffee-script-source (1.5.0) 
Using execjs (1.4.0) 
Using coffee-script (2.2.0) 
Using rack-ssl (1.3.3) 
Using json (1.7.7) 
Using rdoc (3.12.2) 
Using thor (0.17.0) 
Using railties (3.2.9) 
Using coffee-rails (3.2.2) 
Using fssm (0.2.10) 
Using sass (3.2.6) 
Using compass (0.12.2) 
Using compass-rails (1.0.3) 
Using daemon_controller (1.1.1) 
Installing fastthread (1.0.7) 
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

/Users/ben/.rvm/rubies/ruby-2.0.0-p0/bin/ruby extconf.rb 
extconf.rb:13:in `block in <main>': Use RbConfig instead of obsolete and deprecated Config.
extconf.rb:13:in `block in <main>': Use RbConfig instead of obsolete and deprecated Config.

make
Makefile:104: *** missing separator.  Stop.


Gem files will remain installed in /Users/[me]/.rvm/gems/ruby-2.0.0-p0/gems/fastthread-1.0.7 for inspection.
Results logged to /Users/[me]/.rvm/gems/ruby-2.0.0-p0/gems/fastthread-1.0.7/ext/fastthread/gem_make.out

An error occurred while installing fastthread (1.0.7), and Bundler cannot
continue.
Make sure that `gem install fastthread -v '1.0.7'` succeeds before bundling.

Has anyone else ran into this? 还有其他人遇到过这个吗?

Conents of /Users/[me]/.rvm/gems/ruby-2.0.0-p0/gems/fastthread-1.0.7/ext/fastthread/gem_mak‌​e.out /Users/[me]/.rvm/gems/ruby-2.0.0-p0/gems/fastthread-1.0.7/ext/fastthread/gem_mak e.out的组成部分

/Users/[me]/.rvm/rubies/ruby-2.0.0-p0/bin/ruby extconf.rb

extconf.rb:13:in `block in <main>': Use RbConfig instead of obsolete and deprecated Config.
extconf.rb:13:in `block in <main>': Use RbConfig instead of obsolete and deprecated   Config.

make
Makefile:104: *** missing separator.  Stop.

Phusion Passenger 4 has already solved this by removing the fastthread dependency. Phusion Passenger 4已经通过删除fastthread依赖来解决这个问题。 The 4.0 betas and RCs install just fine on Ruby 2.0. 4.0 beta和RCs在Ruby 2.0上安装得很好。

If you use Passenger as your webserver you have to have this dependency. 如果您使用Passenger作为您的网络服务器,您必须具有此依赖关系。 See this pull request for the fix: https://github.com/zoltankiss/fastthread/commit/a47a121990cf7d4f31147406c2d379dabc048479 请参阅此修复程序的拉取请求: https//github.com/zoltankiss/fastthread/commit/a47a121990cf7d4f31147406c2d379dabc048479

The author of the gem has not yet included this fix. gem的作者尚未包含此修复程序。 You can require fastthread from https://github.com/zoltankiss/fastthread if you need it. 如果需要,您可以从https://github.com/zoltankiss/fastthread请求快速读取。 That is who submitted the pull request. 那是谁提交了拉取请求。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM