Closed
Description
Hey there!
I am trying to install Ruby 2.7.2 on my new Apple Silicon Mac but am running into some issues, which I think might be related to ruby-build
, but not I am not 100%.
I have setup an alias on my ~/.zshrc
for Homebrew like this:
alias ibrew="arch -x86_64 /usr/local/bin/brew"
I have run the following commands in order to install rbenv
:
ibrew install rbenv
rbenv init
I have updated my .zshrc file with:
eval "$(rbenv init -)"
export RUBY_CONFIGURE_OPTS="--with-openssl-dir=$(brew --prefix [email protected])"
And then I ran the following command:
rbenv install 2.7.2
I have also tried prefixing the rbenv
command with arch -x86_64
but that did not work either.
These are the console logs that I am getting when I am trying to install Ruby:
Downloading ruby-2.7.2.tar.bz2...
-> https://cache.ruby-lang.org/pub/ruby/2.7/ruby-2.7.2.tar.bz2
Installing ruby-2.7.2...
ruby-build: using readline from homebrew
BUILD FAILED (macOS 11.1 using ruby-build 20201221)
Inspect or clean up the working tree at /var/folders/z1/dm8dx54j1dlgxk4zrq__x22r0000gn/T/ruby-build.20201221160748.90156.i6p4m0
Results logged to /var/folders/z1/dm8dx54j1dlgxk4zrq__x22r0000gn/T/ruby-build.20201221160748.90156.log
Last 10 log lines:
installing default nkf libraries
compiling date_strftime.c
installing default console libraries
linking shared-object objspace.bundle
compiling date_strptime.c
linking shared-object io/nonblock.bundle
linking shared-object io/console.bundle
linking shared-object nkf.bundle
linking shared-object date_core.bundle
make: *** [build-ext] Error 2
If you have any ideas for how to make this work, please let me know!
Thanks.
Metadata
Metadata
Assignees
Labels
No labels