编译升级OpenSSL报错:Can‘t locate IPC/Cmd.pm

2023-05-16

错误信息

[root@dowhere openssl-3.0.3]# ./config --prefix=/usr/ --openssldir=/usr/ shared
Can't locate IPC/Cmd.pm in @INC (@INC contains: /root/openssl-3.0.3/util/perl
/usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl
/usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 . /root/openssl-
3.0.3/external/perl/Text-Template-1.56/lib) at /root/openssl-
3.0.3/util/perl/OpenSSL/config.pm line 18.
BEGIN failed--compilation aborted at /root/openssl-
3.0.3/util/perl/OpenSSL/config.pm line 18.
Compilation failed in require at /root/openssl-3.0.3/Configure line 23.
BEGIN failed--compilation aborted at /root/openssl-3.0.3/Configure line 23.
...

解决方案

1.安装perl-CPAN

$ sudo yum install -y perl-CPAN
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.cloud.aliyuncs.com
* extras: mirrors.cloud.aliyuncs.com
* updates: mirrors.cloud.aliyuncs.com
Resolving Dependencies
--> Running transaction check
---> Package perl-CPAN.noarch 0:1.9800-299.el7_9 will be installed
--> Processing Dependency: perl(local::lib) for package: perl-CPAN-1.9800-
299.el7_9.noarch
--> Processing Dependency: perl(ExtUtils::MakeMaker) for package: perl-CPAN-
1.9800-299.el7_9.noarch
--> Processing Dependency: perl(Digest::SHA) for package: perl-CPAN-1.9800-
299.el7_9.noarch
--> Running transaction check
---> Package perl-Digest-SHA.x86_64 1:5.85-4.el7 will be installed
--> Processing Dependency: perl(Digest::base) for package: 1:perl-Digest-SHA-
5.85-4.el7.x86_64
---> Package perl-ExtUtils-MakeMaker.noarch 0:6.68-3.el7 will be installed
--> Processing Dependency: perl(Test::Harness) for package: perl-ExtUtils-
MakeMaker-6.68-3.el7.noarch
--> Processing Dependency: perl(ExtUtils::Packlist) for package: perl-ExtUtils-
MakeMaker-6.68-3.el7.noarch
--> Processing Dependency: perl(ExtUtils::Manifest) for package: perl-ExtUtils-
MakeMaker-6.68-3.el7.noarch
--> Processing Dependency: perl(ExtUtils::Installed) for package: perl-ExtUtils-
MakeMaker-6.68-3.el7.noarch
--> Processing Dependency: perl(ExtUtils::Install) for package: perl-ExtUtils-
MakeMaker-6.68-3.el7.noarch
---> Package perl-local-lib.noarch 0:1.008010-4.el7 will be installed
--> Running transaction check
---> Package perl-Digest.noarch 0:1.17-245.el7 will be installed
---> Package perl-ExtUtils-Install.noarch 0:1.58-299.el7_9 will be installed
--> Processing Dependency: perl-devel for package: perl-ExtUtils-Install-1.58-
299.el7_9.noarch
---> Package perl-ExtUtils-Manifest.noarch 0:1.61-244.el7 will be installed
---> Package perl-Test-Harness.noarch 0:3.28-3.el7 will be installed
--> Running transaction check
---> Package perl-devel.x86_64 4:5.16.3-299.el7_9 will be installed
--> Processing Dependency: systemtap-sdt-devel for package: 4:perl-devel-5.16.3-
299.el7_9.x86_64
--> Processing Dependency: perl(ExtUtils::ParseXS) for package: 4:perl-devel-
5.16.3-299.el7_9.x86_64
--> Processing Dependency: libdb-devel for package: 4:perl-devel-5.16.3-
299.el7_9.x86_64
--> Processing Dependency: gdbm-devel for package: 4:perl-devel-5.16.3-
299.el7_9.x86_64
--> Running transaction check
---> Package gdbm-devel.x86_64 0:1.10-8.el7 will be installed
---> Package libdb-devel.x86_64 0:5.3.21-25.el7 will be installed
---> Package perl-ExtUtils-ParseXS.noarch 1:3.18-3.el7 will be installed
---> Package systemtap-sdt-devel.x86_64 0:4.0-13.el7 will be installed
--> Processing Dependency: pyparsing for package: systemtap-sdt-devel-4.0-
13.el7.x86_64
--> Running transaction check
---> Package pyparsing.noarch 0:1.5.6-9.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
=================================================================
Package                   Arch            Version 
              Repository          Size
================================================================================
=================================================================
Installing:
perl-CPAN                  noarch           1.9800-
299.el7_9            updates           293 k
Installing for dependencies:
gdbm-devel                 x86_64           1.10-
8.el7               base             47 k
libdb-devel                 x86_64           5.3.21-
25.el7             base             39 k
perl-Digest                 noarch           1.17-
245.el7              base             23 k
perl-Digest-SHA               x86_64           1:5.85-
4.el7              base             58 k
perl-ExtUtils-Install            noarch           1.58-
299.el7_9             updates           75 k
perl-ExtUtils-MakeMaker           noarch           6.68-
3.el7               base            275 k
perl-ExtUtils-Manifest           noarch           1.61-
244.el7              base             31 k
perl-ExtUtils-ParseXS            noarch           1:3.18-
3.el7              base             77 k
perl-Test-Harness              noarch           3.28-
3.el7               base            302 k
perl-devel                 x86_64           4:5.16.3-
299.el7_9           updates           454 k
perl-local-lib               noarch           1.008010-
4.el7             base             64 k
pyparsing                  noarch           1.5.6-
9.el7              base             94 k
systemtap-sdt-devel             x86_64           4.0-
13.el7               base             76 k
Transaction Summary
================================================================================
=================================================================
Install 1 Package (+13 Dependent packages)
Total download size: 1.9 M
Installed size: 5.0 M
Downloading packages:
(1/14): gdbm-devel-1.10-8.el7.x86_64.rpm                    
                    | 47 kB 00:00:00  
(2/14): libdb-devel-5.3.21-25.el7.x86_64.rpm                  
                    | 39 kB 00:00:00  
(3/14): perl-Digest-1.17-245.el7.noarch.rpm                   
                    | 23 kB 00:00:00  
(4/14): perl-Digest-SHA-5.85-4.el7.x86_64.rpm                  
                    | 58 kB 00:00:00  
(5/14): perl-CPAN-1.9800-299.el7_9.noarch.rpm                  
                    | 293 kB 00:00:00  
(6/14): perl-ExtUtils-Manifest-1.61-244.el7.noarch.rpm             
                    | 31 kB 00:00:00  
(7/14): perl-ExtUtils-ParseXS-3.18-3.el7.noarch.rpm               
                    | 77 kB 00:00:00  
(8/14): perl-Test-Harness-3.28-3.el7.noarch.rpm                 
                    | 302 kB 00:00:00  
(9/14): perl-ExtUtils-Install-1.58-299.el7_9.noarch.rpm             
                    | 75 kB 00:00:00  
(10/14): perl-ExtUtils-MakeMaker-6.68-3.el7.noarch.rpm             
                    | 275 kB 00:00:00  
(11/14): pyparsing-1.5.6-9.el7.noarch.rpm                    
                    | 94 kB 00:00:00  
(12/14): systemtap-sdt-devel-4.0-13.el7.x86_64.rpm               
                    | 76 kB 00:00:00  
(13/14): perl-devel-5.16.3-299.el7_9.x86_64.rpm                 
                    | 454 kB 00:00:00  
(14/14): perl-local-lib-1.008010-4.el7.noarch.rpm                
                    | 64 kB 00:00:00  
---------------------------------------------------------------------------------
----------------------------------------------------------------
Total                                      
               3.9 MB/s | 1.9 MB 00:00:00  
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : gdbm-devel-1.10-8.el7.x86_64                   
                             1/14
Installing : pyparsing-1.5.6-9.el7.noarch                   
                             2/14
Installing : systemtap-sdt-devel-4.0-13.el7.x86_64              
                             3/14
Installing : perl-Digest-1.17-245.el7.noarch                 
                             4/14
Installing : 1:perl-Digest-SHA-5.85-4.el7.x86_64               
                             5/14
Installing : perl-ExtUtils-Manifest-1.61-244.el7.noarch            
                             6/14
Installing : libdb-devel-5.3.21-25.el7.x86_64                 
                             7/14
Installing : perl-Test-Harness-3.28-3.el7.noarch               
                             8/14
Installing : perl-ExtUtils-MakeMaker-6.68-3.el7.noarch            
                             9/14
Installing : perl-ExtUtils-Install-1.58-299.el7_9.noarch           
                             10/14
Installing : 4:perl-devel-5.16.3-299.el7_9.x86_64               
                            11/14
Installing : 1:perl-ExtUtils-ParseXS-3.18-3.el7.noarch            
                             12/14
Installing : perl-local-lib-1.008010-4.el7.noarch               
                            13/14
Installing : perl-CPAN-1.9800-299.el7_9.noarch                
                             14/14
Verifying : 1:perl-ExtUtils-ParseXS-3.18-3.el7.noarch            
                             1/14
Verifying : perl-local-lib-1.008010-4.el7.noarch               
                             2/14
Verifying : perl-CPAN-1.9800-299.el7_9.noarch                
                             3/14
Verifying : perl-Test-Harness-3.28-3.el7.noarch               
                             4/14
Verifying : 1:perl-Digest-SHA-5.85-4.el7.x86_64               
                             5/14
Verifying : libdb-devel-5.3.21-25.el7.x86_64                 
                             6/14
Verifying : perl-ExtUtils-Install-1.58-299.el7_9.noarch           
                             7/14
Verifying : perl-ExtUtils-Manifest-1.61-244.el7.noarch            
                             8/14
Verifying : systemtap-sdt-devel-4.0-13.el7.x86_64              
                             9/14
Verifying : perl-Digest-1.17-245.el7.noarch                 
                             10/14
Verifying : pyparsing-1.5.6-9.el7.noarch                   
                            11/14
Verifying : gdbm-devel-1.10-8.el7.x86_64                   
                            12/14
Verifying : perl-ExtUtils-MakeMaker-6.68-3.el7.noarch            
                             13/14
Verifying : 4:perl-devel-5.16.3-299.el7_9.x86_64               
                            14/14
Installed:
perl-CPAN.noarch 0:1.9800-299.el7_9                      
                               
Dependency Installed:
gdbm-devel.x86_64 0:1.10-8.el7         libdb-devel.x86_64 0:5.3.21-
25.el7        perl-Digest.noarch 0:1.17-245.el7      
perl-Digest-SHA.x86_64 1:5.85-4.el7       perl-ExtUtils-Install.noarch
0:1.58-299.el7_9  perl-ExtUtils-MakeMaker.noarch 0:6.68-3.el7 
perl-ExtUtils-Manifest.noarch 0:1.61-244.el7  perl-ExtUtils-ParseXS.noarch
1:3.18-3.el7    perl-Test-Harness.noarch 0:3.28-3.el7    
perl-devel.x86_64 4:5.16.3-299.el7_9      perl-local-lib.noarch
0:1.008010-4.el7      pyparsing.noarch 0:1.5.6-9.el7        
systemtap-sdt-devel.x86_64 0:4.0-13.el7    
Complete!

2.进入CPAN的shell模式

首次进入需要配置shell,按照提示操作即可,我这里是一路回车。

$ perl -MCPAN -e shell
CPAN.pm requires configuration, but most of it can be done automatically.
If you answer 'no' below, you will enter an interactive dialog for each
configuration option instead.
Would you like to configure as much as possible automatically? [yes]
<install_help>
Warning: You do not have write permission for Perl library directories.
To install modules, you need to configure a local Perl library directory or
escalate your privileges. CPAN can help you by bootstrapping the local::lib
module or by configuring itself to use 'sudo' (if available). You may also
resolve this problem manually if you need to customize your setup.
What approach do you want? (Choose 'local::lib', 'sudo' or 'manual')
[local::lib]
Autoconfigured everything but 'urllist'.
Now you need to choose your CPAN mirror sites. You can let me
pick mirrors for you, you can select them from a list or you
can enter them by hand.
Would you like me to automatically choose some CPAN mirror
sites for you? (This means connecting to the Internet) [yes]
Trying to fetch a mirror list from the Internet
Fetching with HTTP::Tiny:
http://www.perl.org/CPAN/MIRRORED.BY
Looking for CPAN mirrors near you (please be patient)
.. done!
New urllist
http://www.cpan.org/
Autoconfiguration complete.
Attempting to bootstrap local::lib...
Writing /root/.cpan/CPAN/MyConfig.pm for bootstrap...
commit: wrote '/root/.cpan/CPAN/MyConfig.pm'
Fetching with HTTP::Tiny:
http://www.cpan.org/authors/01mailrc.txt.gz
Reading '/root/.cpan/sources/authors/01mailrc.txt.gz'
............................................................................DONE
Fetching with HTTP::Tiny:
http://www.cpan.org/modules/02packages.details.txt.gz
Reading '/root/.cpan/sources/modules/02packages.details.txt.gz'
Database was generated on Tue, 21 Jun 2022 00:17:02 GMT
HTTP::Date not available
..............
New CPAN.pm version (v2.34) available.
[Currently running version is v1.9800]
You might want to try
 install CPAN
 reload cpan
to both upgrade CPAN.pm and run the new version without leaving
the current session.

..............................................................DONE
Fetching with HTTP::Tiny:
http://www.cpan.org/modules/03modlist.data.gz
Reading '/root/.cpan/sources/modules/03modlist.data.gz'
DONE
Writing /root/.cpan/Metadata
Running make for H/HA/HAARG/local-lib-2.000029.tar.gz
Fetching with HTTP::Tiny:
http://www.cpan.org/authors/id/H/HA/HAARG/local-lib-2.000029.tar.gz
Fetching with HTTP::Tiny:
http://www.cpan.org/authors/id/H/HA/HAARG/CHECKSUMS
Checksum for /root/.cpan/sources/authors/id/H/HA/HAARG/local-lib-2.000029.tar.gz
ok
CPAN.pm: Building H/HA/HAARG/local-lib-2.000029.tar.gz
Attempting to create directory /root/perl5
Dispatching deprecated method 'CPAN::Config::load' to CPAN::HandleConfig
Dispatching deprecated method 'CPAN::Config::load' to CPAN::HandleConfig
Reading '/root/.cpan/Metadata'
Database was generated on Tue, 21 Jun 2022 00:17:02 GMT
Running install for module 'ExtUtils::MakeMaker'
Running make for B/BI/BINGOS/ExtUtils-MakeMaker-7.64.tar.gz
Fetching with HTTP::Tiny:
http://www.cpan.org/authors/id/B/BI/BINGOS/ExtUtils-MakeMaker-7.64.tar.gz
Fetching with HTTP::Tiny:
http://www.cpan.org/authors/id/B/BI/BINGOS/CHECKSUMS
Checksum for /root/.cpan/sources/authors/id/B/BI/BINGOS/ExtUtils-MakeMaker-
7.64.tar.gz ok
CPAN.pm: Building B/BI/BINGOS/ExtUtils-MakeMaker-7.64.tar.gz
Using included version of Parse::CPAN::Meta (1.4414) because it is not already
installed.
Using included version of ExtUtils::Manifest (1.70) as it is newer than the
installed version (1.61).
Using included version of CPAN::Meta (2.143240) because it is not already
installed.
Using included version of CPAN::Meta::YAML (0.011) because it is not already
installed.
Using included version of CPAN::Meta::Requirements (2.131) because it is not
already installed.
Using included version of ExtUtils::Install (2.06) as it is newer than the
installed version (1.58).
Using included version of JSON::PP (2.27203) because it is not already
installed.
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for ExtUtils::MakeMaker
Writing MYMETA.yml and MYMETA.json
Could not read metadata file. Falling back to other methods to determine
prerequisites
cp inc/ExtUtils/Manifest.pm blib/lib/ExtUtils/Manifest.pm
cp lib/ExtUtils/MM_VOS.pm blib/lib/ExtUtils/MM_VOS.pm
cp lib/ExtUtils/MM.pm blib/lib/ExtUtils/MM.pm
cp inc/JSON/PP.pm blib/lib/JSON/PP.pm
cp lib/ExtUtils/MM_UWIN.pm blib/lib/ExtUtils/MM_UWIN.pm
cp lib/ExtUtils/MM_DOS.pm blib/lib/ExtUtils/MM_DOS.pm
cp lib/ExtUtils/MM_Cygwin.pm blib/lib/ExtUtils/MM_Cygwin.pm
cp lib/ExtUtils/MM_Win95.pm blib/lib/ExtUtils/MM_Win95.pm
cp lib/ExtUtils/Liblist.pm blib/lib/ExtUtils/Liblist.pm
cp lib/ExtUtils/MM_Darwin.pm blib/lib/ExtUtils/MM_Darwin.pm
cp lib/ExtUtils/MM_AIX.pm blib/lib/ExtUtils/MM_AIX.pm
cp inc/CPAN/Meta/Requirements.pm blib/lib/CPAN/Meta/Requirements.pm
cp lib/ExtUtils/Liblist/Kid.pm blib/lib/ExtUtils/Liblist/Kid.pm
cp inc/ExtUtils/MANIFEST.SKIP blib/lib/ExtUtils/MANIFEST.SKIP
cp lib/ExtUtils/MM_NW5.pm blib/lib/ExtUtils/MM_NW5.pm
cp lib/ExtUtils/MM_OS390.pm blib/lib/ExtUtils/MM_OS390.pm
cp lib/ExtUtils/MakeMaker.pm blib/lib/ExtUtils/MakeMaker.pm
cp lib/ExtUtils/MM_OS2.pm blib/lib/ExtUtils/MM_OS2.pm
cp inc/CPAN/Meta/Feature.pm blib/lib/CPAN/Meta/Feature.pm
cp lib/ExtUtils/Command.pm blib/lib/ExtUtils/Command.pm
cp lib/ExtUtils/MM_Unix.pm blib/lib/ExtUtils/MM_Unix.pm
cp lib/ExtUtils/MM_Win32.pm blib/lib/ExtUtils/MM_Win32.pm
cp inc/ExtUtils/Installed.pm blib/lib/ExtUtils/Installed.pm
cp inc/JSON/PP/Boolean.pm blib/lib/JSON/PP/Boolean.pm
cp inc/CPAN/Meta/Spec.pm blib/lib/CPAN/Meta/Spec.pm
cp inc/CPAN/Meta/History.pm blib/lib/CPAN/Meta/History.pm
cp lib/ExtUtils/MY.pm blib/lib/ExtUtils/MY.pm
cp inc/ExtUtils/Packlist.pm blib/lib/ExtUtils/Packlist.pm
cp lib/ExtUtils/MM_MacOS.pm blib/lib/ExtUtils/MM_MacOS.pm
cp lib/ExtUtils/MM_VMS.pm blib/lib/ExtUtils/MM_VMS.pm
cp inc/CPAN/Meta/Merge.pm blib/lib/CPAN/Meta/Merge.pm
cp lib/ExtUtils/MM_BeOS.pm blib/lib/ExtUtils/MM_BeOS.pm
cp lib/ExtUtils/MM_QNX.pm blib/lib/ExtUtils/MM_QNX.pm
cp inc/CPAN/Meta/YAML.pm blib/lib/CPAN/Meta/YAML.pm
cp inc/CPAN/Meta/Converter.pm blib/lib/CPAN/Meta/Converter.pm
cp inc/ExtUtils/Install.pm blib/lib/ExtUtils/Install.pm
cp lib/ExtUtils/Command/MM.pm blib/lib/ExtUtils/Command/MM.pm
cp lib/ExtUtils/MakeMaker/Config.pm blib/lib/ExtUtils/MakeMaker/Config.pm
cp inc/CPAN/Meta.pm blib/lib/CPAN/Meta.pm
cp inc/CPAN/Meta/Prereqs.pm blib/lib/CPAN/Meta/Prereqs.pm
cp inc/Parse/CPAN/Meta.pm blib/lib/Parse/CPAN/Meta.pm
cp inc/CPAN/Meta/Validator.pm blib/lib/CPAN/Meta/Validator.pm
cp lib/ExtUtils/MM_Any.pm blib/lib/ExtUtils/MM_Any.pm
cp lib/ExtUtils/MakeMaker/Tutorial.pod blib/lib/ExtUtils/MakeMaker/Tutorial.pod
cp lib/ExtUtils/Mkbootstrap.pm blib/lib/ExtUtils/Mkbootstrap.pm
cp lib/ExtUtils/MakeMaker/FAQ.pod blib/lib/ExtUtils/MakeMaker/FAQ.pod
cp lib/ExtUtils/Mksymlists.pm blib/lib/ExtUtils/Mksymlists.pm
cp lib/ExtUtils/MakeMaker/version/regex.pm
blib/lib/ExtUtils/MakeMaker/version/regex.pm
cp lib/ExtUtils/testlib.pm blib/lib/ExtUtils/testlib.pm
cp lib/ExtUtils/MakeMaker/Locale.pm blib/lib/ExtUtils/MakeMaker/Locale.pm
cp lib/ExtUtils/MakeMaker/version.pm blib/lib/ExtUtils/MakeMaker/version.pm
cp lib/ExtUtils/MakeMaker/version/vpp.pm
blib/lib/ExtUtils/MakeMaker/version/vpp.pm
cp bin/instmodsh blib/script/instmodsh
"/usr/bin/perl" "-Iblib/arch" "-Iblib/lib" -MExtUtils::MY -e 'MY->fixin(shift)' -
- blib/script/instmodsh
Manifying 1 pod document
Manifying 38 pod documents
Manifying 9 pod documents
BINGOS/ExtUtils-MakeMaker-7.64.tar.gz
/usr/bin/make -- OK
'YAML' not installed, will not store persistent state
Running make test
PERL_DL_NONLAZY=1 "/usr/bin/perl" "-Iblib/arch" "-Iblib/lib" "-
MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches;
test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00compile.t ............. ok  
t/01perl_bugs.t ........... ok 
t/02-xsdynamic.t .......... skipped: ExtUtils::CBuilder not installed or couldn't
find a compiler
t/03-xsstatic.t ........... skipped: ExtUtils::CBuilder not installed or couldn't
find a compiler
t/04-xs-rpath-darwin.t .... Can't locate Test/More.pm in @INC (@INC contains:
/root/.cpan/build/ExtUtils-MakeMaker-7.64-JdAPKW/blib/lib
/root/.cpan/build/ExtUtils-MakeMaker-7.64-JdAPKW/blib/arch blib/arch blib/lib
/root/perl5/lib/perl5/5.16.3/x86_64-linux-thread-multi
/root/perl5/lib/perl5/5.16.3/x86_64-linux-thread-multi
/root/perl5/lib/perl5/5.16.3 /root/perl5/lib/perl5/x86_64-linux-thread-multi
/root/perl5/lib/perl5/5.16.3/x86_64-linux-thread-multi
/root/perl5/lib/perl5/5.16.3 /root/perl5/lib/perl5/x86_64-linux-thread-multi
/root/perl5/lib/perl5 /root/perl5/lib/perl5/5.16.3/x86_64-linux-thread-multi
/root/perl5/lib/perl5/5.16.3 /root/perl5/lib/perl5/x86_64-linux-thread-multi
/root/perl5/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 t/04-xs-rpath-darwin.t line 16.
BEGIN failed--compilation aborted at t/04-xs-rpath-darwin.t line 16.
t/04-xs-rpath-darwin.t .... Dubious, test returned 2 (wstat 512, 0x200)
No subtests run
t/arch_check.t ............ ok 
t/backwards.t ............. ok 
t/basic.t ................. ok   
t/build_man.t ............. ok  
t/cd.t .................... ok 
t/config.t ................ ok 
t/cp.t .................... ok 
t/dir_target.t ............ ok 
t/echo.t .................. ok  
t/eu_command.t ............ ok  
t/FIRST_MAKEFILE.t ........ ok 
t/fix_libs.t .............. ok 
t/fixin.t ................. ok  
t/hints.t ................. ok 
t/INST.t .................. ok  
t/INST_PREFIX.t ........... ok  
t/INSTALL_BASE.t .......... ok  
t/installed_file.t ........ ok 
t/is_of_type.t ............ ok  
t/Liblist.t ............... ok 
t/Liblist_Kid.t ........... Can't locate Test/More.pm in @INC (@INC contains:
/root/.cpan/build/ExtUtils-MakeMaker-7.64-JdAPKW/blib/lib
/root/.cpan/build/ExtUtils-MakeMaker-7.64-JdAPKW/blib/arch blib/arch blib/lib
/root/perl5/lib/perl5/5.16.3/x86_64-linux-thread-multi
/root/perl5/lib/perl5/5.16.3/x86_64-linux-thread-multi
/root/perl5/lib/perl5/5.16.3 /root/perl5/lib/perl5/x86_64-linux-thread-multi
/root/perl5/lib/perl5/5.16.3/x86_64-linux-thread-multi
/root/perl5/lib/perl5/5.16.3 /root/perl5/lib/perl5/x86_64-linux-thread-multi
/root/perl5/lib/perl5 /root/perl5/lib/perl5/5.16.3/x86_64-linux-thread-multi
/root/perl5/lib/perl5/5.16.3 /root/perl5/lib/perl5/x86_64-linux-thread-multi
/root/perl5/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 t/Liblist_Kid.t line 3.
BEGIN failed--compilation aborted at t/Liblist_Kid.t line 3.
t/Liblist_Kid.t ........... Dubious, test returned 2 (wstat 512, 0x200)
No subtests run
t/make.t .................. ok 
t/MakeMaker_Parameters.t .. ok 
t/maketext_filter.t ....... ok 
t/meta_convert.t .......... ok  
t/metafile_data.t ......... ok  
t/metafile_file.t ......... ok  
t/min_perl_version.t ...... ok  
t/miniperl.t .............. skipped: miniperl test only necessary for the perl
core
t/Mkbootstrap.t ........... ok  
t/MM_Any.t ................ ok 
t/MM_BeOS.t ............... skipped: This is not BeOS
t/MM_Cygwin.t ............. skipped: This is not cygwin
t/MM_NW5.t ................ skipped: This is not NW5
t/MM_OS2.t ................ skipped: This is not OS/2
t/MM_Unix.t ............... ok   
t/MM_VMS.t ................ skipped: This is not VMS
t/MM_Win32.t .............. skipped: This is not Win32
t/oneliner.t .............. ok  
t/os_unsupported.t ........ ok 
t/parse_abstract.t ........ ok  
t/parse_version.t ......... ok   
t/PL_FILES.t .............. ok  
t/pm.t .................... ok 
t/pm_to_blib.t ............ ok  
t/pod2man.t ............... ok 
t/postamble.t ............. ok 
t/prefixify.t ............. ok 
t/prereq.t ................ ok  
t/prereq_print.t .......... ok  
t/problems.t .............. ok 
t/prompt.t ................ ok  
t/recurs.t ................ ok  
t/revision.t .............. ok 
t/several_authors.t ....... ok  
t/split_command.t ......... ok 
t/test_boilerplate.t ...... ok 
t/testlib.t ............... ok 
t/unicode.t ............... ok 
t/VERSION_FROM.t .......... ok 
t/vstrings.t .............. ok  
t/WriteEmptyMakefile.t .... ok 
t/writemakefile_args.t .... ok  
Test Summary Report
-------------------
t/04-xs-rpath-darwin.t (Wstat: 512 Tests: 0 Failed: 0)
Non-zero exit status: 2
Parse errors: No plan found in TAP output
t/Liblist_Kid.t     (Wstat: 512 Tests: 0 Failed: 0)
Non-zero exit status: 2
Parse errors: No plan found in TAP output
Files=68, Tests=1302, 42 wallclock secs ( 0.34 usr 0.12 sys + 26.36 cusr 6.98
csys = 33.80 CPU)
Result: FAIL
Failed 2/68 test programs. 0/1302 subtests failed.
make: *** [test_dynamic] Error 255
BINGOS/ExtUtils-MakeMaker-7.64.tar.gz
/usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports BINGOS/ExtUtils-MakeMaker-7.64.tar.gz
Running make install
Manifying 1 pod document
Manifying 38 pod documents
Manifying 9 pod documents
Installing /root/perl5/lib/perl5/ExtUtils/Mksymlists.pm
Installing /root/perl5/lib/perl5/ExtUtils/MM_VOS.pm
Installing /root/perl5/lib/perl5/ExtUtils/MM_NW5.pm
Installing /root/perl5/lib/perl5/ExtUtils/MM_Win32.pm
Installing /root/perl5/lib/perl5/ExtUtils/MakeMaker.pm
Installing /root/perl5/lib/perl5/ExtUtils/MM_DOS.pm
Installing /root/perl5/lib/perl5/ExtUtils/testlib.pm
Installing /root/perl5/lib/perl5/ExtUtils/MANIFEST.SKIP
Installing /root/perl5/lib/perl5/ExtUtils/Mkbootstrap.pm
Installing /root/perl5/lib/perl5/ExtUtils/MM_VMS.pm
Installing /root/perl5/lib/perl5/ExtUtils/MM_Unix.pm
Installing /root/perl5/lib/perl5/ExtUtils/Command.pm
Installing /root/perl5/lib/perl5/ExtUtils/MM_MacOS.pm
Installing /root/perl5/lib/perl5/ExtUtils/MM_OS390.pm
Installing /root/perl5/lib/perl5/ExtUtils/MM_BeOS.pm
Installing /root/perl5/lib/perl5/ExtUtils/MM.pm
Installing /root/perl5/lib/perl5/ExtUtils/Liblist.pm
Installing /root/perl5/lib/perl5/ExtUtils/MY.pm
Installing /root/perl5/lib/perl5/ExtUtils/MM_Win95.pm
Installing /root/perl5/lib/perl5/ExtUtils/Packlist.pm
Installing /root/perl5/lib/perl5/ExtUtils/MM_QNX.pm
Installing /root/perl5/lib/perl5/ExtUtils/Install.pm
Installing /root/perl5/lib/perl5/ExtUtils/MM_Any.pm
Installing /root/perl5/lib/perl5/ExtUtils/Installed.pm
Installing /root/perl5/lib/perl5/ExtUtils/MM_AIX.pm
Installing /root/perl5/lib/perl5/ExtUtils/MM_UWIN.pm
Installing /root/perl5/lib/perl5/ExtUtils/MM_Cygwin.pm
Installing /root/perl5/lib/perl5/ExtUtils/MM_OS2.pm
Installing /root/perl5/lib/perl5/ExtUtils/MM_Darwin.pm
Installing /root/perl5/lib/perl5/ExtUtils/Manifest.pm
Installing /root/perl5/lib/perl5/ExtUtils/Liblist/Kid.pm
Installing /root/perl5/lib/perl5/ExtUtils/MakeMaker/version.pm
Installing /root/perl5/lib/perl5/ExtUtils/MakeMaker/Locale.pm
Installing /root/perl5/lib/perl5/ExtUtils/MakeMaker/Config.pm
Installing /root/perl5/lib/perl5/ExtUtils/MakeMaker/FAQ.pod
Installing /root/perl5/lib/perl5/ExtUtils/MakeMaker/Tutorial.pod
Installing /root/perl5/lib/perl5/ExtUtils/MakeMaker/version/vpp.pm
Installing /root/perl5/lib/perl5/ExtUtils/MakeMaker/version/regex.pm
Installing /root/perl5/lib/perl5/ExtUtils/Command/MM.pm
Installing /root/perl5/lib/perl5/Parse/CPAN/Meta.pm
Installing /root/perl5/lib/perl5/JSON/PP.pm
Installing /root/perl5/lib/perl5/JSON/PP/Boolean.pm
Installing /root/perl5/lib/perl5/CPAN/Meta.pm
Installing /root/perl5/lib/perl5/CPAN/Meta/Merge.pm
Installing /root/perl5/lib/perl5/CPAN/Meta/Spec.pm
Installing /root/perl5/lib/perl5/CPAN/Meta/YAML.pm
Installing /root/perl5/lib/perl5/CPAN/Meta/History.pm
Installing /root/perl5/lib/perl5/CPAN/Meta/Feature.pm
Installing /root/perl5/lib/perl5/CPAN/Meta/Converter.pm
Installing /root/perl5/lib/perl5/CPAN/Meta/Requirements.pm
Installing /root/perl5/lib/perl5/CPAN/Meta/Validator.pm
Installing /root/perl5/lib/perl5/CPAN/Meta/Prereqs.pm
Installing /root/perl5/man/man1/instmodsh.1
Installing /root/perl5/man/man3/ExtUtils::MakeMaker::Tutorial.3pm
Installing /root/perl5/man/man3/CPAN::Meta::Feature.3pm
Installing /root/perl5/man/man3/ExtUtils::Packlist.3pm
Installing /root/perl5/man/man3/ExtUtils::MM.3pm
Installing /root/perl5/man/man3/CPAN::Meta::History.3pm
Installing /root/perl5/man/man3/ExtUtils::MM_Darwin.3pm
Installing /root/perl5/man/man3/CPAN::Meta::Converter.3pm
Installing /root/perl5/man/man3/ExtUtils::MM_DOS.3pm
Installing /root/perl5/man/man3/ExtUtils::MM_BeOS.3pm
Installing /root/perl5/man/man3/ExtUtils::MM_VOS.3pm
Installing /root/perl5/man/man3/ExtUtils::MakeMaker::Config.3pm
Installing /root/perl5/man/man3/ExtUtils::MakeMaker.3pm
Installing /root/perl5/man/man3/JSON::PP::Boolean.3pm
Installing /root/perl5/man/man3/ExtUtils::MM_Unix.3pm
Installing /root/perl5/man/man3/CPAN::Meta.3pm
Installing /root/perl5/man/man3/CPAN::Meta::Validator.3pm
Installing /root/perl5/man/man3/ExtUtils::MM_AIX.3pm
Installing /root/perl5/man/man3/ExtUtils::MM_Win95.3pm
Installing /root/perl5/man/man3/CPAN::Meta::Prereqs.3pm
Installing /root/perl5/man/man3/ExtUtils::MM_OS2.3pm
Installing /root/perl5/man/man3/ExtUtils::MM_UWIN.3pm
Installing /root/perl5/man/man3/ExtUtils::Command::MM.3pm
Installing /root/perl5/man/man3/ExtUtils::MakeMaker::Locale.3pm
Installing /root/perl5/man/man3/ExtUtils::Liblist.3pm
Installing /root/perl5/man/man3/ExtUtils::MY.3pm
Installing /root/perl5/man/man3/ExtUtils::MM_VMS.3pm
Installing /root/perl5/man/man3/ExtUtils::Installed.3pm
Installing /root/perl5/man/man3/ExtUtils::Command.3pm
Installing /root/perl5/man/man3/ExtUtils::Install.3pm
Installing /root/perl5/man/man3/ExtUtils::MM_OS390.3pm
Installing /root/perl5/man/man3/ExtUtils::MM_Any.3pm
Installing /root/perl5/man/man3/CPAN::Meta::YAML.3pm
Installing /root/perl5/man/man3/Parse::CPAN::Meta.3pm
Installing /root/perl5/man/man3/ExtUtils::Mkbootstrap.3pm
Installing /root/perl5/man/man3/JSON::PP.3pm
Installing /root/perl5/man/man3/ExtUtils::MM_NW5.3pm
Installing /root/perl5/man/man3/ExtUtils::Mksymlists.3pm
Installing /root/perl5/man/man3/CPAN::Meta::Requirements.3pm
Installing /root/perl5/man/man3/ExtUtils::MM_Win32.3pm
Installing /root/perl5/man/man3/ExtUtils::MM_QNX.3pm
Installing /root/perl5/man/man3/CPAN::Meta::Spec.3pm
Installing /root/perl5/man/man3/ExtUtils::testlib.3pm
Installing /root/perl5/man/man3/CPAN::Meta::Merge.3pm
Installing /root/perl5/man/man3/ExtUtils::MM_Cygwin.3pm
Installing /root/perl5/man/man3/ExtUtils::Manifest.3pm
Installing /root/perl5/man/man3/ExtUtils::MakeMaker::FAQ.3pm
Installing /root/perl5/man/man3/ExtUtils::MM_MacOS.3pm
Installing /root/perl5/bin/instmodsh
Appending installation info to /root/perl5/lib/perl5/x86_64-linux-thread-
multi/perllocal.pod
BINGOS/ExtUtils-MakeMaker-7.64.tar.gz
/usr/bin/make install -- OK
Checking if your kit is complete...
Looks good
Warning: prerequisite Test::More 0 not found.
Generating a Unix-style Makefile
Writing Makefile for local::lib
Writing MYMETA.yml and MYMETA.json
---- Unsatisfied dependencies detected during ----
----   HAARG/local-lib-2.000029.tar.gz   ----
 Test::More [build_requires]
Running make test
Delayed until after prerequisites
Running make install
Delayed until after prerequisites
Tried to deactivate inactive local::lib '/root/perl5'
local::lib is installed. You must now add the following environment variables
to your shell configuration files (or registry, if you are on Windows) and
then restart your command line shell and CPAN before installing modules:
Use of uninitialized value $deactivating in numeric eq (==) at
/usr/share/perl5/vendor_perl/local/lib.pm line 381.
Use of uninitialized value $deactivating in numeric eq (==) at
/usr/share/perl5/vendor_perl/local/lib.pm line 383.
Use of uninitialized value $options{"interpolate"} in numeric eq (==) at
/usr/share/perl5/vendor_perl/local/lib.pm line 424.
Use of uninitialized value $options{"interpolate"} in numeric eq (==) at
/usr/share/perl5/vendor_perl/local/lib.pm line 424.
Use of uninitialized value $options{"interpolate"} in numeric eq (==) at
/usr/share/perl5/vendor_perl/local/lib.pm line 424.
export PERL_LOCAL_LIB_ROOT="$PERL_LOCAL_LIB_ROOT:/root/perl5";
export PERL_MB_OPT="--install_base /root/perl5";
export PERL_MM_OPT="INSTALL_BASE=/root/perl5";
export PERL5LIB="/root/perl5/lib/perl5:$PERL5LIB";
export PATH="/root/perl5/bin:$PATH";
Would you like me to append that to /root/.bashrc now? [yes]
commit: wrote '/root/.cpan/CPAN/MyConfig.pm'
You can re-run configuration any time with 'o conf init' in the CPAN shell
Terminal does not support AddHistory.
cpan shell -- CPAN exploration and modules installation (v1.9800)
Enter 'h' for help.

cpan[1]>

3.在shell中安装缺少的模块

cpan[1]> install IPC/Cmd.pm

...

CPAN.pm: Building B/BI/BINGOS/IPC-Cmd-1.04.tar.gz
cp lib/IPC/Cmd.pm blib/lib/IPC/Cmd.pm
Manifying blib/man3/IPC::Cmd.3pm
BINGOS/IPC-Cmd-1.04.tar.gz
/usr/bin/make -- OK
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0,
'blib/lib', 'blib/arch')" t/*.t
t/01_IPC-Cmd.t ...... 1/? # IPC::Run: 0  IPC::Open3: 1.12
t/01_IPC-Cmd.t ...... ok  
t/02_Interactive.t .. skipped: No interactive tests from harness
t/03_run-forked.t ... ok  
All tests successful.
Files=3, Tests=581, 8 wallclock secs ( 0.27 usr 0.04 sys + 1.85 cusr 1.60
csys = 3.76 CPU)
Result: PASS
BINGOS/IPC-Cmd-1.04.tar.gz
/usr/bin/make test -- OK
Running make install
Installing /usr/local/share/perl5/IPC/Cmd.pm
Installing /usr/local/share/man/man3/IPC::Cmd.3pm
Appending installation info to /usr/lib64/perl5/perllocal.pod
BINGOS/IPC-Cmd-1.04.tar.gz
/usr/bin/make install -- OK

安装成功后,重新编译OpenSSL即可。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

编译升级OpenSSL报错:Can‘t locate IPC/Cmd.pm 的相关文章

  • 论文精读 | slam中姿态估计的图优化方法比较

    一 摘要 对于位置环境中的自主导航问题 xff0c 同步定位与建图 Simultaneous localization and mapping SLAM 是一个非常重要的工具框架 根据SLAM字面含义可以得知 xff0c 获取正确的环境表征
  • 自动驾驶中的多种卡尔曼滤波算法及推导详解,值得一读!

    鉴于卡尔曼滤波算在多传感器融合系统中使用的普遍性 xff0c 本文将单独就卡尔曼滤波算法及自动驾驶中常用的改进卡尔曼滤波算法进行详细介绍 首先介绍卡尔曼滤波的基本方法 xff0c 然后介绍针对非线性系统改进的扩展卡尔曼滤波 xff0c 最后
  • 入门ROS其实也没有那么难!

    作者 xff1a Tassel 相信提出这个问题的小伙伴已经对ROS有一定的了解 xff0c 但不管是出于工程应用还是理论学习 xff0c 我们都有必要谈谈ROS的概念 xff0c 从概念去理解ROS ROS xff08 机器人操作系统 x
  • 论SLAM技术发展趋势

    2018年7月底 xff0c 深蓝学院发起并承办了 第一届全国SLAM技术论坛 浙江大学章国锋老师 香港科技大学沈劭劼老师 上海交通大学邹丹平老师 中科院自动化所申抒含老师在 圆桌论坛 xff1a SLAM技术发展趋势 上分享了SLAM技术
  • 华清远见嵌入式学习每周汇总

    每周学习总结 第一周数据结构Makefile的编写顺序表链表 xff08 含约瑟夫环之选猴王 xff09 Joseph circle 本周总结 第二周栈队列树二叉树二叉树的创建 本周总结 IO进程标准IO2 题目要求 xff1a 编程读写一
  • 注意项:dockerFile中安装常用的运维工具

    自己打镜像的时候 xff0c 如果依赖的基础镜像中没有一些常用的Linux运维工具 xff0c 需要自己记得提前安装一下 xff0c 免得线上出现问题需要排查时才发现没有工具 一些常用的如下 RUN yum install y telnet
  • Ubuntu16.04安装ROS kinetic

    ROS kinetic官网 xff1a http wiki ros org kinetic Installation Ubuntu 1 配置Ubuntu的资源库 xff1a 34 restricted 34 xff0c 34 univers
  • 鼠标光标变成了一个点

    今天使用华为云桌面 xff08 内部系统是win7 xff09 xff0c 鼠标光标悬停在普通文本上就变成了一个 不容易发现的点 xff0c 用起来很不方便 xff0c 如图 xff1a 可通过修改鼠标指针颜色和大小来调整解决 xff08
  • opencv--颜色物体追踪 图片的形态学处理函数

    目录 一 主要函数介绍 1 cv2 erode 2 cv2 dilate 3 cv2 findContours 4 cv2 circle 5 cv2 line 二 代码 这里首先确定是否安装imutils库 xff0c 这个库能让调整大小或
  • 使用可视化的Docker进行自动化测试

    01 前言 顺着docker的发展 xff0c 很多测试的同学也已经在测试工作上使用docker作为环境基础去进行一些自动化测试 xff0c 这篇文章主要讲述我们在docker中使用浏览器进行自动化测试如果可以实现可视化 xff0c 同时可
  • 固定翼飞机的一些记录——(1)IMU

    一 IMU 1 什么是IMU IMU Inertial Measurement Unit xff0c 惯性测量单元 一般一个IMU由三个单轴的加速度计和三个单轴的陀螺组成 1 1 加速度计的工作原理 Fig 1 加速度工作原理图 加速度计的
  • 遇到 definition duplicated 怎麼辦

    net 4 0 in IIS7 中有一個 known issue xff1a 就是 xff0c 在deploy之後會發生section定義重複的問題 解決這個問題的最好方法就是 把webconfig中的這段代碼註釋掉 This error
  • Docker容器学习二之镜像

    一 镜像 Docker可以把我们的应用打包成一个可移植的镜像 xff0c 也可以拉取打包好的镜像来共自己使用 xff0c 那么也会存在一个存放docker镜像的仓库 一个官方的镜像仓库地址 https hub docker com xff0
  • 【STM32】 HAL库+STM32CubeMX 系列教学

    HAL库简介 STM32 HAL固件库是Hardware Abstraction Layer的缩写 xff0c 中文名称是 xff1a 硬件抽象层 HAL库是ST公司为STM32的MCU最新推出的抽象层嵌入式软件 xff0c 为更方便的实现
  • 什么程度才算精通 Linux?

    本文选自 攻克 Linux 系统编程 作者 宇文拓 责编 林瑟 Linux 的优秀之处自然不必多说 如果将操作系统比作一辆汽车 xff0c 那 Linux 就是一辆性能出色的多功能越野车 xff0c 上山下海飞天无所不能 如果你拥有了它 x
  • Makefile初级语法1

    Makefile基本规则 基本规则如下 xff1a target target dependent command command前必须是TAB 语法示例分析 xff1a helloworld o main o print hello o
  • RealSense T265环境配置

    RealSense T265环境配置 二进制安装SDK2 0 官网的指导 https www intelrealsense com https github com IntelRealSense librealsense blob deve
  • COMTool安装测试

    COMTool安装测试 没错 xff0c 这又是GitHub上的一个开源项目 xff0c 我几乎又折腾了一下午 xff0c 依旧没有成功 好看实用跨平台带图形界面无广告串口调试助手 网络调试助手 终端工具 COMTool https git
  • opencv imread 函数读取CV_16UC1的png图片

    opencv 2 4 11中imread读取图片有三种方式 xff1a CV LOAD IMAGE UNCHANGED lt 0 loads the image as is including the alpha channel if pr
  • Docker: Ubuntu使用VNC运行基于Docker容器里的桌面系统

    xff08 由于看到的出处不是原作者 xff0c 还请原作者看到后及时说明出处 xff09 https hub docker com r dorowu ubuntu desktop lxde vnc https github com fcw

随机推荐