Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

brew install rbenv/tap/[email protected] not working anymore #1

Closed
MathieuDerelle opened this issue Oct 4, 2020 · 27 comments
Closed

Comments

@MathieuDerelle
Copy link

MathieuDerelle commented Oct 4, 2020

➜  ~ brew install rbenv/tap/[email protected]
Error: No available formula or cask with the name "rbenv/tap/[email protected]".
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
@eddroid
Copy link

eddroid commented Oct 6, 2020

brew tap rbenv/tap
brew install rbenv/tap/[email protected]

@namratasaun
Copy link

image
getting this error. any idea @MathieuDerelle @eddroid

@eddroid
Copy link

eddroid commented Aug 5, 2021

Are you on the new Apple Silicon M1 device? Try #4 ➡️ #2

@harry-at-cogwrite
Copy link

Stuck - mysql workbench needs openssl 1.0 which I cannot seem to install on Monterey 12.3
i tried:
1-command_error_mysql_workbench_needs_openssl_1 0_220318_version_8 0 21

then:
2_openssl_1 0_cannot_install_220318_version_8 0 21

@eddroid
Copy link

eddroid commented Mar 19, 2022

@harry-at-cogwrite It might be this line:

Cannot create directory /usr/local/etc/openssl/certs: Permission denied

If you're on a Mac with multiple user accounts, typically only one owns the /usr/local directory. How to fix that given your context is a Unix-style permissions issue. Do you have only one dev user account (un: harry) or do you want multiple to be able to install packages? Are you a "sudo all the things" person? Are you comfortable with the chown and chmod shell commands?

Have you tried asking the mysqlworkbench folks? (e.g. Permission denied error)

It looks like you're trying to do a mysqldump from a remote host. Have you tried sshing into the host to dump the data from there instead?

@harry-at-cogwrite
Copy link

harry-at-cogwrite commented Mar 19, 2022

Thank you Eddroid! That was exactly the problem. I have multiple user accounts and so found at /usr/local/opt/openssl i had multiple entries and changed them chown'd them all to me. which was like this:

lrwxr-xr-x  1 harry  admin    28B Jan 28 12:57 [email protected] -> ../Cellar/[email protected]/1.1.1m
lrwxr-xr-x  1 harry  admin    25B Mar 19 06:10 openssl@3 -> ../Cellar/openssl@3/3.0.2
lrwxr-xr-x  1 harry  admin    25B Mar 19 06:10 openssl -> ../Cellar/openssl@3/3.0.2
lrwxr-xr-x  1 harry  admin    28B Mar 19 07:25 [email protected] -> ../Cellar/[email protected]/1.0.2t

so i then had to do this:

ln -sfn /usr/local/Cellar/[email protected]/1.0.2t /usr/local/opt/openssl to have

/usr/local/opt/openssl/lib/libssl.1.0.0.dylib visible as such; the mysqldump command then worked fine, and after testing some things, I then issued this command

ln -sfn /usr/local/Cellar/openssl@3/3.0.2 /usr/local/opt/openssl

to put the apple approved openssl 3 back in place.

turns out there are some bugs seen with certain unicode sequences that still prevented me from dumping a remote mysql database to local and the posting it with mysql or mysql workbech to a database, so i had to roll back to mysql 8.0.13 to be able to upload the backup (utf8 encoding) to a local database.

Thanks for pointing that out. i eventually did see it. I also see many issues out there with legacy code that still looks for that libssl.1.0.0.dynlib, so at least next time I will know what to do!

thanks so much!!

harry

@eddroid
Copy link

eddroid commented Mar 19, 2022

There are usually compile args like --openssldir or --with-openssl-dir and env vars like OPENSSL_CONFIG you can use to override OpenSSL paths without doing the ln dance, but whatever works is good.

@tracey-le
Copy link

I have the issue on #4 with a m1 MacBook 2020, but #2 does not work as:

This updates the formula from OpenSSL 1.0.2t to the latest 1.0.2u.

It also adds a small patch to add a build target darwin64-arm64-cc for the new Apple Silicon M1 ARM based Macs.

mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')

Reason: tried: '/usr/local/opt/openssl/lib/libssl.1.0.0.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/usr/local/lib/libssl.1.0.0.dylib' (no such file), '/usr/lib/libssl.1.0.0.dylib' (no such file), '/opt/homebrew/Cellar/[email protected]/1.0.2u/lib/libssl.1.0.0.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64'))

@eddroid
Copy link

eddroid commented Mar 22, 2022

@t1-tracey That looks like an M1 MacBook problem. The fact that you have an arm64 version of libssl hints that you may already have OpenSSL installed for M1, but you're trying to install something else on top that isn't Apple Silicon compatible yet. That comment belongs in #2 or possibly a separate issue if there is some other thing you're installing that's trying to pull in OpenSSL for x86.

@tracey-le
Copy link

Yeah sorry to clarify — it seems like #2 was not the answer for me, in response to this post:

Are you on the new Apple Silicon M1 device? Try #4 ➡️ #2

I got issue solved by just changing to ruby 3.0.2 rather than using 2.6.x, but this part is probably not relevant anymore here

@RafaBlockDev
Copy link

RafaBlockDev commented May 14, 2022

It worked for me this:

`curl https://raw.githubusercontent.com/rbenv/homebrew-tap/e472b7861b49cc082d1db0f66f265368da107589/Formula/openssl%401.0.rb -o [email protected]

brew install ./[email protected]

rm -rf ./[email protected]`

Go a head and build your project!

champion-trophy

@smaboshe
Copy link

smaboshe commented May 17, 2022

Thanks, @RafaBlockDev. I tried this and get an error even with makedepend installed:

make
depend

making depend in crypto...
../util/domd: line 23: makedepend: command not found
mv: Makefile.new: No such file or directory
make[1]: *** [local_depend] Error 127
make: *** [depend] Error 1

Do not report this issue to Homebrew/brew or Homebrew/core!
% which makedepend
/opt/homebrew/bin/makedepend

Any thoughts on what might be happening?

@RafaBlockDev
Copy link

Did you copy and paste right this one command?

Try again now with this order mate @smaboshe 🤔

curl https://raw.githubusercontent.com/rbenv/homebrew-tap/e472b7861b49cc082d1db0f66f265368da107589/Formula/openssl%401.0.rb -o [[email protected]](mailto:[email protected]) brew install ./[email protected] rm -rf ./[email protected]

@smaboshe
Copy link

Thanks!

I did a copy and paste again and still get the same issue ... 🤔

@RafaBlockDev
Copy link

Hey man! I found something could help you! 👋🏻

There are icc targets in 1.0.2[!]. And quite elaborate in sense that the even eliminate dependencies on icc run-times components, so that you can move build to computer without icc installed. Anyway, the problem was addressed in openssl/openssl#6261. 🚀

bookmark

@RafaBlockDev
Copy link

You can close the issue @MathieuDerelle 😅

@smaboshe
Copy link

smaboshe commented Jun 16, 2022

After the recent changes, I am experiencing the same as described in issue 4.

% brew install rbenv/tap/[email protected]
==> Downloading https://www.openssl.org/source/openssl-1.0.2t.tar.gz
######################################################################## 100.0%
==> Installing [email protected] from rbenv/tap
==> perl ./Configure --prefix=/opt/homebrew/Cellar/[email protected]/1.0.2t --openssldir=/opt/homebrew/etc/openssl no-ssl2 no-ssl3 no-zlib shared enable-cms darwin64-x86_64-cc enable-ec_nistp_64_gcc_128
==> make depend
==> make
Last 15 lines from ~/Library/Logs/Homebrew/[email protected]/03.make:
 ^
x86_64cpuid.s:273:10: error: unknown token in expression
 cmpq $0,%rax
         ^
x86_64cpuid.s:273:10: error: invalid operand
 cmpq $0,%rax
         ^
x86_64cpuid.s:274:9: error: unknown token in expression
 cmoveq %rcx,%rax
        ^
x86_64cpuid.s:274:9: error: invalid operand
 cmoveq %rcx,%rax
        ^
make[1]: *** [x86_64cpuid.o] Error 1
make: *** [build_crypto] Error 1

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

These open issues may also help:
`brew install rbenv/tap/[email protected]` not working anymore https://github.com/rbenv/homebrew-tap/issues/1

@smaboshe
Copy link

smaboshe commented Jun 16, 2022

This works for me:

brew install nutcracker/tap/[email protected]

(Ref)

@infiniteloopltd
Copy link

Same issue:

==> 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/[email protected]
==> Downloading https://www.openssl.org/source/openssl-1.0.2t.tar.gz
######################################################################### 100.0%
==> Installing [email protected] from rbenv/tap
==> Downloading https://formulae.brew.sh/api/formula.jws.json
######################################################################### 100.0%
==> perl ./Configure --prefix=/usr/local/Cellar/[email protected]/1.0.2t --openssldir=
==> make depend
==> make
==> make test
Last 15 lines from /Users/fiachreid/Library/Logs/Homebrew/[email protected]/04.make:
g = 2
Salt = 8CEC6F029BD65A009E2F199F3913332F58613D94
Verifier = 173A2900814DE3EF4FCA17B16617CEE64037339310335D1E2994B1DA08B64D5247A8E89B17EB9687E1A842A6B2FAF7AA9BF28A6862B16FFF9707AED9DAE283D0C5900EA62F34E657157F569700E71C15773EE402CC680431DD9EED4E46009D937EDB31550FBD63B62AB482B59D1BBAC6CF1DFA8136BD597C602692A5AD8D46A6
b = 1BA1D065AB98234344D6E2E3EAF7714D1E0350330E49E87F2D73AC421D2E296B
B = 8DD7EB3C5A602382B5658F1CCC0CE0E5CCF48BB8C8FA5506931960E113E2651DD588776CA798E63018A863E51C1E021467E61C282C5C2C4096B2C0EB07A77E7051DCB0BAC0EB22C58507EDDD7F5045F79CFCAB084322F24CC72800D47A42E549952691C2F450ED772F976605F9988D92AD065D5B76317C20F84AE79E69691813
a = C4338EABE6836CE511F7841564D394C3B275A9A5B9CD260EBEABB54F71C4247F
A = 24AA72365085081D190014E00F21B30DDFB959F3145446097657392A9491B3F991A05A0B948332909597F6F3EF7C5E7E9F494DA50FA19F74390A1FD2CA9B1E0B2914B839DAD0000C998CD82F784B1940EEBF94D853DA1F793C5119DE1E927FE8DFAAD442C008875FE55C6575FDB638F3A93B212380CC7E6A8B68BD58F6761E64
Client's key = 4672A24D39DED6EAC86E9A492AFB277951125CFAE6DA047D50E581AC8571CC1B689187BDED63AFAF2E62CF67100752271ABB1C619BF94FAA1D979B645F3F2F05495C5508679D73B44B8E593AD78BA159DCD009006357FF03385A24881FED46AE73D380FB8547A96A0B75E5195AFDDDCCF20CE2C85B5353F424A049F807C32EC
Server's key = 4672A24D39DED6EAC86E9A492AFB277951125CFAE6DA047D50E581AC8571CC1B689187BDED63AFAF2E62CF67100752271ABB1C619BF94FAA1D979B645F3F2F05495C5508679D73B44B8E593AD78BA159DCD009006357FF03385A24881FED46AE73D380FB8547A96A0B75E5195AFDDDCCF20CE2C85B5353F424A049F807C32EC
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

@Alireza17224
Copy link

Same issue here

@mislav
Copy link
Member

mislav commented Oct 16, 2023

Should be fixed by 4af536a

@mislav mislav closed this as completed Oct 16, 2023
@jlugner
Copy link

jlugner commented Dec 14, 2023

Still having this issue on M1. Getting the make error @smaboshe was having:

% brew install rbenv/tap/[email protected]
==> Downloading https://formulae.brew.sh/api/cask.jws.json
############################################################################################################################################################################################################################################## 100.0%
==> Fetching rbenv/tap/[email protected]
==> Downloading https://www.openssl.org/source/openssl-1.0.2u.tar.gz
############################################################################################################################################################################################################################################## 100.0%
==> Installing [email protected] from rbenv/tap
==> Downloading https://formulae.brew.sh/api/formula.jws.json
############################################################################################################################################################################################################################################## 100.0%
==> Patching
==> perl ./Configure --prefix=/opt/homebrew/Cellar/[email protected]/1.0.2u --openssldir=/opt/homebrew/etc/openssl no-ssl2 no-ssl3 no-zlib shared enable-cms darwin64-arm64-cc enable-ec_nistp_64_gcc_128
==> make depend
Last 15 lines from /Users/me/Library/Logs/Homebrew/[email protected]/02.make:
2023-12-14 18:35:58 +0000

make
depend

making depend in crypto...
../util/domd: line 23: makedepend: command not found
mv: Makefile.new: No such file or directory
make[1]: *** [local_depend] Error 127
make: *** [depend] Error 1

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

Not sure if it makes a difference, but I do have makedepend available on my system:

% which makedepend
/opt/homebrew/bin/makedepend

@mislav
Copy link
Member

mislav commented Dec 15, 2023

Not sure if it makes a difference, but I do have makedepend available on my system:

I do not have makedepend and I cannot reproduce the failure on M1. Maybe temporarily unlinking it from Homebrew would help [email protected] compilation succeed?

@jlugner
Copy link

jlugner commented Dec 16, 2023

Not sure if it makes a difference, but I do have makedepend available on my system:

I do not have makedepend and I cannot reproduce the failure on M1. Maybe temporarily unlinking it from Homebrew would help [email protected] compilation succeed?

Thanks for replying.

Seems to make no difference:

➜  ruby_project git:(master) ✗ brew unlink makedepend
Unlinking /opt/homebrew/Cellar/makedepend/1.0.8... 2 symlinks removed.
➜  ruby_project git:(master) ✗ brew install rbenv/tap/[email protected]
Running `brew update --auto-update`... ==> Auto-updated Homebrew!
Updated 3 taps (homebrew/cask-versions, homebrew/services and homebrew/core). ==> New Formulae
opensca-cli

You have 4 outdated formulae installed. ==> Fetching rbenv/tap/[email protected] ==> Downloading https://www.openssl.org/source/openssl-1.0.2u.tar.gz
Already downloaded: /Users/me/Library/Caches/Homebrew/downloads/cb69ca61319d7186eb55397eb90cec0c2f56d8722af71a851bb35194ecaf3359--openssl-1.0.2u.tar.gz ==> Installing [email protected] from rbenv/tap ==> Patching
==> perl ./Configure --prefix=/opt/homebrew/Cellar/[email protected]/1.0.2u --openssldir=/opt/homebrew/etc/openssl no-ssl2 no-ss ==> make depend
Last 15 lines from /Users/me/Library/Logs/Homebrew/[email protected]/02.make:
2023-12-16 08:00:28 +0000

make
depend

making depend in crypto...
../util/domd: line 23: makedepend: command not found
mv: Makefile.new: No such file or directory
make[1]: *** [local_depend] Error 127
make: *** [depend] Error 1

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

@mislav
Copy link
Member

mislav commented Dec 17, 2023

Thanks for checking. Feel free to open a new issue for this problem. I do not know how to go about investigating this, however, since I can't reproduce nor do I understand the logic of the build script that corresponds to the error trace.

@jlugner
Copy link

jlugner commented Dec 17, 2023

Thanks for checking. Feel free to open a new issue for this problem. I do not know how to go about investigating this, however, since I can't reproduce nor do I understand the logic of the build script that corresponds to the error trace.

Thanks, will do. Don't really know how to proceed myself.

@hellysmile
Copy link

Hey, I had same issue and prepared a patched version brew Formula

https://gist.github.com/hellysmile/f58a6e32656ac1101cf6a64d0674f2c8 with openssl 1.0.2 patch from https://github.com/lavabit/magma

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests