[unixODBC-support] unixODBC-support Digest, Vol 102, Issue 2

Nick Gorham nick at lurcher.org
Thu Apr 4 23:54:15 BST 2013

On 04/04/13 22:46, barsalou wrote:
> Quoting Thomas Kienast <tomk at milt.at>:
>> I installed unixodbc and freetds, but when I try to establish a
>> connection via php I receive this error message:
>> Warning: odbc_connect(): SQL error: [unixODBC][Driver Manager]Can't
>> open lib '/opt/microsoft/msodbcsql/lib64/libmsodbcsql-11.0.so.2260.0' :
>> file not found, SQL state 01000 in SQLConnect in ......
>> Actually '/opt/microsoft/msodbcsql/lib64/libmsodbcsql-11.0.so.2260.0'
>> is existant on exactly this path.
> Just shooting in the dark here, but does the webserver have rights to 
> that file?
> What happens when you do the steps here?
> http://freetds.schemamania.org/userguide/confirminstall.htm
> Mike B.

Are you sure thats the right lib? That looks like a MS driver, not freetds.

But is thats what you expect, its probably a lib that hat driver needs 
that is missing. Try

ldd /opt/microsoft/msodbcsql/lib64/libmsodbcsql-11.0.so.2260.0


More information about the unixODBC-support mailing list