strawberry-perl

Setting basic authentication credentials in WWW::Mechanize

谁说胖子不能爱 提交于 2019-12-11 07:34:43
问题 I'm having trouble using basic authentication in WWW::Mechanize. I'm trying to connect to the Streak API, the documentation for which states: Streak uses HTTP Basic Auth to sign each request with your API key. Simply set the username of the request to the API key. The password field is ignored. All requests must be made over HTTPS as HTTP requests will be ignored. Here's a sample request: curl https://www.streak.com/api/v1/pipelines -u YOUR_API_KEY: I can successfully access the API using

How to install GD library with Strawberry Perl

半世苍凉 提交于 2019-12-11 06:39:33
问题 I am attempting to install the GD library using Strawberry perl and GnuWin32. However, when I enter "install GD" in the CPAN shell, the following message appears: 'gdlib-config' is not recognized as an internal or external command, operable program or batch file. **UNRECOVERABLE ERROR** Could not find gdlib-config in the search path. Please install libgd 2.0.28 or higher. I believe perl is having difficulty locating the GD library installed at C:\Program Files\GnuWin32\bin, but I am not sure

Installing Padre (IDE) on ActivePerl?

孤人 提交于 2019-12-11 03:27:54
问题 When I go to Padre's official download site: http://padre.perlide.org/download.html, I see that the only option in Windows is to download DWIM Perl 5.14.2.1 (v7) which comes with Strawberry Perl . What if I just want to use Padre the IDE on my existing ActivePerl installation? 回答1: The box right below the one you read is titled "ActiveState Perl" gives the address of a repository that has the packages for ActivePerl's ppm system, at least for Perl 5.12 and earlier. ppm repo add http://www

Test failure in dmake test with module PerlMagick(Image::Magick)

◇◆丶佛笑我妖孽 提交于 2019-12-11 02:16:55
问题 I was first having problem passing past Makefile.pl installing the perlMagick module(otherwise known as Image::Magick). It said I didn't had the required binaries installed, but a person here in SO pointed out that it was a problem with the Makefile, it didn't look for the binaries on their location. After fixing that, I had no problem with the Makefile other than "Gonna create 'libMagickCore.a' from 'C:\Program Files\ImageMagick-6.8.0-Q16\CORE_RL_magick_.dll'" After that, doing the dmake(I'm

Invalid access to memory location on 64-bit Strawberry Perl only

流过昼夜 提交于 2019-12-10 23:38:26
问题 Hi I am trying to get a Perl program running on Windows 64-bit using Strawberry Perl version 5.20, the 64-bit version. I have no problems running the 32-bit version (32-bit Strawberry Perl on 32-bit Windows), but it lacks the memory capabilities of the 64-bit. All of the required modules compile correctly, however when I run the program I get the following error: Can't load 'C:/Strawberry/perl/vendor/lib/auto/YAML/XS/LibYAML/LibYAML.xs.dll' for module YAML::XS::LibYAML: load_file:Invalid

“Out of memory” with simple Win32::Unicode::File readline loop and Strawberry Perl

风流意气都作罢 提交于 2019-12-10 15:28:18
问题 The issue I have can be found by running the following code in Strawberry perl 5.12.3.0 on Windows XP. #!/usr/bin/perl -w use strict; use warnings; use Win32::Unicode::File; use Encode; my $fname = shift @ARGV; my $fh = Win32::Unicode::File->new; if ($fh->open('<', $fname)){ while (my $line = $fh->readline()){} close $fh; }else{ print "Couldn't open file: $!\n"; } The only thing that is happening here is that I perform a readline and this keeps eating memory until I get an Out of memory error

How can I make Strawberry Perl's cpan(1) find perl?

一世执手 提交于 2019-12-10 13:39:28
问题 I'm having trouble installing Template module with Strawberry Perl. cpan Template yields the following: Writing Makefile for AppConfig C:strawberryperlbinperl.exe: not found dmake.EXE: Error code 255, while making 'blib\lib\.exists'` I haven't been able to understand either how to affect the path so dmake will work correctly why the path (which is correct) does not have any \ in it. 回答1: If you've been using MKS, you not only need to be sure you've removed it from your PATH, but you also need

How to change @INC in Strawberry Perl?

一曲冷凌霜 提交于 2019-12-07 02:30:40
问题 How can I change @INC permanently, without changing my scripts, in Strawberry Perl? I'm aware of -I , but don't want to invoke that switch every time. 回答1: To prepend paths, set environment variable PERL5LIB to those paths. Note: This will affect all installations of Perl you run when this is effect. Howto: Right-click (My) Computer, Properties, Advanced, Environment Variables, (the top) New. You will probably have to restart already running consoles to get the change. 回答2: Alternatively you

What is the proper way to access BerkeleyDB with Perl?

為{幸葍}努か 提交于 2019-12-06 02:39:45
问题 I've been having some problems with using BerkeleyDB. I have multiple instances of the same code pointed to a single repository of DB files, and everything runs fine for 5-32 hours, then suddenly there is a deadlock. The command prompts stop right before executing a db_get or db_put or cursor creation call. So I'm simply asking for the proper way to handle these calls. Here's my general layout: This is how the environment and DBs are created: my $env = new BerkeleyDB::Env ( -Home => "

How can I create a portable strawberry with extra bundled modules?

∥☆過路亽.° 提交于 2019-12-05 16:05:09
The portable strawberry perl is a godsend-- I can bundle it into an NSIS installer along with the actual scripts and have the user double click it. However, I'm still having to install CPAN modules that our scripts need, manually on each user's computer. Is there a portable way to 'inject' cpan modules into strawberry perl's portable version? Would it be a good idea to take the portable strawberry on a development machine, install modules via CPAN, and re-zip it for distribution? (I imagine I'd need to fix the install location to c:\custom-perl or something if I do this). Anyone know of a more