ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> pdk
pdk
PerlCtrl and "Can't locate Config_heavy.pl in @INC"
by Jenda Krynicky other posts by this author
Jun 1 2008 8:49AM messages near this date
RE: PDK 7.2 for linux, 32 vs 64 bit? | 64-bit Windows compiling environment
I have a fairly old PDK (5.3.0 build 530) and I've recently upgraded 
to Perl 5.8.8 (build 822). I'm using PerlCtrl to wrap some Perl code 
so that it can be used from ASPs, everything worked fine, but once I 
upgraded Perl and rebuilt the DLLs (I rebuilt all of them to make 
sure all use the same version of Perl58.dll), they worked fine, but 
they all stopped working within IIS as soon as it served any .plx 
script (.plx is assigned to PerlIs.DLL. The OLE objects failed to 
instantiate, the .plx scripts worked file. A restart of IIS or the 
AppPool fixed the issue until another request to *.plx.

The perl installed on the server and used for the .plx was exactly 
the same version as the one used when building the DLLs.

Later I found out that if I try to instantiate any of the DLLs from 
within Perl it fails with 

Can't locate Config_heavy.pl in @INC (@INC contains: 
D:\p4_TMP\release\VIPeR\Dev\Dlls) at D:/Perl/lib/Config.pm line 70.
BEGIN failed--compilation aborted at /PerlApp/Win32/OLE.pm line 13.
BEGIN failed--compilation aborted at /PerlApp/PerlCOM.pm line 78.
BEGIN failed--compilation aborted at perlctrl line 1195.
BEGIN failed--compilation aborted at -e line 6.


I tried to force PerlCtrl to include Config_heavy.pl in the DLL but 
failed.

I tried
	--add Config_heavy.pl
and
	--add Config
or
    require 'Config_heavy.pl';
    use Config;
in the source, nothing helped.

I had to copy the Config_heavy.pl into the directory containin the 
DLLs!


Is this a known problem with the old PDK that has been solved in 
newer versions? Is there a better solution with PDK 3.5.0? Would by 
any chance newer PDK allow DLLs built with different versions of Perl 
to coexist within one process (that is allow them to be used in ASPs 
in the same website)?

Thanks, Jenda
===== Jenda@[...].cz === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed 
to get drunk and croon as much as they like.
	-- Terry Pratchett in Sourcery

_______________________________________________
PDK mailing list
PDK@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved