编辑:与sudo cpanm Data::Match --force一起工作
我正在尝试用ubuntu18.04安装"Data::Match“perl模块。我用:
perl Makefile.pl
make
make test
我得到了以下错误:
make test
PERL_DL_NONLAZY=1 "/usr/bin/perl" "-Iblib/lib" "-Iblib/arch" test.pl
1..1
# Running under perl version 5.026001 for linux
# Current time l
我试着用这个小剧本,因为我的猫喜欢在我的键盘上行走。http://linux.softpedia.com/get/Utilities/Lock-keyboard-for-Baby-23745.shtml
我刚刚安装了Ubuntu16.04,没有太多的经验。因此,我想我应该使用终端导航到我下载了脚本的文件夹,然后
perl scriptname.pl
它的输出如下:
Can't locate Gtk2.pm in @INC (you may need to install the Gtk2 module) (@INC contains: /etc/perl /usr/local/lib/
我对wsl系统有问题。也就是说,我的笔记本电脑上有windows 11,我安装了wsl。当我在安装后启动它时,我收到了这样的消息
the windows subsystem for linux optional component is not enabled. please enable it and try again.
我已经在控制面板中的Windows功能中启用了wsl选项。我重新启动了计算机,在启动wsl之后,出现了一条消息,即内核需要更新为wsl2。我按照https://pstrozniak.com/aktualizacja-do-wsl-2/页面上的指南做了这件事。我还下载了这个
在使用cpanm安装perl模块时,我的计算机崩溃了(我想是在将Carp作为Moose的依赖项安装时)。现在,当我尝试使用我想要使用的模块时,我会得到以下错误:
user@linux:~$ ./script_using_moose.pl
Carp.pm did not return a true value at /usr/share/perl/5.14/diagnostics.pm line 185.
BEGIN failed--compilation aborted at /usr/share/perl/5.14/diagnostics.pm line 185.
Compilation
我需要安装这个驱动程序来使我的DVB-T USB接口工作.我使用了本教程https://rk.edu.pl/pl/obsluga-tunerow-dvb-t-pod-linuksem/
以下是我所做的:
git clone git://linuxtv.org/media_build.git
cd media_build
然后运行命令./build。当我这样做时,我会犯几个错误:
libkmod: ERROR ../libkmod/libkmod-module.c:1668 kmod_module_new_from_loaded: could not open /proc/modules: No
我有一个perl脚本(proj_perl.pl和proj_perl_client.pl),我还创建了模块proj_library.pm。我的.pm看起来:
package proj_library;
use base 'Exporter';
our @EXPORT = qw(help);
sub help{#my code}
1;
在我的.pl脚本中,我调用了子帮助,它看起来:
#!/usr/bin/perl
use strict;
use warnings FATAL => 'all';
use feature 'say';
use
在编译我的代码后,它给了我以下错误。我想它在我的use DBD::mysql上显示错误。我最近在服务器(Centos 5)上安装了该模块。我不太习惯centos。
Can't load '/usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/auto/DBD/mysql/mysql.so' for module DBD::mysql: libssl.so.4: cannot open shared object file: No such file or directory at /usr/lib64/
我有Ubuntu18.04LTS,我想安装Cuda 7.5 (因为这个版本与我的Nvidia GF820m显卡兼容)。我将gcc-4.8配置为默认gcc (因为它是Cuda7.5C编译器),并使用sudo ./cuda_7.5.18_linux.run安装运行文件。以下是我安装CUDA的终端输出:
-------------------------------------------------------------
Do you accept the previously read EULA? (accept/decline/quit): accespt
Do you accept
perl模块安装正在出错。
使用-Dinstallprefix选项在非标准位置安装Perl5.32.1
./Configure -Dinstallprefix=/test/user/home/perl -des
make
make test
make install
/test/user/home/perl/bin/perl -version
This is perl 5, version 32, subversion 1 (v5.32.1) built for x86_64-linux
设置PERL5LIB env变量
export PERL5LIB="/test/user/hom
每次我尝试使用Makefile.PL安装Data::UUID时,我都会得到这样的结果:
perl Makefile.PL
Configured options (run perl Makefile.PL --help for how to change this):
UUID state storage: /tmp
default umask: 0007
Writing Makefile for Data::UUID
然后,当我运行make时,我得到这样的结果:
make: *** No rule to make target /usr/lib/perl5/5.
我正在尝试安装Class::HPLOO perl模块,但遇到了问题。我使用的是perl版本5.28.0。我迫切需要帮助解决这个问题,从过去的几天我一直在尝试解决这个问题,但没有运气:
我尝试通过cpan进行安装,得到以下错误:
# Running under perl version 5.028000 for linux
# Current time local: Thu Aug 23 22:50:40 2018
# Current time GMT: Fri Aug 24 02:50:40 2018
# Using Test.pm version 1.31
Unescaped left
我正在尝试安装Perl模块的conda包。到目前为止,我能够使用conda-build创建包。为此,我有一个包含build.sh和meta.yaml文件的菜谱。
然后我使用conda-install在一个新的环境中安装它,我希望能够运行一些位于我刚刚安装的Perl模块中的Perl脚本。
所有这些步骤都运行得很好,但是当我运行一些脚本时,我有一个错误:
Can't locate PMP/util.pm in @INC (you may need to install the PMP::util module) (@INC contains: /.autofs/home/antoine/a