- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
你好,我想通过 cpan 安装一个包,但我收到以下错误:
cpan[1]> install Log::Log4perl
Reading '/home/paulzierep/.cpan/Metadata'
Database was generated on Fri, 30 Sep 2016 06:29:02 GMT
Running install for module 'Log::Log4perl'
Checksum for /home/paulzierep/.cpan/sources/authors/id/M/MS/MSCHILLI/Log-Log4perl-1.47.tar.gz ok
Scanning cache /home/paulzierep/.cpan/build for sizes
............................................................................DONE
'YAML' not installed, will not store persistent state
Configuring M/MS/MSCHILLI/Log-Log4perl-1.47.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
Have /usr/lib/x86_64-linux-gnu/perl/5.22.1
Want /usr/lib/x86_64-linux-gnu/perl/5.22
Your perl and your Config.pm seem to have different ideas about the
architecture they are running on.
Perl thinks: [5.22.1]
Config says: [x86_64-linux-gnu-thread-multi]
This may or may not cause problems. Please check your installation of perl
if you have problems building this extension.
Generating a Unix-style Makefile
Writing Makefile for Log::Log4perl
Writing MYMETA.yml and MYMETA.json
MSCHILLI/Log-Log4perl-1.47.tar.gz
/usr/bin/perl Makefile.PL INSTALLDIRS=site -- OK
Running make for M/MS/MSCHILLI/Log-Log4perl-1.47.tar.gz
make: *** No rule to make target '/usr/lib/x86_64-linux-gnu/perl/5.22/Config.pm', needed by 'Makefile'. Stop.
MSCHILLI/Log-Log4perl-1.47.tar.gz
/usr/bin/make -- NOT OK
Failed during this command:
MSCHILLI/Log-Log4perl-1.47.tar.gz : make NO
好吧,它说要检查我的 perl 安装,它是:
perl --version
This is perl 5, version 22, subversion 1 (v5.22.1) built for x86_64-linux-gnu-thread-multi
(with 58 registered patches, see perl -V for more detail)
Copyright 1987-2015, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
这是@INC
:
/usr/lib/x86_64-linux-gnu/perl/5.22.1//etc/perl/usr/local/lib/x86_64-linux-gnu/perl/5.22.1/usr/local/share/perl/5.22.1/usr/lib/x86_64-linux-gnu/perl5/5.22/usr/share/perl5/usr/lib/x86_64-linux-gnu/perl/5.22/usr/share/perl/5.22/usr/local/lib/site_perl/usr/lib/x86_64-linux-gnu/perl-base
我得到的是:
paulzierep@naproxen:~$ perl -E 'say for @INC'
/etc/perl
/usr/local/lib/x86_64-linux-gnu/perl/5.22.1
/usr/local/share/perl/5.22.1
/usr/lib/x86_64-linux-gnu/perl5/5.22
/usr/share/perl5
/usr/lib/x86_64-linux-gnu/perl/5.22
/usr/share/perl/5.22
/usr/local/lib/site_perl
/usr/lib/x86_64-linux-gnu/perl-base
.
paulzierep@naproxen:/home$ perl -MFile::Spec -E 'say for File::Spec->path'
/home/paulzierep/bin
/usr/local/sbin
/usr/local/bin
/usr/sbin
/usr/bin
/sbin
/bin
/usr/games
/usr/local/games
/snap/bin
最佳答案
这通常发生在您调用的 perl 查找其他 perl 留下的库目录时。部分错误是:
Your perl and your Config.pm seem to have different ideas about the architecture they are running on.
从那里开始调查。找出它在哪里找到不匹配的 Config.pm 并解决该问题。运行 perl -V
以查看 @INC
中的内容会有所帮助。
除此之外,您还必须告诉我们更多有关您的设置的信息。
关于perl混了,cpan装不上,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39793096/
我有我的小 program.jar,它使用了巨大的 library.jar 的一小部分。 是否有一种工具可以将几个 jar 重新打包成一个,以便它可以独立运行并且尽可能小? 更新:大小很重要。 最佳答
假设类路径上有两个不同库版本的 jar,例如 java -cp A-2.1.jar:A-2.2.jar ... 第一个和第二个jar中的包名和类名相同,但类实现不同。是否指定root jvm clas
使用 Cloudformation,您可以在创建 S3 存储桶时将经过身份验证的用户组设置为具有放置/删除访问控制吗? 最佳答案 这对于初始的和分别受限的 Access Control Lists (
我是一名优秀的程序员,十分优秀!