When I ran sh Configure, I answered yes for a question, that
asks if I want to build with dynamic loading, I answered no, 
then when I compiled DBI, I ran make perl, so a new perl executable was 
generated, finally I compiled DBD::Informix after setting the environment
variable DBD_INFORMIX_RELOCATABLE_INFORMIXDIR which allow you to move the
informix directory.

I already tried to move the Perl executable from on machine to another
like from Solaris 2.6 to Solaris 2.7 and it is working just fine, but
when using "use DBI" it complained as I said in the previous email, but
when I moved the directroy structure to the new machine it works fine.

It seems that I am missing the point here, so what I am asking is, when
compiling DBI statically, why do I need DBI.pm? or this has nothing to
with static and I still needs DBI.pm??

Regards,
Mahdi.

"Michael Wray" <[EMAIL PROTECTED]> wrote:
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 ******************************



Reply via email to