Apple Intel macOS Ventura 13.1(M1): unable to install ruby 2.7.7, 3.1.3, 3.2.0, 3.0.5 #2127
-
Help me.... plz help me... i tried install ruby 100times for create git blog by local. but ❯ rbenv install 2.7.7
To follow progress, use 'tail -f /var/folders/_q/0v9yhl5j1wz64t17fwvzljsw0000gn/T/ruby-build.20230116161632.64650.log' or pass --verbose
Downloading openssl-1.1.1s.tar.gz...
-> https://dqw8nmjcqpjn7.cloudfront.net/c5ac01e760ee6ff0dab61d6b2bbd30146724d063eb322180c6f18a6f74e4b6aa
Installing openssl-1.1.1s...
Installed openssl-1.1.1s to /Users/kim_joohee/.rbenv/versions/2.7.7
Downloading ruby-2.7.7.tar.bz2...
-> https://cache.ruby-lang.org/pub/ruby/2.7/ruby-2.7.7.tar.bz2
Installing ruby-2.7.7...
WARNING: ruby-2.7.7 is nearing its end of life.
It only receives critical security updates, no bug fixes.
ruby-build: using readline from homebrew
ruby-build: using gmp from homebrew
BUILD FAILED (macOS 13.1 using ruby-build 20221225)
Inspect or clean up the working tree at /var/folders/_q/0v9yhl5j1wz64t17fwvzljsw0000gn/T/ruby-build.20230116161632.64650.w87tlo
Results logged to /var/folders/_q/0v9yhl5j1wz64t17fwvzljsw0000gn/T/ruby-build.20230116161632.64650.log
Last 10 log lines:
compiling objspace_dump.c
compiling date_strftime.c
compiling date_strptime.c
installing default date_core libraries
installing default console libraries
linking shared-object objspace.bundle
linking shared-object io/console.bundle
linking shared-object nkf.bundle
linking shared-object date_core.bundle
make: *** [build-ext] Error 2 I tried many things. $ brew install libyaml
$ brew update && brew upgrade ruby-build
❯ rbenv uninstall 2.6.10p210
rbenv: version `2.6.10p210' not installed
❯ rbenv uninstall 2.6.1
rbenv: version `2.6.1' not installed
❯ rbenv uninstall 2.6.10
rbenv: version `2.6.10' not installed but I still unable to install ruby. ❯ ruby --version
ruby 2.6.10p210 (2022-04-12 revision 67958) [universal.arm64e-darwin22] |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
Hi, I had a problem similar to yours. I tried to install version 2.7.6. 3.2.0 failed to install them. So I did in the rbenv installation guide there is a link that this resource Suggested build environment in the mac os section executes the commands.
I used this because I wanted to install the 3. above but it is for the 2. too also install rust Then I tried to install 3.2.0 again and I succeeded. Try to see if it works for you. |
Beta Was this translation helpful? Give feedback.
-
@woolfiekim Often people are better able to help with build errors if you include the full log output. By default, ruby-build does not print full output because that would be overwhelming for most usages. However, the output does contain the filename where the full log is written. You can paste that file as a GitHub Gist, edit your original question, and paste the link there. |
Beta Was this translation helpful? Give feedback.
-
I solved this problem myself. I used 'brew' instead 'rbenv' $ brew install ruby@2.7
$ echo 'export PATH="/usr/local/opt/ruby@2.7/bin:$PATH"'
$ bundle install
$ bundel exec jekyll serve then I success!!! YESSSSSSSS!!!!! |
Beta Was this translation helpful? Give feedback.
-
I referred to the article on that link https://codecamper.me/blog/122/ If the ruby version does not change after executing the rbenv global command, Run the rbenv init and paste the output eval ~ line after the file that appears in the second line. $ rbenv init eval "$(rbenv init - zsh)" if file that appears in the second line is ~/.zshrc and paste eval "$(rbenv init - zsh)" If you run the terminal again after pasting the above, you can see that the ruby version is applied well. $ ruby -v |
Beta Was this translation helpful? Give feedback.
@woolfiekim Often people are better able to help with build errors if you include the full log output. By default, ruby-build does not print full output because that would be overwhelming for most usages. However, the output does contain the filename where the full log is written. You can paste that file as a GitHub Gist, edit your original question, and paste the link there.