加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

无法构建gem本机扩展ruby 2.0升级fastthread

发布时间:2020-12-16 19:35:55 所属栏目:百科 来源:网络整理
导读:我正在升级我的系统到 ruby 2.0,我完成了一切,把我的电脑放在墙上.我觉得很难相信fastthread是问题.有没有人在运行’捆绑安装’时看到这个错误.这是我的红宝石版本 红宝石-v ruby 2.0.0p0(2013-02-24 revision 39474)[x86_64-darwin12.2.0] 当我试图运行rail
我正在升级我的系统到 ruby 2.0,我完成了一切,把我的电脑放在墙上.我觉得很难相信fastthread是问题.有没有人在运行’捆绑安装’时看到这个错误.这是我的红宝石版本

红宝石-v
ruby 2.0.0p0(2013-02-24 revision 39474)[x86_64-darwin12.2.0]

当我试图运行rails -v我得到这个

rails -v
在任何来源找不到fastthread-1.0.7
运行包安装以安装丢失的宝石.

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.

有没有人遇到这个?

/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已经通过删除了fastthread依赖来解决这个问题. Ruby 2.0上的4.0 beta和RC安装很好.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读