Link to home
Start Free TrialLog in
Avatar of leviatdr
leviatdrFlag for Afghanistan

asked on

Connecting Ubuntu Server to IBM iSeries using ODBC

I thought I had this problem solved:
https://www.experts-exchange.com/questions/25957691/I-want-to-use-Linux-to-query-a-database-running-on-an-iSeries-server.html

I have the iSeries Access for Linux installed on my desktop Ubuntu box and I can query the iSeries from command line using isql to the DSN I set up using ODBCConfig. My desktop Ubuntu has Apache and PHP installed, but no ODBC support. I want my Ubuntu Server (with ODBC support in Apache/PHP) to connect and serve up the webpages, so I went through the same installation steps (downloaded iSeries Access, used Alien to convert the rpm to a dpkg, installed, set up the odbc.ini and odbcinst.ini) but every time i try to start the isql to test the connection, i get an error:

@linuxserver:~$ isql -v iseriesdb
[01000][unixODBC][Driver Manager] Can't open lib '/opt/ibm/iSeries/Access/lib/libcwbodbc.so' : file not found
[ISQL]ERROR: Could not SQLConnect

The exact same command works fine on my desktop box. I have verified that the files exist in the right location. I've even tried it with sudo and by chmod'ing the files for all permissions, but same error. I'm stuck. What am I missing?

Thanks.
ASKER CERTIFIED SOLUTION
Avatar of medvedd
medvedd

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of leviatdr

ASKER

Super Awesome. It worked. Thanks again.