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

Hello,

I'm trying to compile a perl program into binary using perlcc. The perl script uses "DBI.pm".

After I compiled it and ran it I got the error:

Can't load module DBI, dynamic loading not available in this perl. (You may need to build a new perl executable which either supports dynamic loading or has the DBI module statically linked into it.) at /usr/lib/perl5/5.005/i386-linux/DBI.pm line 158 BEGIN failed--compilation aborted at /usr/lib/perl5/5.005/i386-linux/DBI.pm line 158. BEGIN failed--compilation aborted at strictcommon.pl line 21.
Any ideas why it's not linking to DBI.so? This is a potato box...

Thanks in advance,

Replies are listed 'Best First'.
Re: PERlCC & DBI
by merlyn (Sage) on Mar 21, 2001 at 00:09 UTC

      I can write in perl much easier/quicker than i can write in C/C++ (note - talking weeks here, not hours or days), and i would like to run the code on machines that i know will not have perl installed.

      For me, compiling into a static binary would be very useful...

      (actually, i have managed a dynamic binary, just cannot yet work out the last step to get a fully static one).

      N.

      i suggest you to look at at Perl2exe i think it's best around u can compile Tk apps without console wondow on the back www.perl2exe.com