Please note we will close your issue without comment if you delete, do not read or do not fill out the issue checklist below and provide ALL the requested information. If you repeatedly fail to use the issue template, we will block you from ever submitting issues to Homebrew again.
brew update and can still reproduce the problem?brew doctor, fixed all issues and can still reproduce the problem?brew gist-logs <formula> (where <formula> is the name of the formula that failed) and included the output link?brew gist-logs didn't work: ran brew config and brew doctor and included their output with your issue?Update [email protected]
https://gist.github.com/lewis6991/c23bbcc2a8611a843658b3a9efd49600
❯ brew upgrade [email protected]
==> Upgrading 1 outdated package:
[email protected] 1.1.1g -> 1.1.1h
==> Upgrading [email protected] 1.1.1g -> 1.1.1h
==> Downloading https://curl.haxx.se/ca/cacert-2020-01-01.pem
Already downloaded: /devtools/.cache/downloads/e2b36a2c425753a7b9d6a8eccb44b33cb7ed93cb91f96dafcf35fa18d8e0513a--cacert-2020-01-01.pem
==> Downloading https://cpan.metacpan.org/authors/id/L/LE/LEONT/Test-Harness-3.42.tar.gz
Already downloaded: /devtools/.cache/downloads/4a5728e2132a470084886ad6e6278c6b23584e314ee60dcd57ea679202d5da4a--Test-Harness-3.42.tar.gz
==> Downloading https://cpan.metacpan.org/authors/id/E/EX/EXODIST/Test-Simple-1.302175.tar.gz
Already downloaded: /devtools/.cache/downloads/af880136321fd9982d8eb9dd29977fec40c093fb2fd48d6fff85de8d6bb9a5b5--Test-Simple-1.302175.tar.gz
==> Downloading https://www.openssl.org/source/openssl-1.1.1h.tar.gz
Already downloaded: /devtools/.cache/downloads/074582038ae735e83b4ab0ea44ac5b654fa5502b7aadbcb01237403ac0878ceb--openssl-1.1.1h.tar.gz
==> perl Makefile.PL INSTALL_BASE=/devtools/linuxbrew/Cellar/[email protected]/1.1.1h/libexec
Last 15 lines from /scratch/lewrus01/.cache/Homebrew/Logs/[email protected]/01.perl:
2020-10-12 13:42:05 +0100
perl
Makefile.PL
INSTALL_BASE=/devtools/linuxbrew/Cellar/[email protected]/1.1.1h/libexec
Can't locate ExtUtils/MakeMaker.pm in @INC (@INC contains: /devtools/linuxbrew/Cellar/[email protected]/1.1.1h/libexec/lib/perl5 /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at Makefile.PL line 8.
BEGIN failed--compilation aborted at Makefile.PL line 8.
READ THIS: https://docs.brew.sh/Troubleshooting
To not error
brew install commands)System perl is 5.16.3
OS: RHE7
brew upgrade [email protected]
What happens if you run brew install perl beforehand?
It's already installed 😕
❯ brew install perl
Warning: perl 5.32.0 is already installed and up-to-date
To reinstall 5.32.0, run `brew reinstall perl`
I have got the same error while install brew the first time under my home directory.
install libcrypto.so -> /home/zhuj6/.linuxbrew/Cellar/[email protected]/1.1.1h/lib/libcrypto.so
install libcrypto.so.1.1 -> /home/zhuj6/.linuxbrew/Cellar/[email protected]/1.1.1h/lib/libcrypto.so
ar: /home/zhuj6/.linuxbrew/Cellar/[email protected]/1.1.1h/lib/libcrypto.so: file format not recognized
ar: /home/zhuj6/.linuxbrew/Cellar/[email protected]/1.1.1h/lib/libcrypto.so.new: file format not recognized
make: *** [install_dev] Error 1
READ THIS: https://docs.brew.sh/Troubleshooting
These open issues may also help:
[email protected] install fails with missing perl lib https://github.com/Homebrew/linuxbrew-core/issues/21252
Tried brew install perl, got the same error.
I got the same error on a Linux host that's missing basic modules like ExtUtils/MakeMaker.pm, and on which I'd like to pretend I'm not root.
I worked around it by installing those modules locally and then editing the formula temporarily:
--- a/Formula/[email protected]
+++ b/Formula/[email protected]
@@ -60,6 +60,8 @@ class OpensslAT11 < Formula
def install
unless OS.mac?
ENV.prepend_create_path "PERL5LIB", libexec/"lib/perl5"
+ ENV.prepend_create_path "PERL5LIB", "/home/me/.perl5lib/share/perl5"
+ ENV.prepend_create_path "PERL5LIB", "/home/me/.perl5lib/lib64/perl5"
resource("Test::Harness").stage do
That sufficed to bootstrap an install of [email protected], which in turn allowed brew install perl, etc.
What should I have done?
I won't have time to look at this until later this week, so if you all can work on testing a few solutions it would speed everything up quite a bit.
One idea is to add MakeMaker to the Perl resources installed in the formula. There's already a few there, so this should just be a matter of copy and paste and editing a few lines.
If you have reproduction instructions through a Docker image that would be ideal.
Bump!
@jonchang I can confirm that adding an install of ExtUtils::MakeMaker as a resource to [email protected] works:
diff --git a/Formula/[email protected] b/Formula/[email protected]
index 1459d1aa80..187c7727df 100644
--- a/Formula/[email protected]
+++ b/Formula/[email protected]
@@ -30,6 +30,11 @@ class OpensslAT11 < Formula
sha256 "adf770dfd574a0d6026bfaa270cb6879b063957177a991d453ff1d302c02081f"
end
+ resource "ExtUtils::MakeMaker" do
+ url "https://cpan.metacpan.org/authors/id/B/BI/BINGOS/ExtUtils-MakeMaker-7.48.tar.gz"
+ sha256 "94e64a630fc37e80c0ca02480dccfa5f2f4ca4b0dd4eeecc1d65acd321c68289"
+ end
+
resource "Test::Harness" do
url "https://cpan.metacpan.org/authors/id/L/LE/LEONT/Test-Harness-3.42.tar.gz"
sha256 "0fd90d4efea82d6e262e6933759e85d27cbcfa4091b14bf4042ae20bab528e53"
@@ -60,6 +65,13 @@ class OpensslAT11 < Formula
def install
unless OS.mac?
ENV.prepend_create_path "PERL5LIB", libexec/"lib/perl5"
+
+ resource("ExtUtils::MakeMaker").stage do
+ system "perl", "Makefile.PL", "INSTALL_BASE=#{libexec}"
+ system "make", "PERL5LIB=#{ENV["PERL5LIB"]}", "CC=#{ENV.cc}"
+ system "make", "install"
+ end
+
resource("Test::Harness").stage do
system "perl", "Makefile.PL", "INSTALL_BASE=#{libexec}"
system "make", "PERL5LIB=#{ENV["PERL5LIB"]}", "CC=#{ENV.cc}"
@offbyone can you open a pull request that adds this to the formula? Thanks!
Most helpful comment
@jonchang I can confirm that adding an install of ExtUtils::MakeMaker as a resource to [email protected] works: