In the sybopts.sh script, the SYBBIN environment variable is being set to ${OCSBASE}/bin64. You need to set it to ${OCSBASE}/bin to work correctly. This is only for the ESQL/C examples. Refer to the latest SDK and Open Server ESD for additional information.