Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
PerlMonks open failed

by ianlau (Initiate)
on Mar 02, 2008 at 12:06 UTC ( #671487=perlquestion: print w/replies, xml ) Need Help??

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

Hi, anyone can guide me on fixing the following file not found problem ? I got it when loading:

use Sybase::DBlib;

Can't load '/opt/perl/5.6.0/lib/site_perl/5.6.0/sun4-solaris/auto/Sybase/DBlib/' for module Sybase::DBlib: fatal: open failed: No such file or directory at /opt/perl/5.6.0/lib/5.6.0/sun4-solaris/ line 200.

Thanks in advance.

Replies are listed 'Best First'.
Re: open failed
by shmem (Chancellor) on Mar 02, 2008 at 13:22 UTC
    No such file or directory
    That's right, I guess. But that could mean that
    • either /opt/perl/5.6.0/lib/site_perl/5.6.0/sun4-solaris/auto/Sybase/DBlib/ doesn't exist
    • or a subsequent shared object file used by the above shared library doesn't exist

    So, it seems to (and the fix is)

    • either the module is not installed correctly (re-install)
    • or the module was linked against the wrong libraries (re-install)
    • or it has been compiled on a different machine and copied over (install software Sybase::DBlib depends upon, then rebuild)


    _($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                                  /\_¯/(q    /
    ----------------------------  \__(m.====·.(_("always off the crowd"))."·
    ");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
Re: open failed
by mpeppler (Vicar) on Mar 03, 2008 at 16:06 UTC
    If exists on your system (usually in $SYBASE/OCS-XY_Z/lib where XY_Z is 12_5 or 15_0) then the most likely problem is that your LD_LIBRARY_PATH isn't set correctly. The easiest way of setting your environment correctly is to source the (or SYBASE.csh) file located in the root directory of the Sybase install.


Re: open failed
by akostocker (Initiate) on Mar 18, 2008 at 15:49 UTC
    If you're dealing with a CGI script I've found that setting the LD_LIBRARY_PATH inside the perl cgi script does not work. Instead I've had to add a line to the Apache conf file in order to export the environment file correctly, like so:

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://671487]
Approved by Joost
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2020-12-01 03:11 GMT
Find Nodes?
    Voting Booth?

    No recent polls found