Re: Build Debian bin pkg from Ubunt scr pkg
Markus Hoenicka <[email protected]> Fri, 25 Sep 2009 17:25:15 +0200
| Newsgroups | gmane.text.refdb.general |
|---|---|
| Message-ID | <[email protected]> |
Quoting Stefan Schlee <[email protected]>: > > - Debian DOES distinguish between sqlite and sqlite3.=A0 Accordingly = > I installed the package "libdbd-sqlite3" which IS listed in = > Torsten's source package but only under "Recommends:" and not under = > "Depends:" (though the package "libdbd-sqlite" is listed there). > As mentioned previously, I'd recommend to make the package depend on = libdbd-sqlite3. SQLite 2.x is supported only for backwards = compatibility, but I doubt that many people use 2.x these days. > - In addition to that I had to incorporate a symbolic link into the = > /etc/refdb that pointed to the appropriate configuration file for = > this case: "ln -s refdbdrc.sqlite3.example refdbdrc". > I don't know how Torsten handles these issues, but to end up with a = working RefDB installation some post-install setup is mandatory. I = guess that most if not all of this setup stuff could be handled by the = package installation procedure. Please have a look at the refdb-init = script (also documented here: = http://refdb.sourceforge.net/manual/ch04s08.html) which is a generic = script that may or may not work out of the box on Debian. I'd greatly = appreciate if you could provide some feedback how far this script is = going to take you. In any case, it is supposed to create the config = file which you found missing as well as the main database, see below. = The config script is copied from the appropriate .example file to = avoid overwriting local customizations during "make install". > I created an empty test-database in the directory = > "/var/lib/refdb/db" by issuing "sqlite3 /var/lib/refdb/db/test.db" > > I connected to this database with "sqlite3" and entered the = > ".databases" command 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. > Not quite. The RefDB error message "could not open main database" is = issued if the *main* database simply isn't there, but also if it does = not contain the expected contents. This is not a reference database, = but an internal database where RefDB keeps bibliography styles, among = others. Creating the main database is one of the important steps of = the post-installation setup. regards, Markus -- = Markus Hoenicka [email protected] (Spam-protected email: replace the quadrupeds with "mhoenicka") http://www.mhoenicka.de ---------------------------------------------------------------------------= --- 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