Hi there, I hope someone can help me.
First of all, I'm on Fedora 14 distribution and my kernel version is 2.6.35.13-91.fc14.i686.
We have a PowerBuilder aplication that runs on a Windows machines by now, but we want to migrate to Linux.
I have installed the application on Wine, but the application makes a conection to a database through an odbc on Windows, that's why I have installed unixODBC and Easysoft ODBC-Sybase Driver ().
After the Easysoft ODBC-Sybase Driver instalation I have configurated as it says on the documentation, but it doesn't work with that instructions. The documentation says that I have to put this parameters on
.odbc.ini file, that is on
/home/user/ (current user).
Quote:
[my_data_source]
Driver = SYBASE
Database = /home/user/data_base.db
User = dba
Password = xxxxx
|
And I have this on the
/etc/odbcinst.ini file
Quote:
[PostgreSQL]
Description = ODBC for PostgreSQL
Driver = /usr/lib/psqlodbc.so
Setup = /usr/lib/libodbcpsqlS.so
Driver64 = /usr/lib64/psqlodbc.so
Setup64 = /usr/lib64/libodbcpsqlS.so
FileUsage = 1
[MySQL]
Description = ODBC for MySQL
Driver = /usr/lib/libmyodbc5.so
Setup = /usr/lib/libodbcmyS.so
Driver64 = /usr/lib64/libmyodbc5.so
Setup64 = /usr/lib64/libodbcmyS.so
FileUsage = 1
[SYBASE]
Description = Easysoft ODBC Sybase Driver
Driver = /usr/local/easysoft/sybase/libessybase.so
Setup = /usr/local/easysoft/sybase/libessybasesetup.so
FileUsage = 1
|
But I'm only interested on the SYBASE section. The Easysoft ODBC-Sybase Driver is installed on
/usr/local.
I check if the data source is available with execute
Quote:
$ odbcinst -s -q
[my_data_source]
|
When I want to test the conection with
Quote:
$ isql my_data_source -v dba xxxxx
|
I get the following error:
Quote:
Segmentation Violation (`core 'generated)
|
Then I have found on a webpage that I can add data sources to the
.odbc.ini file with the
dbdsn command. I have installed SQL Anywhere 10.0.1 and Interactive SQL too. I execute dbdsn with this paramates:
Quote:
$ dbdsn -w "my_data_source" -c "uid=dba;pwd=xxxxx;dbf=/home/user/data_base.db"
|
And I get this on the
.odbc.ini file:
Quote:
[ODBC Data Sources]
my_data_source=SQLAnywhere 10.0
[my_data_source]
UserID=dba
Password=xxxxx
DatabaseFile=/home/user/data_dase.db
Driver=libdbodbc10.so
|
Obviously, I have deleted the other parameters that I had before. I tried to test the conection with
isql I get this:
Quote:
$ isql my_data_source -v dba xxxxx
[IM002][unixODBC][Driver Manager]Data source name not found, and no default driver specified
[ISQL]ERROR: Could not SQLConnect
|
But if I execute
dbisql, I can conect with my_data_source ODBC source. Then, I think that the ODBC is ok, but I'm not sure, because the error message of
isql.
I explain all this because I don't know if it has to do with the connection between Wine and the unixODBC.
I have found on
this link, in the 4.3.6 point, about the
LIB_ODBC_DRIVER_MANAGER enviroment variable and it's value, but I don't get to work the PowerBuilder application.
When I start the PowerBuilder application I get the fisrt error message, that it says that it can't do the conection with the ODBC source and I have tried diferent values for
LIB_ODBC_DRIVER_MANAGER without success. Actually, I have it like this:
Quote:
$ echo $LIB_ODBC_DRIVER_MANAGER
/opt/sqlanywhere10/lib32/libdbodbc10.so
|
I think I have put all the necessary information. If in doubt, let me know.
Thanks.
Best regards.