Can"t locate loadable object for module DBI in

Can"t locate loadable object for module DBI in

am 07.09.2006 16:49:42 von sunilav

------=_Part_157259_7536660.1157640582128
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi,

I have a properly installed and working DBI/DBD::Oracle on Sun Solaris Unix
box 'A'. While installing this, I had used INSTALLIBDIR option which created
all my lib and DBI.pm and DBD.pm in the directory I mentioned. I have
working perl programs using these DBI/DBD in the programs to connect and do
database stuff.

Now I have to install similar DBI/DBD in another Sun solris unix box 'B'. I
cannot install the modules fresh because /opt/SUNWspro cc is not
available/installed on that box. So I did a tar of whole lib directory in
Unix box 'A' and ftp-ed it to Unix box 'B' and untarrred into a directory.
Here, I have not executed any of commands like make, make install, etc as
there is no c compiler. Now in my perl program in box 'B' when I try to use
DBI it is giving
"Can't locate loadable object for module DBI in @INC (@INC contains: .."

I have proper path included as
BEGIN {unshift(@INC, "/opt/myapp/perlmods")} in my perl program.
/opt/myapp/perlmods directory properly contains DBI.pm with full permissions

Will this kind of copy paste the installation on different unix box - does
not work? Please note both unix boxes are similar in charactersitics. All
permissions in all directories of "B' are 775. So that should not be a
problem.

Please let me know your inputs

Thanks
Sunil

------=_Part_157259_7536660.1157640582128--

Re: Can"t locate loadable object for module DBI in

am 07.09.2006 17:29:19 von clive

Sunil A V wrote:
> Hi,
>
> I have a properly installed and working DBI/DBD::Oracle on Sun Solaris Unix
> box 'A'. While installing this, I had used INSTALLIBDIR option which
> created
> all my lib and DBI.pm and DBD.pm in the directory I mentioned. I have
> working perl programs using these DBI/DBD in the programs to connect and do
> database stuff.
>
> Now I have to install similar DBI/DBD in another Sun solris unix box 'B'. I
> cannot install the modules fresh because /opt/SUNWspro cc is not
> available/installed on that box. So I did a tar of whole lib directory in
> Unix box 'A' and ftp-ed it to Unix box 'B' and untarrred into a directory.
> Here, I have not executed any of commands like make, make install, etc as
> there is no c compiler. Now in my perl program in box 'B' when I try to use
> DBI it is giving
> "Can't locate loadable object for module DBI in @INC (@INC contains: .."
>
> I have proper path included as
> BEGIN {unshift(@INC, "/opt/myapp/perlmods")} in my perl program.
> /opt/myapp/perlmods directory properly contains DBI.pm with full
> permissions
>
> Will this kind of copy paste the installation on different unix box - does
> not work? Please note both unix boxes are similar in charactersitics. All
> permissions in all directories of "B' are 775. So that should not be a
> problem.
And have you installed the Oracle client libraries on B?