openssl: OpenSSL 1.1.i and "Can't locate FindBin.pm in @INC"

It looks like a new Perl dependency was introduced with OpenSSL 1.1.1i. It is causing trouble.

openssl-1.1.1i$ ./Configure
Can't locate FindBin.pm in @INC (you may need to install the FindBin module) (@INC contains: /usr/local/lib64/perl5/5.32 /usr/local/share/perl5/5.32 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at ./Configure line 15.
BEGIN failed--compilation aborted at ./Configure line 15.

It looks like this is not an isolated incident:

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 12
  • Comments: 17 (4 by maintainers)

Commits related to this issue

Most upvoted comments

@noloader Thank you for creating this issue. I got the same issue at Fedora v.33 when I tried to execute this command:

[root@localhost openssl-1.1.1i]# ./config no-async shared --prefix=/usr/local/ssl --openssldir=/usr/local/ssl -Wl,-rpath,/usr/local/ssl/lib

Installing perl helped me to fix this error:

dnf install perl
dnf install perl

Here’s a more lightweight option:

dnf install perl-FindBin

Why do we need perl to build openssl again?

Answer to install dnf install perl is still valid

I see that you have a locally built perl. In the perl source, you should find dist/FindBin/lib/FindBin.pm, and probably lib/FindBin.pm when you’ve built perl. If you do find /usr/local -name FindBin.pm, do you get its location? If not, there’s your problem.

FindBin.pm is a core perl module, and we do assume a full perl installation, including its core modules. (this is the reason we require rpm based dists to install perl-core rather than perl, and Debian based installation to install perl and not just perl-base). If you’ve made some kind of minimalized perl installation, then we can’t help you.

Why do we need perl to build openssl again?

Perl was always needed.

Why wasn’t perl automatically installed on Fedora if it’s a dependency?

Installing Perl worked for me. Thank you.

dnf install perl

Here’s a more lightweight option:

dnf install perl-FindBin

The first part cmd worked for me, the second didnt. I was still missing some dependencies.

dnf install perl-FindBin

zhe second lightweight way is work on rockylinux 9.3 with old openssl 1.1.0 .

but when make test , Can't locate Module/Load/Conditional.pm will throw, so we need to install

dnf install \
    perl-FindBin \
    perl-Module-Load-Conditional \
    perl-Test-Harness \
    perl-CPAN