Attempts to run interactive sql from a command line on a linux server are failing:
> dbisql -bash: /opt/sqlanywhere12/bin32/dbisql: file not found
Yet the file dbisql does exist.
'source'ing does not fix the problem.
This is a fresh install (ga1201, ubuntu12). Other command line utilities work normally (dblocate, dbinit, etc).
I'm puzzled. Any suggestions?
(Edit: more information)
> . /opt/sqlanywhere12/bin64/sa_config.sh iAnywhere Solutions, Inc. One Sybase Drive, Dublin, CA 94568, USA Copyright (c) 2001-2011, iAnywhere Solutions, Inc. Portions copyright (c) 1988-2011, Sybase, Inc. All rights reserved. All unpublished rights reserved. > which dbisql /opt/sqlanywhere12/bin32/dbisql > dbisql -bash: /opt/sqlanywhere12/bin32/dbisql: No such file or directory > ls -al /opt/sqlanywhere12/bin32/dbisql -r-xr-xr-x 1 root root 340236 Jun 28 19:20 /opt/sqlanywhere12/bin32/dbisql
Documentation says (readme_en.txt in install bundle) and online:
"On 64-bit Linux distributions, you must install the 32-bit compatibility libraries if you want to use the administration tools. In particular, the 32-bit X11 libraries are required. On Ubuntu, run:
This solved the issue.
> dbisql -nogui (Not Connected)>
dbisql was never missing. dbisql was running but couldn't find some file that was in the 32bit libs.
A more descriptive error message saying which file was missing would be helpful for people like me!