rbenv install 3.3.3 | mac OS 14.5 | M1 Chip | configure: exit 77 #2420
Replies: 3 comments 3 replies
-
% sudo rm -rf /Library/Developer/CommandLineTools Reinstalled command line developer tools .Got same issue |
Beta Was this translation helpful? Give feedback.
-
Hi, the title of what you posted mentions that you have an M1 machine. However, ruby-build thinks it's running under
So, something doesn't match here. Are you using hacks like |
Beta Was this translation helpful? Give feedback.
-
Damn follow this Tutorial ,Success |
Beta Was this translation helpful? Give feedback.
-
BUILD FAILED (macOS 14.5 on x86_64 using ruby-build 20240702)
You can inspect the build directory at /var/folders/ms/81b1597x1gnbqxncn1zlrhv40000gn/T/ruby-build.20240705154654.75014.bVSHVN
See the full build log at /var/folders/ms/81b1597x1gnbqxncn1zlrhv40000gn/T/ruby-build.20240705154654.75014.log
cd /var/folders/ms/81b1597x1gnbqxncn1zlrhv40000gn/T/ruby-build.20240705154654.75014.bVSHVN
==> Downloading ruby-3.3.3.tar.gz...
-> curl -q -fL -o ruby-3.3.3.tar.gz https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.3.tar.gz
-> tar xzf ruby-3.3.3.tar.gz
cd /var/folders/ms/81b1597x1gnbqxncn1zlrhv40000gn/T/ruby-build.20240705154654.75014.bVSHVN/ruby-3.3.3
==> Installing ruby-3.3.3...
-> ./configure "--prefix=$HOME/.rbenv/versions/3.3.3" --enable-shared --with-gmp-dir=/usr/local/opt/gmp --with-ext=openssl,psych,+ --with-openssl-dir=/usr/local/opt/[email protected]
checking for ruby... /Users/hom/.rvm/rubies/ruby-2.6.3/bin/ruby
tool/config.guess already exists
tool/config.sub already exists
checking build system type... x86_64-apple-darwin23.5.0
checking host system type... x86_64-apple-darwin23.5.0
checking target system type... x86_64-apple-darwin23.5.0
checking for ld... ld
checking for ar... ar
checking for clang++... clang++
checking for nm... nm
checking for objcopy... no
checking for objdump... objdump
checking for ranlib... ranlib
checking for strip... strip
checking for gcc... clang
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... configure: error: in
/var/folders/ms/81b1597x1gnbqxncn1zlrhv40000gn/T/ruby-build.20240705154654.75014.bVSHVN/ruby-3.3.3': configure: error: cannot run C compiled programs. If you meant to cross compile, use
--host'.See `config.log' for more details
external command failed with status 77
config.log
Beta Was this translation helpful? Give feedback.
All reactions