Quantcast
Channel: linuxadmin: Expanding Linux SysAdmin knowledge
Viewing all articles
Browse latest Browse all 17912

PSQLv11 Client Drivers - Can't open lib '$lib' : file not found

$
0
0

I am trying to configure a Debian 8.2 client to run a php ODBC query to pull data from a Win 2012r2 server running Pervasive v11 database. I think that I am having problems with the Pervasive v11 client driver on the Debain VM as I am able to run normal sql queries to pull info from a test mySQL database on a different VM.

I'll take this moment to admit that I have limited experience in linux environments, so I'm sorry if I have some stupid questions along the way.

Things I have installed and working is a short list:

apache2 php5 php5-odbc 

Pretty sure everything is in 64-bit version as I simply ran

apt-get install apache2 php5 php5-odbc 

As stated, I am able to use this setup to perform sql queries pulling from a vanilla mySQL database, no problem.

What I am having problems with is the Pervasive v11 client driver. I think I have successfully installed the Pervasive client drivers by way of:

tar -xzf /usr/local/Pervasive.SQL-Client-Core-11.30-061.000.x86_46.tar.gz sh /usr/local/psql/etc/clientpreinstall.sh sh /usr/local/psql/etc/clientpostinstall.sh 

I have been playing with /usr/local/psql/etc/odbc.ini but I'm not sure exactly what that's supposed to look like. Here is what I have currently:

[Pervasive ODBC Interface] Driver=/usr/local/psql/lib64/libodbcci.so ServerName=$servername Port=$port UID= PWD= OpenMode=0 

And /usr/local/psql/etc/obdcinst.ini I haven't changed from default:

[Pervasive ODBC Interface] Driver=/usr/local/psql/lib/libodbcci.so Driver64=/usr/local/psql/lib64/libodbcci.so 

Both odbc.ini and odbcinst.ini have symlinks to /etc/

When I try to connect to the psql database using php:

<php? $conn=odbc_connect("Pervasive ODBC Interface", username,pa$$w0rd); ?> 

I get the following error:

Error: 01000 ErrorMsg: [unixODBC][Driver Manager]Can't open lib '/usr/local/psql/lib64/libodbcci.so' : file not found 

So thats where I'm stuck; my google-fu is expended and all my links are purple. All I can find are references to "LD_LIBRARY_PATH" but this is moving into uncharted territory for me.

Is anybody able to point me in the right direction? Thanks in advance for any assistance.

tl;dr Having trouble with Debian PSQLv11-client drivers.

submitted by WanderNude
[link][8 comments]

Viewing all articles
Browse latest Browse all 17912

Trending Articles