Apache does not permit the CGI script to use absolute paths - it will be interpreting it instead as a relative path. See
http://httpd.apache.org/docs/2.2/sections.html for how to configure absolute paths for use, usually by an alias, in your script.
Or you might consider using Apache::Sybase::CTlib to connect to Sybase instead.