smdanzar has asked for the wisdom of the Perl Monks concerning the following question:

Hi All, I tried to install DBD::Oracle Module throgh this command perl -MCPAN -e 'force install DBD::Oracle' , I got the error is "Can't locate DBI.pm in @INC (@INC contains: /opt/perl64-5.8.8/lib/5.8.8/i86pc-solaris-64 /opt/perl64-5.8.8/lib/5.8.8 /opt/perl64-5.8.8/lib/site_perl/5.8.8/i86pc-solaris-64 /opt/perl64-5.8.8/lib/site_perl/5.8.8 /opt/perl64-5.8.8/lib/site_perl .). BEGIN failed--compilation aborted." Thats why i tried to install DBI module.But another type of reflected on the DBI installation "Your OS does not support locking; continuing and ignoring all locking issues. Segmentation Fault (core dumped)" Thanks Muhammad Anzar

Replies are listed 'Best First'.
Re: Segmentation Fault (core dumped)
by hipowls (Curate) on Jan 31, 2008 at 13:50 UTC

    You say "tried to install DBD::Oracle" but then say "Thats why i tried to install DBI module" which confuses me a little.

    Have you installed DBI? It is a separate module and needs to be installed before any of the DBD:: modules.

    By the way this is not a segmentation fault which is reported by the operating system, it is perl exiting with an error to say it can't find DBI and where it looked for it

    .
Re: Segmentation Fault (core dumped)
by ides (Deacon) on Jan 31, 2008 at 16:51 UTC

    You just need to install DBI first, all DBD::* modules require DBI. Not sure what swap and physical memory have to do with it.

    Frank Wiles <frank@revsys.com>
    www.revsys.com

Re: Segmentation Fault (core dumped)
by alexm (Chaplain) on Jan 31, 2008 at 15:01 UTC
    Where's the Segmentation Fault (core dumped) error mentioned on the title? A full error log would help a lot.