相关文章推荐
发财的枕头  ·  使用Netsuite ...·  1 周前    · 
咆哮的青蛙  ·  access vba 行数 表示-掘金·  1 年前    · 
魁梧的排球  ·  Android: ...·  1 年前    · 
激动的瀑布  ·  Event ID 10016 is ...·  1 年前    · 
Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

I need to install ruby 3.0.0 on my machine to upgrade my ROR application gems, I use RVM as version management but when I write RVM install 3.0.0 I have this error

Error running '__rvm_make -j4',

please read /Users/hadii/.rvm/log/1620191440_ruby-3.0.0/make.log

There has been an error while running makes. Halting the installation.

when I tail make.log file I found this :

tail /Users/hadii/.rvm/log/1620191440_ruby-3.0.0/make.log
./revision.h unchanged
compiling version.c
linking miniruby
warning: no debug symbols in executable (-arch x86_64)
generating x86_64-darwin19-fake.rb
x86_64-darwin19-fake.rb updated
warning: no debug symbols in executable (-arch x86_64)
make: *** [exe/ruby] Segmentation fault: 11
make: *** Deleting file `exe/ruby'
++++++++++++ support:384 @__rvm_make:0> return 2

I google a lot and do a lot of things like uninstall RVM, ruby from my machine and reinstall it again, reconfigure RVM whit this command :

RVM get head

RVM get master

I even follow this link but nothings change, even I try to install a newer version of ruby-like 3.0.1 and even try this command

RVM install "ruby-3.0.0"

but I couldn't install any new version of ruby, please help me

I work on my iMac that my os version is Catalina

ruby version which works now 2.7.1

Rails 5.2.5

rvm 1.29.12

UPDATE:

I try to install ruby manully and follow this tutorials but get this error messages

BASERUBY = /Users/hadii/.rvm/rubies/ruby-2.7.1/bin/ruby --disable=gems
    CC = clang -fdeclspec
    LD = clang
    LDSHARED = clang -fdeclspec -dynamiclib
    CFLAGS = -O3 -ggdb3 -Wall -Wextra -Wdeprecated-declarations -Wdivision-by-zero -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -Wshorten-64-to-32 -Wwrite-strings -Wmissing-noreturn -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wunused-variable -Wextra-tokens -std=gnu99  -pipe
    XCFLAGS = -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fno-strict-overflow -fvisibility=hidden -DRUBY_EXPORT -fPIE -I. -I.ext/include/x86_64-darwin19 -I./include -I. -I./enc/unicode/12.1.0
    CPPFLAGS = -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT
    DLDFLAGS = -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress -fstack-protector-strong -Wl,-pie -framework Security -framework Foundation
    SOLIBS = -lpthread -lgmp -ldl -lobjc
    LANG = en_US.UTF-8
    LC_ALL =
    LC_CTYPE =
    MFLAGS =
Apple clang version 11.0.0 (clang-1100.0.33.8)
Target: x86_64-apple-darwin19.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
./revision.h unchanged
make: *** [exe/ruby] Segmentation fault: 11
make: *** Deleting file `exe/ruby'
                I do what you said but this is my response about rvm get head: scripts/snapshot: Can't unlink already-existing object scripts/tools: Can't unlink already-existing object scripts/upgrade: Can't unlink already-existing object scripts/wrapper: Can't unlink already-existing object scripts/zsh/: Can't restore time scripts/zsh/Completion/: Can't restore time scripts/zsh/Completion/_rvm: Could not remove symlink scripts/zsh/Completion/_rvm tar: Error exit delayed from previous errors. Could not extract RVM sources. Could not update RVM, please report to github.com/rvm/rvm/issues
– Hadii Varposhti
                May 5, 2021 at 11:21
                and this is rsponse of  ❯ rvm install 3.0.0 --with-gcc=clang ruby-3.0.0 - #removing src/ruby-3.0.0 - please wait Checking requirements for osx. We don't know how to ensure that selected compiler 'clang' exists. Updating certificates bundle '/usr/local/etc/[email protected]/cert.pem' Requirements installation successful. Warning: found user selected compiler 'clang', this will suppress RVM auto detection mechanisms. Error running '__rvm_make -j4', please read /Users/hadii/.rvm/log/1620213626_ruby-3.0.0/make.log  There has been an error while running make. Halting the installation.
– Hadii Varposhti
                May 5, 2021 at 11:23

after longtime googling and have a lot of issues that I explained before, I found this link that explained these three command witch help to fix these issues.

$ sudo rm -rf /Library/Developer/CommandLineTools
$ xcode-select --install
$ sudo xcode-select -s /Library/Developer/CommandLineTools
        

Thanks for contributing an answer to Stack Overflow!

  • Please be sure to answer the question. Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.