strawberry-perl

Strawberry Perl - Net::Server test hangs during install

百般思念 提交于 2019-12-23 15:53:25
问题 While installing Net::Server, the tests hang on 4/5, and the install blocks until I send a break signal. I've tried googling, but haven't been able to find anything relevant. I'm using Strawberry Perl 5.12.2 on Windows XP Install output: cpan> install Net::Server Running install for module 'Net::Server' Running make for R/RH/RHANDOM/Net-Server-0.99.tar.gz Has already been unwrapped into directory C:\strawberry\cpan\build\Net-Server- 0.99-lExqFv Has already been made Running make test C:

Installing Gtk2 on portable strawberry

烂漫一生 提交于 2019-12-23 12:08:03
问题 I downloaded "strawberry-perl-5.12.2.0-portable" and "gtk+-bundle_2.22.1-20101227_win32". I extracted strawberry-perl in some directory and there I put gtk folder with gtk stuff. In portableshell.bat I changed Path env and added: "%drivep%\gtk\bin;%drivep%\gtk\lib;". Don't ask me why I added lib directory, I saw that some guy added it in some website. When I run in portableshell command: "pkg-config --libs --cflags gtk+-2.0" I get: c:\test>pkg-config --libs --cflags gtk+-2.0 -mms-bitfields

How do I upgrade strawberry perl without wiping \perl\site\lib\ and \perl\site\bin\?

南笙酒味 提交于 2019-12-23 10:48:37
问题 I downloaded the 5.12.3 installer to upgrade my 5.12.1 installation. After installing 5.12.3, my previously installed cpan modules are gone. Is this expected behavior? Should I be backing up my library before upgrading to prevent this? 回答1: It is expected behavior. Next time you can use "autobundle" feature of CPAN client, it will create list/bundle of modules to reinstall using CPAN client in new version. 回答2: I would claim that this should not be expected behavior. The site directories are

How do I compile a Perl module on Windows with Strawberry?

£可爱£侵袭症+ 提交于 2019-12-20 03:57:13
问题 This is more an open discussion and a conclusion than a real question, hoping it can help someone sometime. I was looking on how to make Perl module on an Internet disconnected server (otherwise the answer is quite simple: use cpan ), so the only option I have is to manually compile the modules downloaded from the Internet (CPAN or others) directly on the server. The problem was that, on a standard Windows server, there is no compiler. So how do I make the modules? 回答1: If you look in your

How do I run programs with Strawberry Perl?

橙三吉。 提交于 2019-12-17 22:58:06
问题 A coworker is trying to use ack (a Perl program) on his Windows machine, having tried it under Linux and decided he definitely wants to use it. He managed to get Strawberry Perl installed on his machine, but can't seem to figure out what to do to make ack run with it from a command prompt. He tried editing the #! line, but I knew that wouldn't work. I'm pretty sure Strawberry perl is in his PATH. What do you need to do to run a general Perl program in your PATH on Windows using Strawberry?

Can a Perl script detect whether it's running under Activestate vs Strawberry Perl?

你。 提交于 2019-12-13 14:15:28
问题 I have a Perl script I'm still trying to debug and in the process I've noticed that it behaves differently running under ActivePerl and Strawberry Perl. This has led me to wonder how a Perl script might detect under which of these flavours it is running. 回答1: ActivePerl on Windows always (or at least since Perl 5.005) defines the Win32::BuildNumber() function, so you can check for it at runtime: if (defined &Win32::BuildNumber) { say "This is ActivePerl"; } else { say "This is NOT ActivePerl"

Why won't Strawberry Perl remove these form feed characters?

柔情痞子 提交于 2019-12-13 05:17:46
问题 I'm currently running Strawberry Perl on WinXP, and I'm trying to process a unix-formatted flat file. The flat file uses line feed characters to delimit fields, and form feed characters to delimit a record. I am trying to convert the FF to anything else (CRLF, ';', TAB, etc). I have tried using the following perl one-liners with no success: perl -p -e 's/\f/\r\n/g' < unix.txt > dos.txt perl -p -e 's/\x0c/\x0d\x0a/g' < unix.txt > dos.txt perl -p -e 's/\f/\t/g' < unix.txt > dos.txt The only

In Strawberry Perl, what is the difference between perl\lib and perl\site\lib?

可紊 提交于 2019-12-12 11:22:01
问题 In the Strawberry Perl distribution for Win32, what is the difference between perl\lib and perl\site\lib ? When CPAN modules are installed, are the files all stored in perl\site\lib by default? Is perl\lib reserved for modules that come with the standard Perl distribution? 回答1: The lib directory is for things that are part of the core Perl distribution. The site/lib directory is for things that have been added -- either by the distribution (ActivePerl, Strawberry Perl, etc.) or by the user

Openssl upgrade in Strawberry Perl

假如想象 提交于 2019-12-12 01:38:06
问题 I want to ask that how can I upgrade the Openssl version from 0.9 to 1.0.* in Strawberry Perl version 5.10.*? PS: I do not want to upgrade the strawberry perl version as well as I am using windows environment. Thanks! 回答1: Note, also asked, answered on Perlmonks. As far as I know, you can't simply upgrade OpenSSL within a Strawberry installation. Also, Perl 5.10 was released way back in 2007, so it's probably best you upgrade the whole shebang anyways. berrybrew for Windows offers you a way

Strawberry Perl - Search and replace in Windows

自闭症网瘾萝莉.ら 提交于 2019-12-11 16:46:12
问题 I am trying to execute the following command: perl -pi -e 's,vaadin-element,color-picker,g' *.* demo/* test/* src/* theme/*/* (following this document) Unfortunately it seems that the window distribution of pearl I use has some issues with the command, as I get the following error: Can't open *.*: Invalid argument. Can't open demo/*: Invalid argument. Can't open test/*: Invalid argument. Can't open src/*: Invalid argument. Can't open theme/*/*: Invalid argument. Any suggestions on how to fix