5 messages in com.mysql.lists.perlRe: Can't load module DBI, dynamic lo...
FromSent OnAttachments
Philip Smeuninx25 Aug 1999 02:32 
artlore25 Aug 1999 09:31 
Jochen Wiedmann25 Aug 1999 11:23 
Philip Smeuninx26 Aug 1999 01:59 
Jochen Wiedmann27 Aug 1999 00:21 
Subject:Re: Can't load module DBI, dynamic loading not available in this perl.
From:Philip Smeuninx (psme@cisco.com)
Date:08/26/1999 01:59:17 AM
List:com.mysql.lists.perl

Thanks for the reply,

I did the rebuild of Perl and I specified to use dynamic loading. But he still gives the same error. Do I have to reboot the system (since it is a system that is in production, this is hard and prob has to be done during the night) I also tryed to static link the modules to perl like you suggested, but also here the same error stays.

Many thanks,

Philip

On Aug 25, 7:32pm, Jochen Wiedmann wrote:

Subject: Re: Can't load module DBI, dynamic loading not available in this Philip Smeuninx wrote:

Hi,

I receive the following 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/site_perl/5.005/i686-linux/DBI.pm line 158 BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.005/i686-linux/DBI.pm line 158. BEGIN failed--compilation aborted at test.pl line 3.

I don't want rebuild perl, is ther another way?

If you really don't want to rebuild perl, the answer is "no". However, I can hardly see an advantage of a Perl without support for dynamic modules? I'd really recommend you use a Perl as distributed with your Linux version.

Besides, you overestimate the amount of work being done for creating a statically linked Perl. With a dynamically linked Perl you do a

perl Makefile.PL make make test make install

To get a statically linked Perl you do instead

perl Makefile.PL LINKTYPE=static make make test make install make installperl

for both DBI and the Msql-Mysql-modules.

Bye,

-- End of excerpt from Jochen Wiedmann