我正在使用perlbrew和cpanm.一旦完成,cpanm Test::More我得到以下内容:
--> Working on Test::More
Fetching http://10.64.0.7:8002/authors/id/L/LO/LOCAL/Test-Simple-1.001003.tar.gz ... OK
Configuring Test-Simple-1.001003 ... OK
Building and testing Test-Simple-1.001003 ... OK
Successfully installed Test-Simple-1.001003 (upgraded from 0.98)
cannot unlink file for /home/hamid/.cpanm/work/1406642140.19670/build.log: Permission denied at /loader/0x1bdc0a8/App/cpanminus/script.pm line 99
cannot restore permissions to 0100644 for /home/hamid/.cpanm/work/1406642140.19670/build.log: Permission denied at /loader/0x1bdc0a8/App/cpanminus/script.pm line 99
cannot remove directory for /home/hamid/.cpanm/work/1406642140.19670: Directory not empty at /loader/0x1bdc0a8/App/cpanminus/script.pm line 99
1 distribution installed
Run Code Online (Sandbox Code Playgroud)
任何人都可以告诉我为什么我得到了; cannot unlink file, cannot restore permissions and cannot remove directory错误?
更改权限是否 …
我目前正在bashWindows 上通过Cygwin 运行,并且遇到了两种不同的方式来安装Perl模块
cpan Name::Module
Run Code Online (Sandbox Code Playgroud)
和
perl -MCPAN -e shell
install Name::Module
Run Code Online (Sandbox Code Playgroud)
这两种方法有什么区别,与其他方法相比有什么优点或缺点?
我需要找到Mojo:::Util一台服务器上安装的版本,因此可以在Mojolicious Github存储库上提交问题。我遵循了有关如何找到已安装的Perl模块的版本的建议?主要是:
perl -MMojo::Util\ 9999
Run Code Online (Sandbox Code Playgroud)
我运行时得到的响应是:
Mojo::Util does not define $Mojo::Util::VERSION--version check failed.
BEGIN failed--compilation aborted.
Run Code Online (Sandbox Code Playgroud)
我最初Mojo::DOM使用CPANM 安装并得到了,Mojo::Util因为Mojo::DOM要依赖它。
如何确定$VERSION未定义的已安装Perl模块的版本?
我尝试使用 cpanm 安装/更新 Perl 模块。但是,每个模块都失败了。
例如:
cpanm Config::General
--> Working on Config::General
Fetching http://www.cpan.org/authors/id/T/TL/TLINDEN/Config-General-2.56.tar.gz ... OK
Configuring Config-General-2.56 ... OK
Building and testing Config-General-2.56 ... OK
Successfully installed Config-General-2.56 (upgraded from 2.52)
1 distribution installed
Run Code Online (Sandbox Code Playgroud)
所以,我预计 Config::General 的版本现在是 2.56,但是......:
perl -e 'use Config::General 2.56'
Config::General version 2.56 required--this is only version 2.52 at -e line 1.
Run Code Online (Sandbox Code Playgroud)
我尝试相同的登录 superU 但同样的问题...但是现在,我有 Perl lib
~/perl5/lib/perl5/和/usr/lib/perl/5.18/
我怎样才能正确更新 Perl 模块cpanm?
有关我的安装的一些信息:
$ perl -E'
say "$_=$ENV{$_}" for qw( PERL_MM_OPT PERL_MB_OPT PERL5LIB …Run Code Online (Sandbox Code Playgroud) 我应该更改什么才能安装模块?php是5.3.3 yum install php-devel到位.
PHP.c: In function ‘PHP_set_php_input’:
PHP.c:818: warning: passing argument 2 of ‘Perl_sv_2pv_flags’ from incompatible pointer type
/home/mpapec/.plenv/versions/5.20.0/lib/perl5/5.20.0/x86_64-linux/CORE/proto.h:3931: note: expected ‘STRLEN * const’ but argument is of type ‘int *’
cc -c -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -Wall -O2 -DVERSION=\"0.15\" -DXS_VERSION=\"0.15\" -fPIC "-I/home/mpapec/.plenv/versions/5.20.0/lib/perl5/5.20.0/x86_64-linux/CORE" array.c
In file included from /usr/include/php/main/php.h:33,
from /usr/include/php/sapi/embed/php_embed.h:23,
from PHP.h:14,
from array.c:9:
/usr/include/php/main/php_config.h:2417:1: warning: "_GNU_SOURCE" redefined
In file included from /home/mpapec/.plenv/versions/5.20.0/lib/perl5/5.20.0/x86_64-linux/CORE/perl.h:28,
from PHP.h:9,
from array.c:9:
/home/mpapec/.plenv/versions/5.20.0/lib/perl5/5.20.0/x86_64-linux/CORE/config.h:1825:1: warning: this is the location of the …Run Code Online (Sandbox Code Playgroud) Can't locate Spreadsheet/ParseExcel.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .)
Run Code Online (Sandbox Code Playgroud)
虽然安装了:
% perl -e'use CPAN; install "Spreadsheet:WriteExcel"'
Going to read '/home/aspect_mkn8rd/.cpan/Metadata'
Database was generated on Sun, 27 Apr 2014 09:41:02 GMT
Spreadsheet::WriteExcel is up to date (2.40).
Run Code Online (Sandbox Code Playgroud)
这就是它所在的位置,是吗?
% ls -la /usr/local/lib/perl/5.14.2/auto/Spreadsheet/WriteExcel
total 12
drwxrwxr-x 2 root root 4096 ???. 28 13:11 .
drwxrwxr-x 3 root root 4096 ???. 28 13:11 ..
-rw-rw-r-- 1 root root 2519 ???. 28 13:11 .packlist
% cat /usr/local/lib/perl/5.14.2/auto/Spreadsheet/WriteExcel/.packlist …Run Code Online (Sandbox Code Playgroud) 我无法在 conda 中使用 cpanm 安装模块。
cpanm --force Math::CDF
--> Working on Math::CDF
Fetching http://www.cpan.org/authors/id/C/CA/CALLAHAN/Math-CDF-0.1.tar.gz ... OK
Configuring Math-CDF-0.1 ... OK
Building and testing Math-CDF-0.1 ... FAIL
! Installing Math::CDF failed. See /home/juan/.cpanm/work/1552930475.22685/build.log for details. Retry with --force to force install it.
Run Code Online (Sandbox Code Playgroud)
错误是
/bin/sh: 1: /tmp/build/80754af9/perl_1527832170752/_build_env/bin/x86_64-conda_cos6-linux-gnu-gcc: not found
Run Code Online (Sandbox Code Playgroud)
但是 x86_64-conda_cos6-linux-gnu-gcc 在路径中
(bio) ? ~ which x86_64-conda_cos6-linux-gnu-gcc
/home/juan/miniconda3/envs/bio/bin/x86_64-conda_cos6-linux-gnu-gcc
Run Code Online (Sandbox Code Playgroud)
cpanm 或 conda 可能有什么问题?
我在 Ubuntu 18.04 中使用 miniconda
我正在尝试安装 Perl 包Vcf,它有很多依赖项。这些依赖项之一DB_File将不会安装。
con@VB:~$ cpanm DB_File
--> Working on DB_File
Fetching http://www.cpan.org/authors/id/P/PM/PMQS/DB_File-1.852.tar.gz ... OK
Configuring DB_File-1.852 ... OK
Building and testing DB_File-1.852 ... FAIL
! Installing DB_File failed. See /home/con/.cpanm/work/1567015698.27372/build.log for details. Retry with --force to force install it.
con@VB:~$ cat /home/con/.cpanm/work/1567015698.27372/build.log
cpanm (App::cpanminus) 1.7044 on perl 5.030000 built for x86_64-linux
Work directory is /home/con/.cpanm/work/1567015698.27372
You have make /usr/bin/make
You have LWP 6.39
You have /bin/tar: tar (GNU tar) 1.29
Copyright (C) 2015 Free Software Foundation, …Run Code Online (Sandbox Code Playgroud)