How did you Statically link it? If you just used a USE statement then chances are
it's not linked at all....I know I have seen where the perlcc only links things that
are REQUIRED ....unfortunately, last time I checked, you couldn't dynamically connect
to different Databases with a compiled Perl Executable...because everything (and I
mean everything) was assumed to be static, including the Database you were connecting
to...I don't know if this is still true..that was almost a year ago now...
*********** REPLY SEPARATOR ***********
On 12/12/01 at 3:30 PM Mahdi Sbeih wrote:
>Hi all,
>
>It seems I confused you from my question, I will
>reformat it in different way:
>
>When Compiling Perl in Static mode...then
>Compiling DBI Module...then
>build a new perl executalbe with DBI statically linked
>into it.....then
>
>If I move this Perl executalbe to an exact identical machine,
>do I need anything other the Perl executable???
>
>I tried to run a small script
>#!/tmp/perl -w
>use DBI;
>print("\nHi \n");
>
>When I run the script, the Perl comlains that DBI.pm is not there,
>so do I need to move also DBI.pm with the executalbe?,
>
>Am I missing anything,
>feed back please.
>
>Regards,
>Mahdi.
********************** 2K ******************************