rbenv / homebrew-tap

24 stars 22 forks source link

BUILD FAILED rbenv install 2.1.5 on macOS Monterey Version 12.1 x86_64 #8

Closed alemens closed 1 year ago

alemens commented 2 years ago

Environment

Goal

Steps to reproduce

$ RUBY_CONFIGURE_OPTS="--with-openssl-dir=$(brew --prefix openssl@1.0)" rbenv install 2.1.5
Downloading ruby-2.1.5.tar.bz2...
-> https://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.5.tar.bz2
Installing ruby-2.1.5...

WARNING: ruby-2.1.5 is past its end of life and is now unsupported.
It no longer receives bug fixes or critical security updates.

ruby-build: using readline from homebrew

BUILD FAILED (macOS 12.1 using ruby-build 20211227)

Inspect or clean up the working tree at /var/folders/lr/r58bs_3n2014mps32rflkmxc0000gn/T/ruby-build.20220111222124.32533.rFiuBU
Results logged to /var/folders/lr/r58bs_3n2014mps32rflkmxc0000gn/T/ruby-build.20220111222124.32533.log

Last 10 log lines:
The Ruby readline extension was not compiled.
The Ruby zlib extension was not compiled.
ERROR: Ruby install aborted due to missing extensions
Configure options used:
  --prefix=/Users/alemens/.rbenv/versions/2.1.5
  --with-readline-dir=/usr/local/opt/readline
  --with-openssl-dir=/usr/local/opt/openssl@1.0
  CC=clang
  LDFLAGS=-L/Users/alemens/.rbenv/versions/2.1.5/lib 
  CPPFLAGS=-I/Users/alemens/.rbenv/versions/2.1.5/include
Victorcorcos commented 1 year ago
Screen Shot 2023-07-13 at 06 10 29

Here it doesn't 😢

$ brew install rbenv/tap/openssl@1.0

==> Tapping rbenv/tap
Cloning into '/usr/local/Homebrew/Library/Taps/rbenv/homebrew-tap'...
remote: Enumerating objects: 5, done.
remote: Counting objects: 100% (5/5), done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 5 (delta 0), reused 5 (delta 0), pack-reused 0
Receiving objects: 100% (5/5), done.
Tapped 1 formula (13 files, 9.9KB).
==> Downloading https://formulae.brew.sh/api/cask.jws.json
############################################################################################################################################################### 100.0%
==> Fetching rbenv/tap/openssl@1.0
==> Downloading https://www.openssl.org/source/openssl-1.0.2t.tar.gz
############################################################################################################################################################### 100.0%
==> Installing openssl@1.0 from rbenv/tap
Warning: Your Xcode (13.0) is outdated.
Please update to Xcode 13.2.1 (or delete it).
Xcode can be updated from the App Store.

==> Downloading https://formulae.brew.sh/api/formula.jws.json
############################################################################################################################################################### 100.0%
==> perl ./Configure --prefix=/usr/local/Cellar/openssl@1.0/1.0.2t --openssldir=/usr/local/etc/openssl no-ssl2 no-ssl3 no-zlib shared enable-cms darwin64-x86_64-cc en
==> make depend
say ok
==> make
==> make test
Last 15 lines from /Users/victorcosta/Library/Logs/Homebrew/openssl@1.0/04.make:
g = 2
Salt = 935C2E280364A10401752F6AE37C2CF0598D33F0
Verifier = 752549D49E60C06BE920DE62FFBFD1C0FFB17145B25B9B4E297C99FE31A8720B628C1D829D8E673D7396C2170889D0A40F8FDAAD027625664016738FD3BF1EC961E7CA80DA3780425F78E1A18B3F4BDE88C45327E92F0F5C3591B9559C2BAECAB70B30CBAD3AB960DBC9A94694F19CE480E3BA92A5627A4F571645F62DEBD501
b = 73DF2815F6FAEB934B9DB3F5085F10CBE40E58800D303ED6EC1FA58F94ADB4FB
B = 3832C1C5008857EEE741BB46C2197918853671EF9A17331BC35647144AF0764A933A6FA7D5BE6C72A6D79E1DC45FC261B77B503E7B770F8D8A7CEE5B40687D8E3E441320D63C46568FF5E9DC9C0F503DDF5ADA8A81C544FC392E9631837B1E33C034239F15E6ED8D622C30A755CC5B8FBF148065FACA7E574B641FD0D30C6ECE
a = 5C1905906B996EB464C393B1E8DCAD4A793CC20FD85156225AAEB2B6BEC51112
A = C3368B4F5AAE1FB7EC77891E5799FD76CEE63657DC996F11025810C7873A15DBE657251F97BD9EEFE871C9A3FBB67C0D7B7A21D5A806ED64069C57594293019523034EF9F517CB213081DA4E6AA0392E1371ECD9AEA54978E109C2F75B611C9F969195CB023ECFFD96FA5FAE735915F5B78B574A63BFC806861BBC708762477B
Client's key = 3A2202FAADBACC7A1636D1109D190DA682BD92A72CD2E592B9A34E73EE87490A852A63EF6E75610C956D653DBD8E76E01F562F81B994A00F34D1728441DAADDDA0C3464E7C53D0F9DC5E10010D946F6ECB5D549538298915B9CC743617715FC49F227FC5F030B82E0696FF1CC92A4B7A21C7162016751AA0579EDA5C24FCAD63
Server's key = 3A2202FAADBACC7A1636D1109D190DA682BD92A72CD2E592B9A34E73EE87490A852A63EF6E75610C956D653DBD8E76E01F562F81B994A00F34D1728441DAADDDA0C3464E7C53D0F9DC5E10010D946F6ECB5D549538298915B9CC743617715FC49F227FC5F030B82E0696FF1CC92A4B7A21C7162016751AA0579EDA5C24FCAD63
CMS consistency test
/usr/bin/perl cms-test.pl
CMS => PKCS#7 compatibility tests
signed content DER format, RSA key: verify error
make[1]: *** [test_cms] Error 1
make: *** [tests] Error 2

If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core):
  https://github.com/rbenv/homebrew-tap/issues

These open issues may also help:
`brew install rbenv/tap/openssl@1.0` not working anymore https://github.com/rbenv/homebrew-tap/issues/1
mislav commented 1 year ago

@alemens Not sure what happened there, but closing due to staleness. (Sorry to have missed this!)

In the future in general, it would have been useful to post your full build log (see the Results logged to line). The BUILD FAILED output itself often does not contain enough information for outside observers to be able to debug what precisely went wrong.