Perl CGI Scripts - Cannot Open
libct.dylib Sybase Error Troubleshooting
dyld: perl can't open library: libct.dylib (No such file
or directory, errno = 2) This error message is from a MacOS X installation
of Sybase and Apache, however the message would be similar with other
operating systems.
Solution: This error message means that the Perl DBD::Sybase module
is not able to locate the Sybase client libraries. The solution to this
problem is to add environment variables to the Apache httpd.conf file
for proper execution of Sybase client software libraries by DBD::Sybase.
Customize the following configuration statements to include the pathnames
to the Sybase client software installed on your web server:
(For a MacOS X Apache web server, the variables may look like this:)
SetEnv SYBASE /Applications/Sybase/System
SetEnv DSQUERY test1
SetEnv DYLD_LIBRARY_PATH /Applications/Sybase/System/ASE/ASE-12_5/lib:/Applications/Sybase/System/OCS-12_5/lib:/usr/lib
PassEnv SYBASE
PassEnv DSQUERY
PassEnv DYLD_LIBRARY_PATH
(For other UNIX web servers, the variables may look like
this:)
SetEnv SYBASE /usr/local/sybase
SetEnv DSQUERY test1
SetEnv LD_LIBRARY_PATH /usr/local/sybase/ASE/ASE-12_5/lib:/usr/local/sybase/OCS-12_5/lib:/usr/lib
PassEnv SYBASE
PassEnv DSQUERY
PassEnv LD_LIBRARY_PATH