cpanm

Unable to install perl modules via cpanm in conda environments

﹥>﹥吖頭↗ 提交于 2021-02-05 07:25:07
问题 I'm trying to install perl modules via cpanm inside conda environment with perl installed. The conda environment was build with following definition: name: perl_env channels: - bioconda - conda-forge - defaults dependencies: - perl=5.26 - perl-app-cpanminus - perl-local-lib - gcc_impl_linux-64 - gxx_linux-64 - openmpi=4.1.0 The environment results with the following packages installed: # Name Version Build Channel _libgcc_mutex 0.1 conda_forge conda-forge _openmp_mutex 4.5 1_gnu conda-forge

Install modules with perlbrew and cpm - perlbrew switch does not change @INC during docker build

女生的网名这么多〃 提交于 2020-03-04 23:01:29
问题 I'd like to use fast cpm module installer instead of cpanm in my projects. Also I install target perl version using perlbrew. According documentation of cpm -g option will install modules into current @INC How to force perlbrew change @INC in Dockerfile ? Below is part of my Dockerfile RUN perl -le 'print for @INC' && \ perlbrew switch perl-5.31.0 && \ perl -le 'print for @INC' && \ cpm install -gv CGI && \ perlbrew list-modules When I build Dockerfile output of perl -le 'print for @INC' is

“cpanm PHP” fails

我怕爱的太早我们不能终老 提交于 2020-01-15 08:38:29
问题 What should I change in order to install the module? php is 5.3.3 with yum install php-devel in place. 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

CPAN Requirements File

二次信任 提交于 2020-01-02 01:21:06
问题 With pip you are able to create a requirements file to specify which libraries to install. Is there an equivalent for perl modules using CPAN? I came across ExtUtils::MakeMaker, but this seems like the make file is for each module specifically. I guess to try and give a better idea of what I am asking is if there is a way to do something like cpan install -r requirements.txt and then specify which modules to install in that requirements file. Thanks in advance! 回答1: I think Carton is what you

Install modules with perlbrew and cpm - perlbrew switch does not change @INC during docker build

a 夏天 提交于 2019-12-31 02:54:19
问题 I'd like to use fast cpm module installer instead of cpanm in my projects. Also I install target perl version using perlbrew. According documentation of cpm -g option will install modules into current @INC How to force perlbrew change @INC in Dockerfile ? Below is part of my Dockerfile RUN perl -le 'print for @INC' && \ perlbrew switch perl-5.31.0 && \ perl -le 'print for @INC' && \ cpm install -gv CGI && \ perlbrew list-modules When I build Dockerfile output of perl -le 'print for @INC' is

Installing DBD::Sybase on OS X with Homebrew fails to find freetds libraries

拜拜、爱过 提交于 2019-12-24 08:28:59
问题 I am installing DBD::Sybase I receive following error, after setting export SYBASE=/usr/local/Cellar/freetds/0.95.80 and download freetds: brew install freetds Error: Configuring DBD-Sybase-1.15 ... Can't find any Sybase libraries in /usr/local/Cellar/freetds/0.95.80/lib or /usr/local/Cellar/freetds/0.95.80/lib64 at Makefile.PL line 155, <IN> line 44 I believe I need to edit the makefile directly. Do I need to edit makefile? And could I use CPANM still. CPANM is under Brew (cellar). /usr

Which module do I need when I got error info “Can't locate getopts.pl in @INC…”

徘徊边缘 提交于 2019-12-23 03:46:19
问题 I run this command in my macOS $ perl ~/Desktop/blif2cnf.pl and got this error info: Can't locate getopts.pl in @INC (@INC contains: /Library/Perl/5.18/darwin-thread-multi-2level /Library/Perl/5.18 /Network/Library/Perl/5.18/darwin-thread-multi-2level /Network/Library/Perl/5.18 /Library/Perl/Updates/5.18.2 /System/Library/Perl/5.18/darwin-thread-multi-2level /System/Library/Perl/5.18 /System/Library/Perl/Extras/5.18/darwin-thread-multi-2level /System/Library/Perl/Extras/5.18 .) at /Users

cpanm does not register all installed modules in perllocal.pod

假如想象 提交于 2019-12-13 03:36:39
问题 According to CPAN Frequently Asked Questions: Each time a module is installed on your system, it appends information to a file called perllocal.pod I have installed several CPAN modules using cpanm , the problem is that some modules do not get registered in perllocal.pod . For example, I have installed String::Escape, String::ShellQuote, and String::Util using cpanm . If I type $ perldoc -u perllocal | grep String:: I get output: =head2 Tue Apr 21 16:47:34 2015: C<Module> L<String::Escape

cpanm perl module installation failed on 'make' and 'make test'

心不动则不痛 提交于 2019-12-12 06:26:43
问题 I asked a question regarding configure does not generate makefile while building perl from source. While awaiting for a solution, here is another (possibly relevant) question. When I install perl modules for the system perl via something like sudo cpanm Try::Tiny it fails with following log: cpanm (App::cpanminus) 1.7040 on perl 5.018002 built for x86_64-linux-gnu-thread-multi Work directory is /home/zxu/.cpanm/work/1462290395.17141 You have make /usr/bin/make You have LWP 6.05 You have /bin

Perl Windows CPANM proxy issue [duplicate]

谁说胖子不能爱 提交于 2019-12-11 13:58:40
问题 This question already has answers here : Using CPAN with a proxy failing after o conf init /proxy/ (3 answers) Closed 4 years ago . After solving a few issues, I've Succeeded with CPAN on my Work Windows 7 Machine with DwimPerl via perl -MCPAN -e shell and o conf init /proxy/ ftp: http: http://192.168.1.1:8080 no: Username: Chris@work Password: SuperDeDuperSecretPassword CPAN works. I'm able to install/build. It seems that no matter what I do, CPANM doesn't want to get past the proxy: C:\