activeperl

Error using perl module DBD::mysql in ActivePerl 5.28 on Windws10 64bits

时光毁灭记忆、已成空白 提交于 2021-02-19 08:01:48
问题 I installed the new ActiveState Perl custom build with Perl 5.28 and I added the module (DBD-mysql v4.50). The DBI module is set by default to the ActivePerl 5.28 compilation. use strict; use warnings; use diagnostics; use DBI; ### INIT DB CONNECTION my $dbh = DBI->connect("DBI:mysql:database=testdb;host=localhost","root", "XXXX",{'RaiseError' => 1,'mysql_auto_reconnect' => 1}); $dbh->{InactiveDestroy} = 1; $dbh->{mysql_auto_reconnect} = 1; then I get the following error: >perl test.pl

windows vs2015 编译openssl

纵饮孤独 提交于 2020-08-16 19:22:49
一、windows vs2015 编译openssl 1,到openssl官网下载源码。 2,安装ActivePerl,去官网( https://www.activestate.com/products/activeperl/downloads/ )下载安装。 ActivePerl具体安装步骤参考: https://blog.csdn.net/MarsLee_U/article/details/86491759 3.安装完毕后,使用 VS2015 下的 VS2015开发者命令提示,进入控制台模式。 4.进入openssl源码目录,调用命令: perl Configure VC-WIN32 shared no-shared no-asm --prefix="E:/work/openssl-1.1.0c/win64-release" --openssldir="E:/work/openssl-1.1.0c/win64-release/ssl" 其中,E:/work/openssl-1.1.0c路径是源码目录, win64-release是输出目录, no-shared表示导出静态库, 可以改成shared导出动态库,shared no-shared 表示导出动态库和静态库, VC-WIN32表示32位库, 可以改成VC-WIN64A编译64位。 5.编译Openssl。 ms\do

Perl报错you may need to install the Win32::Console module

最后都变了- 提交于 2020-01-07 18:52:37
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> ActivePerl-5.26.3.XXXX.msi安装后,命令行执行cpan,会出现如下提示而无法继续。 Can't locate Win32/Console.pm in @INC (you may need to install the Win32::Console module) ( @INC contains: C:\Perl64\site\lib C:\Perl64\lib) at C:\Perl64\lib/ActivePerl/Config.pm line 400. 解决办法,修改C:\Perl64\lib\ActivePerl\Config.pm,大约在400行左右: # Prevent calling Win32::Console::DESTROY on a STDOUT handle #my $console; sub _warn { # my($msg) = @_; # unless (-t STDOUT) { # print "\n$msg\n"; # return; # } # require Win32::Console; # unless ($console) { # $console = Win32::Console->new(Win32::Console::STD_OUTPUT

Compiling WWW::Curl on ActivePerl

狂风中的少年 提交于 2019-12-25 15:23:09
问题 I'm trying (desperately) to build / install the newest version of WWW::Curl onto my activeperl box (I'll explain in a moment why I don't use the PPM) I had to make some modifications as per the instructions found here: http://cpansearch.perl.org/src/SZBALINT/WWW-Curl-4.15/README.Win32 I also had to change the following line: From: open(H_IN, "-|" "gcc", "$curl_h") and $has_cpp++; To: open(H_IN, "gcc $curl_h") and $has_cpp++; I finally got perl Makefile.PL to work but now, when I run nmake, I

Error while using cpan command line

空扰寡人 提交于 2019-12-25 09:29:13
问题 I am getting the below errors while using cpan command line: Reading 'C:\Perl64\cpan\sources\modules\02packages.details.txt.gz' Warning: Your C:\Perl64\cpan\sources\modules\02packages.details.txt.gz does not contain a Line-Count header. Please check the validity of the index file by comparing it to more than one CPAN mirror. I'll continue but problems seem likely to happen. CPAN: Time::HiRes loaded ok (v1.9741) Warning: Your C:\Perl64\cpan\sources\modules\02packages.details.txt.gz does not

How can I install Lib::XML on ActiveState Perl 5.20?

两盒软妹~` 提交于 2019-12-24 03:32:29
问题 I am trying to install Lib::XML in my ActiveState Perl Windows machine. perl 5, version 20, subversion 2 (v5.20.2) I tried the following: C:\Users\VENKATESH>ppm install XML-LibXML ppm install failed: Can't find any package that provides XML-LibXML C:\Users\VENKATESH>ppm install http://theoryx5.uwinnipeg.ca/ppms/XML-LibXML.ppd ppm install failed: 500 Can't connect to theoryx5.uwinnipeg.ca:80 How do I install packages for Perl on Windows? 回答1: As others mentioned, there doesn't seem to be a pre

How do I install XML::LibXML for ActivePerl?

懵懂的女人 提交于 2019-12-19 19:41:10
问题 I am new to Perl and I am using ActivePerl. I am getting the following error: Can't locate XML/LibXML.pm in @INC... I have tried everything but cannot find the steps to install the "correct" module for XML::LibXML. Here is exactly what is going on. I am running a script from a command prompt: c:\temp>perl myscript.pl The first few lines of myscript.pl: #!/usr/bin/perl use Archive::Zip qw( :ERROR_CODES :CONSTANTS ); use HTTP::Date; use XML::Parser; use LWP::UserAgent; use XML::LibXML; use

Perl not running in Windows 10

醉酒当歌 提交于 2019-12-19 03:59:34
问题 I've just downloaded ActivePerl for Windows 10 on my 64 bit laptop, but when I go to the command prompt, perl -v fails unless the directory is C:\Perl64\bin in which case it tells me that I have Perl 5.20.2 Copyright Larry Ullman etc, but if I try and open perl files anywhere, nothing happens, if I run perl.exe it just shows me a command window with a flashing bar and nothing happens, and when I try and run .pl programs in Eclipse it tells me predictably that because perl-v failed it won't

How do I ignore the Perl shebang on Windows with Apache 2?

梦想的初衷 提交于 2019-12-17 06:46:55
问题 I have set up a local Perl web environment on my Windows machine. The application I'm working on is originally from a Linux server, and so the shebang for source .pl files look like so: #!/usr/bin/perl This causes the following error on my Windows dev machine: (OS 2)The system cannot find the file specified. Is it possible to change my Apache 2 conf so that the shebang is ignored on my Windows machine? Of course I could set the shebang to #!c:\perl\bin\perl.exe , that much is obvious; but the

How do I install Encode::HanExtra for ActivePerl?

僤鯓⒐⒋嵵緔 提交于 2019-12-13 20:01:50
问题 I want to enable Encode::HanExtra on Windows XP environment. I can't find the name HanExtra or Encode-HanExtra in PPM GUI. Is there any alias name for it? 回答1: Encode-HanExtra does exist according to this page but there is no Windows build. Some options: Encode::CNMap can convert between many different Chinese encodings (gb2312, big5, utf8, gbk). ActivePerl name is Encode-CNMap. There is an ActivePerl version of Encode::CN::Utility which can convert characters between Hanzi, GBK and Unicode