加入收藏 | 设为首页 | 会员中心 | 我要投稿 PHP编程网 - 黄冈站长网 (http://www.0713zz.com/)- 数据应用、建站、人体识别、智能机器人、语音技术!
当前位置: 首页 > 服务器 > 搭建环境 > Linux > 正文

ruby-on-rails – 将Ruby 2.0.0-p247更新为Ruby-2.0.0-p353.安

发布时间:2021-01-08 02:34:36 所属栏目:Linux 来源:网络整理
导读:我正在使用rvm 1.23.16(稳定版)构建我的Ruby环境,并且可以看到Ruby将ruby 2.0.0-p247传递给ruby-2.0.0-p353,现在如果尝试安装Rails 4.0 rails gem install rails -v 4.0.0或gem install rails -v 4.0.0 no-rdoc no-ri. (为了省略安装过程的文档,就像我最近

我正在使用rvm 1.23.16(稳定版)构建我的Ruby环境,并且可以看到Ruby将ruby 2.0.0-p247传递给ruby-2.0.0-p353,现在如果尝试安装Rails 4.0 rails gem install rails -v 4.0.0或gem install rails -v 4.0.0 –no-rdoc –no-ri. (为了省略安装过程的文档,就像我最近学到的那样)我有以下错误:

Building native extensions.  This could take a while...
ERROR:  Error installing rails:
    ERROR: Failed to build gem native extension.

    /home/llarruda/.rvm/rubies/ruby-2.0.0-p353/bin/ruby extconf.rb
creating Makefile

make "DESTDIR="
compiling atomic_reference.c
linking shared-object atomic_reference.so

make "DESTDIR=" install
/usr/bin/install -c -m 0755 atomic_reference.so ./.gem.20131122-9599-8hv76z
installing default atomic_reference libraries


Gem files will remain installed in /home/llarruda/.rvm/gems/ruby-2.0.0-p353/gems/atomic-1.1.14 for inspection.
Results logged to /home/llarruda/.rvm/gems/ruby-2.0.0-p353/gems/atomic-1.1.14/ext/gem_make.out

?/ .rvm / gems / ruby??-2.0.0-p353 / gems / atomic-1.1.14 / ext / gem_make.out的内容.

/home/llarruda/.rvm/rubies/ruby-2.0.0-p353/bin/ruby extconf.rb
creating Makefile

make "DESTDIR="
compiling atomic_reference.c
linking shared-object atomic_reference.so

make "DESTDIR=" install
/usr/bin/install -c -m 0755 atomic_reference.so ./.gem.20131122-9599-8hv76z
installing default atomic_reference libraries

参见?/ .rvm / gems / ruby??-2.0.0-p353 / gems / atomic-1.1.14 / ext / mkmf.log:

"gcc -o conftest -I/home/llarruda/.rvm/rubies/ruby-2.0.0-p353/include/ruby-2.0.0/x86_64-linux -I/home/llarruda/.rvm/rubies/ruby-2.0.0-p353/include/ruby-2.0.0/ruby/backward -I/home/llarruda/.rvm/rubies/ruby-2.0.0-p353/include/ruby-2.0.0 -I.     -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration  -fPIC conftest.c  -L. -L/home/llarruda/.rvm/rubies/ruby-2.0.0-p353/lib -Wl,-R/home/llarruda/.rvm/rubies/ruby-2.0.0-p353/lib -L. -fstack-protector -rdynamic -Wl,-export-dynamic     -Wl,-R -Wl,/home/llarruda/.rvm/rubies/ruby-2.0.0-p353/lib -L/home/llarruda/.rvm/rubies/ruby-2.0.0-p353/lib -lruby  -lpthread -lrt -ldl -lcrypt -lm   -lc"
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: int main(int argc,char **argv)
4: {
5:   return 0;
6: }
/* end */

"gcc -o conftest -I/home/llarruda/.rvm/rubies/ruby-2.0.0-p353/include/ruby-2.0.0/x86_64-linux -I/home/llarruda/.rvm/rubies/ruby-2.0.0-p353/include/ruby-2.0.0/ruby/backward -I/home/llarruda/.rvm/rubies/ruby-2.0.0-p353/include/ruby-2.0.0 -I.     -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration  -fPIC conftest.c  -L. -L/home/llarruda/.rvm/rubies/ruby-2.0.0-p353/lib -Wl,/home/llarruda/.rvm/rubies/ruby-2.0.0-p353/lib -L/home/llarruda/.rvm/rubies/ruby-2.0.0-p353/lib -lruby  -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration  -fPIC -lpthread -lrt -ldl -lcrypt -lm   -lc"
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: int main() {
4:   int i = 1;
5:   __sync_bool_compare_and_swap(&i,1,4);
6:   return (i != 4);
7: }
/* end */

./conftest

我已经以相同的方式安装了环境可能需要的所有gem,这是从Ruby版本的更新开始的. 最佳答案 尝试

gem update --system

然后重新安装……………

(编辑:PHP编程网 - 黄冈站长网)

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

    热点阅读