Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi Perlmonks,
I am using the module Crypt::CBC;
if i run my script commandline it is working.
But if i make exe it is not working
error :
-------
Tk::Error: Couldn't load Crypt::Blowfish: Can't locate
Crypt/Blowfish.pm in @INC (@INC contains: C:\DOCUME~1
\Admin\LOCALS~1\Temp\pdk-1229781-1092\) at (eval 170) line 3, <DATA> line 164.
Crypt::CBC::__ANON__ at (eval 170) line 3
PerlApp::my_require at perlapp.pl line 1427
Carp::croak at Carp.pm line 119
Crypt::CBC::new at /PerlApp/Crypt/CBC.pm line 37
Please help me on this

Replies are listed 'Best First'.
Re: getting locate problam
by tachyon-II (Chaplain) on Jun 17, 2008 at 15:11 UTC

    It is almost certainly because you have not told pdk to include Crypt::Blowfish. This is speculation because I don't use this but if you are say using the Crypt::CBC example which specifies the 'Blowfish' cipher then you either need to add use Crypt::Blowfish to your code or add a command line argument telling pdk to include this module. The problem from pdk's point of view is that Crypt::CBC does not decide which Crypt:: module to load until runtime (default is Crypt::DES) so pdk does not know Blowfish is required as compile time. I expect adding a use Crypt::Blowfish to your code, and then recompiling as you have been doing should do the trick.

Re: getting locate problam
by marto (Cardinal) on Jun 17, 2008 at 13:28 UTC
Re: getting locate problam
by Anonymous Monk on Jun 17, 2008 at 13:27 UTC
Re: getting locate problam
by kabeldag (Hermit) on Jun 17, 2008 at 13:29 UTC

    C:\DOCUME~1\Admin\LOCALS~1\Temp\pdk-1229781-1092\ is a fairly odd directory to be included in @INC!
    Are you using Active State?

    Update:

    I guess so. But yes, as the others have indicated, you may need to install all required modules before you include them. Hmm, @INC seems a bit short on locations. Either that, or the modules aren't bundled correctly!? I haven't touched Perl Dev Kit though, which is how you're bundling - i think...