[Gambas-user] Cannot find driver for database: postgresql
Karl Martindale
karl at ...1303...
Wed Jan 11 03:47:58 CET 2006
Hi All,
Thanks for pointing out strace Benoit, I'd never used it before but the results
it produces are very interesting. I thought there might be a problem in the
driver because it appeared the driver file gb.db.postgresql.so was being located
successfully:
... cut ....
access("/usr/local/lib/gambas2/gb.db.postgresql.so", F_OK) = 0
access("/usr/local/lib/gambas2/gb.db.postgresql.gambas", F_OK) = -1 ENOENT (No
such file or directory)
access("/usr/local/lib/gambas2/gb.db.postgresql.so", F_OK) = 0
open("/usr/local/lib/gambas2/gb.db.postgresql.so", O_RDONLY) = 7
read(7, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`\16\0\000"..., 1024) =
... cut ....
What I failed to notice was the fact that another file was being looked for and
not found a few lines down:
... cut ....
open("/lib/libpq.so.3", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/libpq.so.3", O_RDONLY) = -1 ENOENT (No such file or directory)
... cut ....
So one symbolic link later:
ln -s /usr/local/pgsql/lib/libpq.so.3 /usr/lib/libpq.so.3
and the driver loads successfully.
Thanks for reading,
Karl.
Karl Martindale wrote:
> No it failed in the 'normal' way on this machine
>
> Benoit Minisini wrote:
>
>> On Friday 06 January 2006 00:06, Karl Martindale wrote:
>>
>>> Hi John, Benoit, everybody,
>>>
>>> I apologise if this is a double post, but I sent another message,
>>> much like
>>> this one with the trace attached as a gzip archive but it hasn't
>>> appeared. So here it is, uncompressed.
>>>
>>> Yes, there's only one installation of gambas2 on this machine.
>>> The version of postgres that's running is 7.4.6
>>>
>>> Find attached what I think is the trace you're after, I ran:
>>> strace gbx2 &> DBTest.trace
>>> in the project directory. The program ran and behaved 'normally'.
>>>
>>> -Karl.
>>>
>>
>>
>> So it works?
>>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log
> files
> for problems? Stop! Download the new AJAX search engine that makes
> searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
> http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
More information about the User
mailing list