cancel
Showing results for 
Search instead for 
Did you mean: 

Ubuntu connecting to Sybase version 10

alunrowe
Discoverer
0 Kudos

I am writing a PHP app that needs to pull information from a Sybase v10 database on a remote server.

I am told I need the SQL anywhere driver for this which I have obtained and installed but it keeps telling me I need libdbcapi.so which I assume is installed as part of the SERVER installation.

How can I achieve the link I need to enable the use of the sasql_connect function and all of it's associated requests?

I'm an experienced dev but sadly I have next to no experience of SQL Anywhere.

Thanks in advance!

Accepted Solutions (1)

Accepted Solutions (1)

former_member244518
Participant
0 Kudos

Hi Alun,

To connect to the database you'll need both the PHP module and the SQL Anywhere client (which contains the libdbcapi.so library).

If you install the client from this link:

http://scn.sap.com/docs/DOC-35857

and set up the LD_LIBRARY_PATH as described here:

http://wiki.scn.sap.com/wiki/display/SQLANY/Getting+Started+with+SAP+SQL+Anywhere+and+PHP

You should be able to use sasql_connect to connect to the remote database.

Let us know if you run into any problems.

Thanks,

Mikel

Answers (0)