Subject: | Sybase home not found |
I had the following set-up:
Home directory for sybase user /opt/sybase
Sybase installation in /opt/sybase-11.9.2
environment variable SYBASE=/opt/sybase-11.9.2
In sybperl CONFIG file, SYBASE=/opt/sybase-11.9.2
make test failed. Using strace, it was looking for the interfaces file /opt/sybase/interfaces.
test.trace.8000:open("/opt/sybase/interfaces", O_RDONLY) = -1 ENOENT (No such file or directory)
Editing /etc/passwd & changing the sybase users home to /opt/sybsae-11.9.2 worked around the problem.
I think the best way to find the SYBASE directory would be:
Take SYBASE from CONFIG if present, but default to not present.
If not present in CONFIG, use the environment variable.
Use the home directory of the sybase user only as a last resort.
I have multiple sybase installs on this machine; taking the Sybase directory from /etc/passwd will always break me.
Cheers.