Hmm,

I would first try to check if perl itself does load DBI at all.

i.e. a small script with only 'use DBI;'  in it.

I'm not too trusting of the install/check script there telling you perl
can't load dynamic. For starters, I would think MakeMaker would tell you
that when trying to install DBI/DBD dynamicly.

Building 'staticly' means you really include the DBI/DBD modules INTO your
perl binary. Makes for difficult upgrades and other troubles, you really
should try to get dynamic to work, spend some time on it if nessecary.

I never use CPAN-Shell (company network) but if you want to build something
staticly you have to use a different 'make' command after having run 'perl
Makefile.PL'. I think you can force CPAN-Shell to re-install a module, that
would include testing which would be nice to confirm if perl itself works
with DBI at least. (you need to specify a username/password for most DBD
tests)

What OS and database are you using ?

-----------------------------------
Frans Postma, (050-58) 81 852
ATOS Origin, Unix Support 
     "If at first you don't succeed, skydiving isn't for you"




> -----Oorspronkelijk bericht-----
> Van: Chris Bucchere [mailto:[EMAIL PROTECTED]
> Verzonden: vrijdag 28 februari 2003 15:32
> Aan: [EMAIL PROTECTED]
> CC: [EMAIL PROTECTED]
> Onderwerp: RE: Trying to build a new perl with DBI statically 
> linked to
> it
> 
> 
> Hi Frans,
> 
>       I've done this using CPAN's automatic installation. Check this
> out:
> 
> %> perl -MCPAN -e'install "DBD::mysql"'
> CPAN: Storable loaded ok
> Going to read /.cpan/Metadata
>   Database was generated on Thu, 27 Feb 2003 16:40:43 GMT
> DBD::mysql is up to date.
> 
> %>perl -MCPAN -e'install "DBI"'
> CPAN: Storable loaded ok
> Going to read /.cpan/Metadata
>   Database was generated on Thu, 27 Feb 2003 16:40:43 GMT
> DBI is up to date.
> 
>       I think there's more to it than just installing because I'm
> still getting this error message:
> 
> [Fri Feb 28 14:27:08 2003] checksetup.pl: [Fri Feb 28 14:27:08 2003]
> checksetup.pl: Can't load module DBI, dynamic loading not available in
> this perl.
> [Fri Feb 28 14:27:08 2003] checksetup.pl: [Fri Feb 28 14:27:08 2003]
> checksetup.pl:   (You may need to build a new perl executable which
> either supports
> [Fri Feb 28 14:27:08 2003] checksetup.pl: [Fri Feb 28 14:27:08 2003]
> checksetup.pl:   dynamic loading or has the DBI module 
> statically linked
> into it.)
> [Fri Feb 28 14:27:08 2003] checksetup.pl: [Fri Feb 28 14:27:08 2003]
> checksetup.pl:  at
> /usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/DBI.pm line 256
> [Fri Feb 28 14:27:08 2003] checksetup.pl: [Fri Feb 28 14:27:08 2003]
> checksetup.pl: BEGIN failed--compilation aborted at
> /usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/DBI.pm line 256.
> [Fri Feb 28 14:27:08 2003] checksetup.pl: [Fri Feb 28 14:27:08 2003]
> checksetup.pl: Compilation failed in require at globals.pl line 76.
> [Fri Feb 28 14:27:08 2003] checksetup.pl: [Fri Feb 28 14:27:08 2003]
> checksetup.pl: BEGIN failed--compilation aborted at 
> globals.pl line 76.
> [Fri Feb 28 14:27:08 2003] checksetup.pl: Compilation failed 
> in require
> at checksetup.pl line 617.
> 
>       Keep in mind that I've already tried compiling perl with dynamic
> loading and Bugzilla did not recognize the DBD::mysql or DBI 
> modules. So
> now I'm trying to build perl with static links to these two modules.
> That's where I'm stuck.
> 
> Thanks!
> 
> Chris Bucchere
> Bucchere Development Group
> [EMAIL PROTECTED]
> 415.516.3941
> 
> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] 
> Sent: Friday, February 28, 2003 2:24 PM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: RE: Trying to build a new perl with DBI statically 
> linked to it
> 
> Download DBI-1.32 and and DBD module which links to the database you
> want to
> use (e.g. oracle, mysql or such) and compile/install both. 
> (DBI first).
> 
> If you don't have a database setup yet you need some more documents
> first,
> since bugzilla requires one.
> 
> -----------------------------------
> Frans Postma, (050-58) 81 852
> ATOS Origin, Unix Support 
>      "If at first you don't succeed, skydiving isn't for you"
> 
> 
> > -----Oorspronkelijk bericht-----
> > Van: Chris Bucchere [mailto:[EMAIL PROTECTED]
> > Verzonden: vrijdag 28 februari 2003 15:19
> > Aan: [EMAIL PROTECTED]
> > Onderwerp: Trying to build a new perl with DBI statically 
> linked to it
> > 
> > 
> > Hi Folks,
> > 
> >  
> > 
> >           I've encountered an error when configuring some 
> open-source
> > software (Bugzilla) that has asked me to "build a new perl 
> executable
> > which either supports dynamic loading or has the DBI module 
> statically
> > linked into it." I don't know how to do this and I can't find any
> > documentation to help me out. Can you point me in the right 
> direction?
> > 
> >  
> > 
> > Thanks!
> > 
> >  
> > 
> > Chris Bucchere
> > 
> > Bucchere Development Group
> > 
> > [EMAIL PROTECTED]
> > 
> > 415.516.3941
> > 
> >  
> > 
> > 
> 

Reply via email to