![]() |
|
|
#23 | |
|
"Mark"
Apr 2003
Between here and the
11000110010112 Posts |
Quote:
|
|
|
|
|
|
|
#24 | |
|
Bamboozled!
"πΊππ·π·π"
May 2003
Down not across
10,753 Posts |
Quote:
Paul Last fiddled with by xilman on 2011-08-04 at 15:13 Reason: Fix tag |
|
|
|
|
|
|
#25 | |
|
Aug 2004
2×5×13 Posts |
Quote:
/usr/share/doc/libiodbc-3.52.7/odbc.ini.sample /usr/share/doc/libiodbc-3.52.7/odbcinst.ini.sample Chris |
|
|
|
|
|
|
#26 |
|
Bamboozled!
"πΊππ·π·π"
May 2003
Down not across
10,753 Posts |
Ok, progress!
![]() First step was to give up on the standard PostgreSQL ODBC driver and load postgresql-odbcng Sundry semi-random fiddling with /etc/odbc.ini /etc/odbcinst.ini and ~/.odbc.ini let me reach the point Code:
[pcl@ra server]$ iodbctest "DSN=ECMnet;UID=ecmnet;PWD=pcl_ecmnet;" iODBC Demonstration program This program shows an interactive SQL processor Driver Manager: 03.52.0709.0909 Driver: 00.99.0101 (libmodbc.so) SQL> Have a nice day.[pcl@ra server]$ Unfortunately, ecmserver still fails thusly: Code:
[pcl@ra server]$ ./ecmserver [2011-08-04 17:40:56 BST] Connect to database failed: [iODBC][Driver Manager]ODBC Data Sources: cannot open shared object file: No such file or directory, native code=54 [pcl@ra server]$ Paul |
|
|
|
|
|
#27 |
|
Bamboozled!
"πΊππ·π·π"
May 2003
Down not across
10,753 Posts |
Success!
After much mucking around with strace(1) and tweaking of config files, I discovered a DSN wasn't necessary for ecmserver to work properly and that a driver entry in /etc/odbcinst.ini was sufficient. The server now connects. Rogue should have an email by now which details the necessities so that he can update the documentation for the ECMnet server. One day I may try to find out how to persuade the server to use a DNS but for the time being I'll use what works. Thanks, everyone, for your assistance. Paul |
|
|
|
|
|
#28 |
|
"Mark"
Apr 2003
Between here and the
11×577 Posts |
I find that interesting. I couldn't get the server to connect directly via the driver for PostgreSQL, but could with MySQL. It's my preference as it requires less configuration. I could only get PostgreSQL to connect via a dsn. In your case it is the opposite.
|
|
|
|
|
|
#29 |
|
"Mark"
Apr 2003
Between here and the
11·577 Posts |
![]() I took some time and discovered a couple of things today that shed some light on the mystery. First, Paul was having his problem with a DSN connection due to a code bug. It worked for me due because of how I configured the database.ini file. Second, I couldn't get psqlODBC (the PostgreSQL driver) to work because on OS X it is only 32-bits and I was building the server as a 64-bit application. Maybe they will fix it someday, but they haven't done so in more than two years. After recompiling the server as a 32-bit application, it worked flawlessly through the driver. Alas the driver I was using (OpenLink), which does support 64-bit apps, requires a license. Blech! All of the connection problems are solved, but we have another issue with the database itself that we haven't licked yet. It works fine for me on both postgresql and mysql, so I suspect it is a difference between how we have the databases configured. |
|
|
|
|
|
#30 |
|
Jun 2003
Ottawa, Canada
100100101012 Posts |
So Paul, does that mean you will be upgrading the server sometime in the near future if you have things working?
|
|
|
|
|
|
#31 | |
|
Bamboozled!
"πΊππ·π·π"
May 2003
Down not across
2A0116 Posts |
Quote:
Connections to the DB via ODBC are working well. Inserting data into it are problematic in that character data fail to be loaded by ecmserver for a reason which is presently unknown. Numeric data has no such problem. The DB itself appears to be working properly as measured by the success of other ways of accessing it and inserting/updating/deleting data. I've a few ideas how to proceed but using the V3 ecmserver is likely to take a little time yet. Paul |
|
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Configuring PRPNet ODBC on Linux | amphoria | Software | 11 | 2020-01-14 14:23 |
| Any Qt experts here? | ET_ | Programming | 0 | 2011-08-15 10:52 |
| Any Cocoa experts? | Prime95 | Programming | 5 | 2010-05-26 00:57 |
| Proxy server / apache experts? | Prime95 | Software | 6 | 2002-10-02 16:24 |