Re: Perl & DBI cannot locate



Thanks for the software.
Yes I do have it installed.
user@medusa$ perldoc -l DBI
/opt/perl/lib/site_perl/5.8.8/PA-RISC2.0/DBI.pm
But, when I do:
user@medusa$ perl -MDBI -e1
Can't locate DBI.pm in @INC (@INC contains:
/opt/perl64/lib/5.8.8/PA-RISC2.0-LP64 /opt/perl64/lib/5.8.8
/opt/perl64/lib/site_perl/5.8.8/PA-RISC2.0-LP64
/opt/perl64/lib/site_perl/5.8.8 /opt/perl64/lib/site_perl .).
BEGIN failed--compilation aborted.

How do I fix this?
I believe I installed this thru sam, where/how do I modify the search
path...
Would this also be the reason why I get a memory fault when I enter
debug mode?
root@medusa # perl -de0
Memory fault(coredump)


H.Merijn Brand wrote:
On Mon, 20 Nov 2006 20:07:40 +0100, LHradowy <lhradowy@xxxxxxxxx> wrote:

I just installed:
perl 5.8.7 + defined-or + DBI 1.48 + Tk 804.027 built with gcc-4.0.0
From:
http://mirrors.develooper.com/hpux/downloads.html

That's my site :)

I was under the assumption that the DBI module was installed.

It should be.

# find /opt/perl64 -name DBI.pm

If not, I should check. What OS? 11.11?

When I do:
perldoc DBI
I get the docs for DBI

But when I try to use DBI I get an error...
Can't locate DBI.pm in @INC (@INC contains:
/opt/perl64/lib/5.8.8/PA-RISC2.0-LP64 /opt/perl64/lib/5.8.8
/opt/perl64/lib/site_perl/5.8.8/PA-RISC2.0-LP64
/opt/perl64/lib/site_perl/5.8.8 /opt/perl64/lib/site_perl .) at test2
line 27.
BEGIN failed--compilation aborted at test2 line 27.

My path points to /usr/bin/perl.
lrwxr-xr-x 1 root sys 20 Nov 20 11:56 /usr/bin/perl ->
/opt/perl64/bin/perl

How can I tell if it is installed, or do I still need to install this.
Do I also need the oracle driver?

.



Relevant Pages

  • Installing DBI and DBD::TSM
    ... I am having trouble installing DBI. ... This is perl, v5.8.0 built for aix-thread-multi ... blib/lib/DB ... You can install them any time after installing the DBI. ...
    (perl.dbi.users)
  • Problem of installing DBI packages
    ... my curent configuration of HP Unix system is as below: ... When i do>>perl makefile.PL, ... You can install them any time after installing the DBI. ...
    (perl.dbi.users)
  • Re: DBI Installation Problems
    ... In case if anyone else has this ELFCLASS problem in the future when building DBI & DBD::Oracle on Solaris 10 using a 32-bit Perl installation, here is what worked for me. ... Next you can install DBI as it is normally setup... ... wrong ELF class: ELFCLASS64 at ...
    (perl.dbi.users)
  • Re: List all modules installed
    ... Also I tried perldoc -q install ... It gave me the steps on how to install a perl module. ...
    (perl.beginners)
  • Re: You got me all wrong! ; -) => Re: Simple programming language anyone?
    ... "perldoc" seems to be installed with perl, ... You need to install the perl-doc package to use this program. ... perl install so that it purposely does not include the important ... that unenforced formatting. ...
    (Ubuntu)