DBI issues

DBI issues

am 10.10.2005 07:34:43 von razat.gupta

------_=_NextPart_001_01C5CD5C.96430373
Content-Type: text/plain;
charset=us-ascii
Content-Transfer-Encoding: quoted-printable

Hello Everyone,

=20

I m new to perl.

I am stuck to some point.

Our administrator have installed a module called DBI.pm in /DBI-1.48.

Now when I try to run a script as :

=20

Perl -e "use DBI";

=20

It will generate an error called:

=20

=20

"Can't locate loadable object for module DBI in @INC (@INC contains:
/DBD-1.16/DBD-Oracle-1.16/ /DBI-1.48/DBI-1.48/
/usr/perl5/5.00503/sun4-solaris /usr/perl5/5.00503
/usr/perl5/site_perl/5.005/sun4-solaris /usr/perl5/site_perl/5.005 .) at
/DBI-1.48/DBI-1.48//DBI.pm line 254

BEGIN failed--compilation aborted at /DBI-1.48/DBI-1.48//DBI.pm line
254."

=20

If any body having any idea that whether its an issue related to the
installation or some thing else.

Please let me know.

=20

Regards,

Razat Gupta

HCL TECHNOLOGIES

+91-9810674702=20

=20

=20


------_=_NextPart_001_01C5CD5C.96430373--

Re: DBI issues

am 10.10.2005 10:20:36 von ron

On Sun, 9 Oct 2005 22:34:43 -0700, Gupta, Razat wrote:

hi Razat

> Perl -e "use DBI";

Load the DBI module with -M before using it:

Unix shell>perl -MDBI -e 'print "$DBI::VERSION\n" '

DOS shell>perl -MDBI -e "print qq|$DBI::VERSION\n| "

--
Cheers
Ron Savage, ron@savage.net.au on 10/10/2005
http://savage.net.au/index.html
Let the record show: Microsoft is not an Australian company

Re: DBI issues

am 10.10.2005 11:00:27 von Tim.Bunce

On Sun, Oct 09, 2005 at 10:34:43PM -0700, Gupta, Razat wrote:
> Hello Everyone,
>
> I m new to perl.
>
> I am stuck to some point.
>
> Our administrator have installed a module called DBI.pm in /DBI-1.48.

I think your administrator has not actually installed the module.

I'd guess that your administrator has just unpacked the distribution.

Read the README file (also available on http://search.cpan.org as
http://search.cpan.org/src/TIMB/DBI-1.48/README)

Tim.

> Now when I try to run a script as :
>
>
>
> Perl -e "use DBI";
>
>
>
> It will generate an error called:
>
>
>
>
>
> "Can't locate loadable object for module DBI in @INC (@INC contains:
> /DBD-1.16/DBD-Oracle-1.16/ /DBI-1.48/DBI-1.48/
> /usr/perl5/5.00503/sun4-solaris /usr/perl5/5.00503
> /usr/perl5/site_perl/5.005/sun4-solaris /usr/perl5/site_perl/5.005 .) at
> /DBI-1.48/DBI-1.48//DBI.pm line 254
>
> BEGIN failed--compilation aborted at /DBI-1.48/DBI-1.48//DBI.pm line
> 254."
>
>
>
> If any body having any idea that whether its an issue related to the
> installation or some thing else.
>
> Please let me know.
>
>
>
> Regards,
>
> Razat Gupta
>
> HCL TECHNOLOGIES
>
> +91-9810674702
>
>
>
>
>