Re: [Refdb-users] addnote in 9.4-prerelease 3
Status: Beta
Brought to you by:
mhoenicka
|
From: Markus H. <mar...@mh...> - 2004-02-10 21:00:58
|
Matt Price writes: > you're up late! > Yeah, tell me about it! My dayjob is too busy these days. > > > > Do you get this free() error on the client side? I haven't seen this > > yet. > > um, I htink so. It's waiting in stdout when I exit from refdbc. > > Ok, I'll check with the latest prerelease using valgrind. > dbi_driver_dir went to: > > libdbi: Failed to load driver: /usr/lib/dbd/libsqlite_dbi.so > dbi is up using default driver dir > Initialized libdbi, but no drivers were found! > ------------------- > notice dbi_driver_dir seems to point nowhere! on the other hand > /usr/lib/dbd/libsqlite_dbi.so does exist, but it's the old version, > check out the date: > This is ok. dbi_driver_dir contains a custom driver directory or nothing if you want to use the compile-time default. You're doing the latter, as indicated two lines further down. > ---------- > $ ll /usr/lib/dbd/libsqlite_dbi.so > -rw-r--r-- 1 root root 23020 2003-04-15 23:13 /usr/lib/dbd/libsqlite_dbi.so > ------------ > > The new drivers installed in /usr/local/lib/dbd: > # ll /usr/local/lib/dbd > total 160 > -rw-r--r-- 1 root staff 16374 2004-02-09 21:36 libmysql.a > -rwxr-xr-x 1 root staff 882 2004-02-09 21:36 libmysql.la > -rwxr-xr-x 1 root staff 23045 2004-02-09 21:36 libmysql.so > -rw-r--r-- 1 root staff 21658 2004-02-09 21:36 libpgsql.a > -rwxr-xr-x 1 root staff 823 2004-02-09 21:36 libpgsql.la > -rwxr-xr-x 1 root staff 29685 2004-02-09 21:36 libpgsql.so > -rw-r--r-- 1 root staff 20230 2004-02-09 21:36 libsqlite.a > -rwxr-xr-x 1 root staff 847 2004-02-09 21:36 libsqlite.la > -rwxr-xr-x 1 root staff 29363 2004-02-09 21:36 libsqlite.so > ------------ > sooo... > I'm wondering if I have to set a variable somewhere. I notice in > ./configure --help this line: > --with-libdbi-lib=DIR Find libdbi lib in DIR > but I'm assuming this is for libdbi itself, not for the driver, right? > This is correct. This setting is for libdbi.so, not for the drivers. > Meanwhile, I set dbi_driverdir in /etc/refdbdrc: > dbi_driverdir /usr/local/lib/dbd > This should work, although it should not be necessary. > for good measure, I even tried this in addition: > dbi_driver_dir /usr/local/lib/dbd > This shouldn't work. > > ------------ > so far, no dice. > > soooo... any hints? > This all looks pretty wacky, I guess there's more than just one problem. First of all, you should always test your libdbi-drivers installation. That is, after: (libdbi) make && make install (libdbi-drivers) make && make install you should run (libdbi-drivers) make check This will tell you whether the lib itself works properly. I believe one of your problems is that some of the older files are still present on your system. When you start refdbd, it tries to load the drivers from /usr/lib/dbi which indicates that refdbd is linked against the Debian version of libdbi (they put everything into /usr; scratchbuilt stuff goes into /usr/local). Make sure you delete the Debian packages for libdbi and the drivers, plus the development packages. Then you'll have to rebuild libdbi-drivers as they are most likely built using the old development files. After that, make check should work and refdbd should start up ok. regards, Markus -- Markus Hoenicka mar...@ca... (Spam-protected email: replace the quadrupeds with "mhoenicka") http://www.mhoenicka.de |