activeperl

How can I install package in ActivePerl without Internet connection?

In ActivePerl, "ppm" installs a package from the Internet, "ppm install x.ppd" installs from a ppd file, but most CPAN packages are distributed as .tar.gz How do you supply modules to a machine running ActivePerl that doesn't have an Internet connection? ("make" will probably not be available.) Update: an Internet connection can be us...

How can I get BerkeleyDB for ActivePerl 5.10?

I'm trying to find out where a BerkeleyDB PPM is for ActivePerl 5.10. Anyone have a clue where to find this, or how to build it? I had found a lead here. They claim BerkeleyDB 0.33 had built ok for Perl 5.10. They provide a link to the PPM, but not to the supporting zip file. So I got around it, manually getting the ppm and the zip and ...

How can I force a Perl script to use ActiveState's wperl?

I have a Perl script that requires two command line arguments that takes a while to run. I am using ActiveState Perl to run it. I can call it with wperl script.pl arg1 arg2 from a command prompt and it runs in the background fine. If I change the .pl association from perl.exe to wperl.exe and call it with script.pl arg1 arg2 the argument...

UDP Server listening to broadcast

Given that: The server is on windows xp running ActiveState Perl The server is connected to an internal network and an external network A computer on the internal network is broadcasting in udp to 10.4.255.255 on port 9722 I need to: listen to the broadcast and pass the messages to a function This is the code I am using: my $sock; d...

Why don't my system calls work in the Perl program I wrap with pp?

I have a Perl/POE/Tk script running on Win32 ActivePerl that calls executables using system. I created an exe of the script using pp. I can unpack the exe and see the executables off the root of the "zip" file directory, but when I run the exe and try to use the functionality of the system calls I get a "file not found" type of error; '...

How do I install XML::LibXML for ActivePerl?

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 fir...

Why doesn't my Perl script find my module even after I adjust @INC with FindBin?

I want to be able to use a module kept in the lib directory of my source code repository, and I want the only prerequisite for a developer to use the scripts that I'm writing is to have a standard Perl installation, but I'm not sure how to accomplish this. In my scripts, I have use FindBin qw($Bin); use lib "$Bin/lib"; # store non sta...

What is ActivePerl doing when it "relocates" files during installation?

Given some unix program which I've compiled, what might I need to do to relocate it to a different directory and have it continue running correctly. I'm thinking of Perl, but would be interested in other systems like Apache which also seem to fail when this is done. To motivate the question, being able to perform this sort of relocation...

How do I install Email::Send::Gmail for ActivePerl?

I am trying to install that module for mail sending . And i am getting following errors : Warning: Prerequisite 'IO::Socket::SSL => ' for 'CWEST/Net-SMTP-SSL-1.01.tar.gz' failed when processing 'SULLR/IO-Socket-SSL-1.31.tar.gz' with 'make_test => NO' . Continuing, but chances to succeed are limited. cp lib/Net/SMTP/SSL.pm blib\lib\Net...

how to connect SQL Server with perl

I know there is a similar question: http://stackoverflow.com/questions/896985/connect-to-sql-server-2005-from-perl-and-do-a-select , but I tried the accepted answer and am unable to get it to work. Assuming I have a db named test, and would love to do a select from mytable (select id, name from mytable) Code is from the link above wi...

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

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 chang...

ActivePerl doesn’t output fatals to browser.

LS, I'm using the following code to test the outputting of fatal errors to the browser: use CGI; use CGI::Carp qw(fatalsToBrowser); die "test"; I am expecting to see some error in the browser, but there isn't any, I just get a regular 500 response. I forgot that I had custom error pages on for remote requests, and I now get Script f...

Why does my ActivePerl program on Windows stop accepting socket connections?

I'm using fork() on Perl on Windows (ActivePerl) for a basic socket server, but apparently there are problems (it won't accept connections after a few times), is there any workaround? Here is the portion of the relevant code: while($client = $bind->accept()) { $client->autoflush(); if(fork()){ $client->close(); } else { $bi...

Why does my ActivePerl program report 'Sorry. Ran out of threads'?

Tom Christiansen's example code (à la perlthrtut) is a recursive, threaded implementation of finding and printing all prime numbers between 3 and 1000. Below is a mildly adapted version of the script #!/usr/bin/perl # adapted from prime-pthread, courtesy of Tom Christiansen use strict; use warnings; use threads; use Thread::Queue; su...

Why do I have to specify the -i switch with a backup extension when using ActivePerl?

I cannot get in-place editing Perl one-liners running under ActivePerl to work unless I specify them with a backup extension: C:\> perl -i -ape "splice (@F, 2, 0, q(inserted text)); $_ = qq(@F\n);" file1.txt Can't do inplace edit without backup. The same command with -i.bak or -i.orig works a treat but creates an unwanted backup file ...

How do I install modules in ActivePerl?

I want to install SGML::Parser::OpenSP in ActivePerl. Any idea what steps should I follow? ...

How do I install Perl's Parse::Lex for ActivePerl?

Hi I am using ActivePerl 5.10.1 on Win XP. I can't find Lex package from the PPM list. Can I install other package to enable Parse::Lex? ...

How do I install Encode::HanExtra for ActivePerl?

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? ...

Can I move a Perl installation from one computer to another computer?

I am trying to set up an application dependant on few Perl modules, but the server I am installing to, does not have Internet connection. I read about offline module installs via ppd files, however I would have to resolve all the dependencies one by one.. All the more tedious considering I don't have direct internet connection. I am hop...

ActiPerl + Tcl.pm *** glibc detected *** munmap_chunk(): invalid pointer: 0x09b5e0d8

I installed ActivePerl 5.10.1.1007 on my Ubuntu 10.04 machine. I have a very simple Perl script with the following lines: use lib "/opt/ActivePerl-5.10/lib"; use Tcl; my $Interpreter = new Tcl; $Interpreter->Eval('puts "Hello world"'); $Interpreter->Eval('set ::env(TESTVAR) 55') The output is the following: $ /opt/ActivePerl-5.10/...