English 中文(简体)
A. 更新 更正
原标题:Error while update Ruby version from 2.6.10 to 3.0.0

我在试图利用考试和测验仪更新我的鲁比版本时遇到困难。 我走过建议的步骤,包括更新考试和测验本身,安装最新的稳定版本,将其定为违约。 然而,尽管作出了这些努力,但我的环境下的鲁比罗版本似乎并没有成功更新。 当我像废墟一样指挥时,它仍然显示旧版本。 我也试图清理考试和测验科,重整我的炮弹,并重复检查我的测验,但问题依然存在。 非常赞赏就如何利用考试和测验仪解决和成功更新我的鲁比版本提供任何指导或见解。

i) 当操作时,就安装了3.0.0英寸,用于 i子。

Error running  __rvm_make -j8 , please read /Users/apple/.rvm/log/1703760048_ruby-3.0.0/make.log

There has been an error while running make. Halting the installation.```

以及当我去检查那些能够做到的标识时:

../.././include/ruby/ruby.h:1837:5: note: expanded from macro  RUBY_CONST_ID_CACHE 
    }
    ^
    ancdata.c:1440:36: note:  )  token is here
            ary = rb_attr_get(ctl, rb_intern("unix_rights"));
                                   ^~~~~~~~~~~~~~~~~~~~~~~~
    ../.././include/ruby/ruby.h:1847:56: note: expanded from macro  rb_intern 
        __extension__ (RUBY_CONST_ID_CACHE((ID), (str))) : 
                                                       ^
    make[1]: *** [ext/openssl/all] Error 2
    make[1]: *** Waiting for unfinished jobs....`your text`
    linking shared-object json/ext/parser.bundle
    raddrinfo.c:2687:18: warning:  (  and  {  tokens introducing statement expression appear in         different macro expansion contexts [-Wcompound-token-split-by-macro]
    id_timeout = rb_intern("timeout");
                 ^~~~~~~~~~~~~~~~~~~~
../.././include/ruby/ruby.h:1847:23: note: expanded from macro  rb_intern 
        __extension__ (RUBY_CONST_ID_CACHE((ID), (str))) : 
                      ^
raddrinfo.c:2687:18: note:  {  token is here
    id_timeout = rb_intern("timeout");
                 ^~~~~~~~~~~~~~~~~~~~
../.././include/ruby/ruby.h:1847:24: note: expanded from macro  rb_intern 
        __extension__ (RUBY_CONST_ID_CACHE((ID), (str))) : 
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../.././include/ruby/ruby.h:1832:5: note: expanded from macro  RUBY_CONST_ID_CACHE 
    {                                                   
    ^
raddrinfo.c:2687:18: warning:  }  and  )  tokens terminating statement expression appear in different macro expansion contexts [-Wcompound-token-split-by-macro]
    id_timeout = rb_intern("timeout");
                 ^~~~~~~~~~~~~~~~~~~~
../.././include/ruby/ruby.h:1847:24: note: expanded from macro  rb_intern 
        __extension__ (RUBY_CONST_ID_CACHE((ID), (str))) : 
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../.././include/ruby/ruby.h:1837:5: note: expanded from macro  RUBY_CONST_ID_CACHE 
    }
    ^
raddrinfo.c:2687:18: note:  )  token is here
    id_timeout = rb_intern("timeout");
                 ^~~~~~~~~~~~~~~~~~~~
../.././include/ruby/ruby.h:1847:56: note: expanded from macro  rb_intern 
        __extension__ (RUBY_CONST_ID_CACHE((ID), (str))) : 
                                                       ^
18 warnings generated.
30 warnings generated.
2 warnings generated.
linking shared-object socket.bundle
12 warnings generated.
linking shared-object ripper.bundle
make: *** [build-ext] Error 2
+__rvm_make:0> return 2 

以及当我尝试时

BUILD FAILED (macOS 13.6.1 on x86_64 using ruby-build 20231225)

我遵循了更新工作的建议步骤。 这包括使用快车安全器更新其仪器,安装最新的稳定版的Ruby-R.R.M.-A.最新版,并将新安装的版本确定为使用垃圾的违约。

问题回答

由于您的造册有错误make ? *** [ext/openssl/all] Error 2 我会在此提一个表格,并表示你需要把适当的开放式双筒连接起来。 因此,在您的终点站发出指挥命令:

which openssl

并且如果你们得到这样的东西:

/usr/local/bin/openssl

然后,你需要把<代码>make<>/code>——你的开放式双筒。 采用从<代码>返回的道路: 指挥审判:

rvm install ruby-3.0.0 --with-openssl-dir=/usr/local/bin/openssl

替代你们的开放道路。





相关问题
Ruby parser in Java

The project I m doing is written in Java and parsers source code files. (Java src up to now). Now I d like to enable parsing Ruby code as well. Therefore I am looking for a parser in Java that parses ...

rails collection_select vs. select

collection_select and select Rails helpers: Which one should I use? I can t see a difference in both ways. Both helpers take a collection and generates options tags inside a select tag. Is there a ...

RubyCAS-Client question: Rails

I ve installed RubyCAS-Client version 2.1.0 as a plugin within a rails app. It s working, but I d like to remove the ?ticket= in the url. Is this possible?

Ordering a hash to xml: Rails

I m building an xml document from a hash. The xml attributes need to be in order. How can this be accomplished? hash.to_xml

multiple ruby extension modules under one directory

Can sources for discrete ruby extension modules live in the same directory, controlled by the same extconf.rb script? Background: I ve a project with two extension modules, foo.so and bar.so which ...

Text Editor for Ruby-on-Rails

guys which text editor is good for Rubyonrails? i m using Windows and i was using E-Texteditor but its not free n its expired now can anyone plese tell me any free texteditor? n which one is best an ...

热门标签