On Sun, Apr 8, 2012 at 11:53 PM, Cameron Sanders <[hidden email]> wrote:
I am having difficulties getting set up and running with DBXTalk tools on a Mac. I hate to pester the community with some basics, but I am getting way too many hours in simply trying to connect to a Postgres DB. Any help or guidance that anyone can offer is greatly appreciated.
Yes, you need to install another thing: the client libraries from the database vendor. opendbx plays the role as an adaptor making the several database platforms polymorphic (in some kind of way :) ).
See how to test it below in my reply.
Hmm, how did you test it?
You have to think of this (read the -> as "talks to"):
(Smalltalk image with dbxtalk smalltalk library) -> opendbx c library -> database vendor C library -----> database (remote or local, doesn't matter)
so, first of all, what you have to test, is the opendbx c library with the vendor's library (and therefore the database). You can do it executing the following from the terminal:
./odbxtest -b pgsql -h localhost -p 5432 -d myDatabase -u myUser -w myPass
./odbxtest -b <backend> -h <host> -p <port> -d <database name> -u <user> -w <password>
I'm not sure about this. I'm using linux, so let someone else answer this point.
What about creating simlinks so you have
/usr/lib/libopendbx.so --> /usr/lib/opendbx/libopendbx.so.whateverversion
Nope, sorry :(. But providing a clean image with dbxtalk loaded is not the problem. The problem is the rest of the environment you have to setup in order to make it work.
In unix, I think the LD_LIBRARY_PATH is followed.
which means libopendbx.so is the library that's looked for, at least in unix.
I don't think current FFI implementation tells you that...
But there were some threads talking about specifying the module location in the image code. So maybe in the future... :/
I hope to be of help.
BTW, subscribe to the dbxtalk mailing list, I think that list is the idoneous place to ask this questions :).
Don't hesitate to ask for more help if needed :).
Hi. It would also help if you can tell use which VM are you using because the problem is in fact that FFI cannot find the opendbx library.
Be aware that openDBX has to be compiled 32 bits. That is, if you are in a 64 bits machine, you will need to compile it for 32 bits.
The same for the database client library.
On Mon, Apr 9, 2012 at 6:02 PM, Guillermo Polito <[hidden email]> wrote:
|Free forum by Nabble||Edit this page|