Re: Build Debian bin pkg from Ubunt scr pkg
Stefan Schlee <[email protected]> Fri, 25 Sep 2009 06:50:57 -0700 (PDT)
| Newsgroups | gmane.text.refdb.general |
|---|---|
| Message-ID | <[email protected]> |
Hallo!
Thank you for your immediate reply!
Torsten Bronger writes:
> Du you use the latest version on
> <https://launchpad.net/~bronger/+ppa-packages>?=A0 I switched to the
> SVN version three weeks ago.=A0 It contains
> =
>=A0 =A0=A0=A0Depends: ${shlibs:Depends}, ${misc:Depends}, adduser, lsb-bas=
e (>=3D 3.0-6),
>=A0 =A0 =A0 openjade, docbook-dsssl, docbook-xml, jadetex, texlive-base-bi=
n, fop,
>=A0 =A0 =A0 libbtparse0, libtext-iconv-perl, libmarc-record-perl, libxml-p=
arser-perl,
>=A0 =A0 =A0 libcgi-pm-perl, coreutils, libreadline5, libxml2-utils, xml-co=
re, libncurses5,
>=A0 =A0 =A0 libdbi0, libdbd-sqlite, libexpat1
>=A0 =A0=A0=A0Recommends: mysql-server (>=3D 3.23) | postgresql (>=3D 7.1) =
| libsqlite0 (>=3D 2.8) |
>=A0 =A0 =A0 libsqlite3-0 (>=3D 3), libdbd-mysql | libdbd-pgsql | libdbd-sq=
lite3
I downloaded it from <https://launchpad.net/~bronger/+archive/ppa/+packages=
>.=A0 The package name with full version/revision information is : "refdb_0=
.9.9.0~svn471-7ubuntu1".=A0 So, although the web-address is not exactly the=
same I assume that I have used the latest package build.=A0 The contents o=
f the "Depends:" and "Recommends:" is as you state it.
By the way, although I complaint in my original post I did not thank Torste=
n for providing the source package ... it has been (see below) of great hel=
p!
Markus Hoenicka writes:
> Stefan, could you please post the contents of /etc/refdb/refdbdrc?
> Does Debian distinguish between sqlite and sqlite3?
This notion has set me on the right track:
- Debian DOES distinguish between sqlite and sqlite3.=A0 Accordingly I ins=
talled the package "libdbd-sqlite3" which IS listed in Torsten's source pac=
kage but only under "Recommends:" and not under "Depends:" (though the pack=
age "libdbd-sqlite" is listed there).
- In addition to that I had to incorporate a symbolic link into the /etc/r=
efdb that pointed to the appropriate configuration file for this case: "ln =
-s refdbdrc.sqlite3.example refdbdrc".
... and all of a sudden ... I could start the server by entering "/etc/init=
.d/refdb start".
Original problem solved ...
---
... next problem:
I created an empty test-database in the directory "/var/lib/refdb/db" by is=
suing "sqlite3 /var/lib/refdb/db/test.db"
I connected to this database with "sqlite3" and entered the ".databases" co=
mmand and got the result
seq=A0 name=A0 =A0 =A0 =A0 =A0 =A0=A0=A0file=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =
=A0 =
---=A0 ---------------=A0 -------------------------------------------------=
---------
0=A0 =A0 main=A0 =A0 =A0 =A0 =A0 =A0=A0=A0/var/lib/refdb/db/tes.db =
which seems fine.
Next=A0 I tried to connect to the database via the refdb server by issuing =
"refdba".=A0 As described in the manual I entered the "viewstat" on the com=
mand line of "refdba" to test the connection.=A0 What I got as reply was: "=
could not open main databas".
In the "/etc/refdbdrc" file I used both "dbpath /var/lib/refdb/db/" and "db=
path /var/lib/refdb/db/test.db", I restarted the server for both options, a=
lways the same result "could not open main databas".
When I run refdba as "refdba -e 2 -L /home/stefan/tmp/refdba.log -l 7" it d=
oes not write additional information into the logfile.
Do you have any clue?
Thanks for your help already, kind regards =
Stefan
=
---------------------------------------------------------------------------=
---
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay =
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf