Thread: [Refdb-users] Ubuntu install question
Status: Beta
Brought to you by:
mhoenicka
From: Daniel R. <ri...@ma...> - 2008-03-19 17:32:02
|
Hello refdb-users, I'm highly interested in using refdb but have encountered problems installing it on an i386 machine running Ubuntu gutsy. I wanted to install using the packages in the Debian repository, so I added the following line to my /etc/apt/sources.list: deb http://refdb.sourceforge.net/debian/svn testing main and ran "sudo aptitude update". Now the different refdb packages are available for install but I keep getting a dependency problem with sqlite when trying to install refdb-server: ************************************************************************* ... The following packages have unmet dependencies: refdb-server: Depends: libdbd-sqlite (>= 0.8.1-2) but it is not installable ... ************************************************************************* sqlite on Ubuntu gutsy is at version 0.7.1-3. I actually have both mysql and postgresql running on my machine. How can I configure refdb to use either of these instead of sqlite? Thanks in advance for the help. Daniel |
From: Markus H. <mar...@mh...> - 2008-03-19 18:00:06
|
Daniel Ricard writes: > ************************************************************************* > ... > The following packages have unmet dependencies: > refdb-server: Depends: libdbd-sqlite (>= 0.8.1-2) but it is not installable > ... > ************************************************************************* > > sqlite on Ubuntu gutsy is at version 0.7.1-3. > You mean libdbd-sqlite? Sqlite itself should rather be something like 3.5.x. > I actually have both mysql and postgresql running on my machine. How can I > configure refdb to use either of these instead of sqlite? > The dependency on libdbd-sqlite is sort of a fake dependency. The RefDB package essentially depends on libdbi, but it is not functional without at least one database driver and its engine/library. Someone figured that it would be least intrusive to use sqlite as the default and added that as a dependency, just to make sure you can really start working. However, if you have one of mysql or postgresql installed anyway, you can safely ignore the dependency on libdbd-sqlite. You'll need the appropriate driver though (libdbd-mysql or libdbd-pgsql), and it may very well happen that these were not updated either. I don't know Ubuntu well enough, but as a Debian spin-off you should be able to install the latest Debian packages somehow. These are at 0.8.3 and should satisfy your dependencies. In any case, using a database engine other than sqlite is a post-install issue. I'm not familiar with what the Debian/Ubuntu install scripts do, but you should be able to run the refdb-init script again to set up the tool for a different database engine. Manual configuration and initialization is of course also possible as described in the manual. Feel free to get back if you need help at this point. regards, Markus -- Markus Hoenicka mar...@ca... (Spam-protected email: replace the quadrupeds with "mhoenicka") http://www.mhoenicka.de |
From: <ri...@ma...> - 2008-03-19 18:29:00
|
Hi Markus, Thanks for the timely reply, that's why I love open source software. I did mean libdbd-sqlite being version 0.7.1-3, not sqlite. I just checked for libdbd-pgsql and it is also at version 0.7.1-3. I realise that this is not an Ubuntu mailing list, but I am stuck right now and don't know how to proceed. Here is what happens when I try to install refdb-server: ************************************************************************* bash>sudo aptitude install refdb-server Reading package lists... Done Building dependency tree Reading state information... Done Reading extended state information Initializing package states... Done Building tag database... Done The following packages are BROKEN: refdb-server The following NEW packages will be automatically installed: apache2-mpm-itk apache2-utils apache2.2-common docbook-xsl docbook-xsl-doc-html libapr1 libaprutil1 libperl-term-clui refdb-lib The following NEW packages will be installed: apache2-mpm-itk apache2-utils apache2.2-common docbook-xsl docbook-xsl-doc-html libapr1 libaprutil1 libperl-term-clui refdb-lib 0 packages upgraded, 10 newly installed, 0 to remove and 0 not upgraded. Need to get 4754kB of archives. After unpacking 23.5MB will be used. The following packages have unmet dependencies: refdb-server: Depends: libdbd-sqlite (>= 0.8.1-2) but it is not installable Resolving dependencies... The following actions will resolve these dependencies: Keep the following packages at their current version: refdb-server [Not Installed] Score is -9881 Accept this solution? [Y/n/q/?] Y No packages will be installed, upgraded, or removed. 0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 0B of archives. After unpacking 0B will be used. Do you want to continue? [Y/n/?] Y Writing extended state information... Done Reading package lists... Done Building dependency tree Reading state information... Done Reading extended state information Initializing package states... Done Building tag database... Done ************************************************************************* which basically does nothing. Am I better off building from source here? Cheers, Daniel > > ************************************************************************* > > ... > > The following packages have unmet dependencies: > > refdb-server: Depends: libdbd-sqlite (>= 0.8.1-2) but it is not > installable > > ... > > ************************************************************************* > > > > sqlite on Ubuntu gutsy is at version 0.7.1-3. > > > > You mean libdbd-sqlite? Sqlite itself should rather be something like > 3.5.x. > > > > I actually have both mysql and postgresql running on my machine. How > can I > > configure refdb to use either of these instead of sqlite? > > > > The dependency on libdbd-sqlite is sort of a fake dependency. The > RefDB package essentially depends on libdbi, but it is not functional > without at least one database driver and its engine/library. Someone > figured that it would be least intrusive to use sqlite as the default > and added that as a dependency, just to make sure you can really start > working. > > However, if you have one of mysql or postgresql installed anyway, you > can safely ignore the dependency on libdbd-sqlite. You'll need the > appropriate driver though (libdbd-mysql or libdbd-pgsql), and it may > very well happen that these were not updated either. > > I don't know Ubuntu well enough, but as a Debian spin-off you should > be able to install the latest Debian packages somehow. These are at > 0.8.3 and should satisfy your dependencies. > > In any case, using a database engine other than sqlite is a > post-install issue. I'm not familiar with what the Debian/Ubuntu > install scripts do, but you should be able to run the refdb-init > script again to set up the tool for a different database > engine. Manual configuration and initialization is of course also > possible as described in the manual. Feel free to get back if you need > help at this point. > > regards, > Markus > > -- > Markus Hoenicka > mar...@ca... > (Spam-protected email: replace the quadrupeds with "mhoenicka") > http://www.mhoenicka.de > |
From: Martin H. <mo...@bo...> - 2008-03-19 19:14:41
|
On Wed, Mar 19, 2008 at 03:28:02PM -0300, ri...@ma... wrote: > Hi Markus, > Thanks for the timely reply, that's why I love open source software. > > I did mean libdbd-sqlite being version 0.7.1-3, not sqlite. I just checked > for libdbd-pgsql and it is also at version 0.7.1-3. > > I realise that this is not an Ubuntu mailing list, but I am stuck right > now and don't know how to proceed. Here is what happens when I try to > install refdb-server: > > ************************************************************************* > bash>sudo aptitude install refdb-server > I think what I did on my sister's machine was to grab the debian packages from testing or unstable. mh -- Martin Hicks || mo...@bo... || PGP/GnuPG: 0x4C7F2BEE |
From: Markus H. <mar...@mh...> - 2008-03-19 19:31:26
|
Martin Hicks writes: > I think what I did on my sister's machine was to grab the debian > packages from testing or unstable. > That's what I'd suggest too. I'm not that familiar with the Debian tools, but at least dpkg should have a switch to force the installation regardless of unmet dependencies. regards, Markus -- Markus Hoenicka mar...@ca... (Spam-protected email: replace the quadrupeds with "mhoenicka") http://www.mhoenicka.de |
From: <ri...@ma...> - 2008-03-20 00:51:09
|
Hello, If one looks here: http://refdb.sourceforge.net/debian/release/dists/ there doesn't seem to be any package for "stable", which is why I used "testing" as the distro in my /etc/apt/sources.list The dpkg tool uses .deb files, which worked great for me before for installing things such as nx (http://www.nomachine.com/download-package.php?Prod_Id=5). It does have a force flag to allow installation despite unmet dependencies. So I downloaded the .deb file for refdb-server from here: http://refdb.sourceforge.net/debian/release/dists/testing/main/source/refdb-server/ and ran dpkg with force flag to install it, and here is what I get: ************************************************************************** bash>sudo dpkg -i refdb-server_0.9.8_i386.deb --ignore-depends=libdbd-sqlite (Reading database ... 244125 files and directories currently installed.) Preparing to replace refdb-server 0.9.8 (using refdb-server_0.9.8_i386.deb) ... Unpacking replacement refdb-server ... dpkg: error processing --ignore-depends=libdbd-sqlite (--install): cannot access archive: No such file or directory dpkg: dependency problems prevent configuration of refdb-server: refdb-server depends on libdbd-sqlite (>= 0.8.1-2); however: Package libdbd-sqlite is not installed. refdb-server depends on refdb-lib (>= 0.4.1-1); however: Package refdb-lib is not installed. dpkg: error processing refdb-server (--install): dependency problems - leaving unconfigured Errors were encountered while processing: --ignore-depends=libdbd-sqlite refdb-server ************************************************************************** so it is still not working. It seems to me that simplifying the install process of refdb could increase its users base considerably. I was first interested in refdb about four years ago but felt quite intimidated by the installation process. I tried to get it running, but failed and gave up. Now four years later, and despite the fact that I use Emacs, that I would happily use the command line tools, that I manage postgresql databases and that I feel proficient using my Linux system, I still feel uncomfortable since I can't install the software on my machine after a few hours of trying various solutions. I consider myself a fairly proficient Linux user, not a developer, but I would welcome an easier way to get this running. Thanks again for all the help. Dan > Martin Hicks writes: > > I think what I did on my sister's machine was to grab the debian > > packages from testing or unstable. > > > > That's what I'd suggest too. I'm not that familiar with the Debian > tools, but at least dpkg should have a switch to force the > installation regardless of unmet dependencies. > > regards, > Markus > > -- > Markus Hoenicka > mar...@ca... > (Spam-protected email: replace the quadrupeds with "mhoenicka") > http://www.mhoenicka.de > |
From: Markus H. <mar...@mh...> - 2008-03-21 00:15:59
|
Quoting ri...@ma...: > Hello, > If one looks here: > > http://refdb.sourceforge.net/debian/release/dists/ > > there doesn't seem to be any package for "stable", which is why I used > "testing" as the distro in my /etc/apt/sources.list > It is only now that I realize that the packages in this archive are outdated anyway. As with most open source projects, we depend on volunteers who build packages and/or archives for distros like Debian. Currently no one is actively maintaining these packages, so you'd actually have to build RefDB from the sources. This should work without any problems though. As for the libdbi requirements, you'd best have a look at Debian-unstable which has the latest packages available. I don't know whether you can simply add Debian unstable to your sources.list. If not, you could still download the packages (libdbi0, libdbd-pgsql or libdbd-mysql) from the Debian site and install them with dpkg. > It seems to me that simplifying the install process of refdb could > increase its users base considerably. I was first interested in refdb > about four years ago but felt quite intimidated by the installation > process. I tried to get it running, but failed and gave up. Now four years > later, and despite the fact that I use Emacs, that I would happily use the > command line tools, that I manage postgresql databases and that I feel > proficient using my Linux system, I still feel uncomfortable since I can't > install the software on my machine after a few hours of trying various > solutions. I consider myself a fairly proficient Linux user, not a > developer, but I would welcome an easier way to get this running. > I do take this feedback seriously, and I'm feeling uncomfortable about not being able to provide a better user experience. But as I've mentioned above, we strongly depend on volunteers who provide packages. We had a very active maintainer for a while, but no one feels responsible at this time. I can only advise you to build from the sources which should work without a hitch. regards, Markus -- Markus Hoenicka mar...@ca... (Spam-protected email: replace the quadrupeds with "mhoenicka") http://www.mhoenicka.de |
From: Markus H. <mar...@mh...> - 2008-03-21 00:23:27
|
Quoting Markus Hoenicka <mar...@mh...>: I can only advise you to build from > the sources which should work without a hitch. > Forgot to mention that if you want to build RefDB from the sources, you'll also need the libdbd0-dev package. regards, Markus -- Markus Hoenicka mar...@ca... (Spam-protected email: replace the quadrupeds with "mhoenicka") http://www.mhoenicka.de |
From: Markus H. <mar...@mh...> - 2008-08-17 21:43:59
|
Daniel Paul O'Donnell writes: > I spent all day today on a fresh ubuntu install, but come to grief with > the libdbd dependencies. I simply can't get a working version of the 0.8 > version and ubuntu ships with a 7.3 version. When building from source I > get a > > config.status: WARNING: Makefile.in seems to ignore the --datarootdir > setting > AFAIK this warning is safe to ignore at this time, as it simply says the Makefiles do not yet make use of a feature which was added to the autotools just recently. I see this warning too on FreeBSD without getting into trouble. This also explains why setting this variable does not alter the results. > I've tried setting datarootdir, leaving it default, and nothing changes. > I've tried with and without --prefix set. I can see that the drivers are > in the right places, but I can never complete a build. Just to make sure: do you manage to build and install libdbi and libdbi-drivers 0.8.x? What are exactly the error messages that indicate you can't build RefDB? The only dependency at build time is a libdbi.a file in your linker's search path. If you build libdbi from the sources without fiddling with the prefix, the library files will end up in the /usr/local hierarchy which, to the best of my knowledge, is not part of the default library search path of Debian. You should be able to fix this by setting LDFLAGS appropriately in your environment before running configure and make. > > I've tried building from source, and tried from the debs. Nothing works > for me. > > I know this is a difficulty everybody is aware of and has tried to > address: but boy I wish there were an easier way to get refdb installed! > I had wished that packaging libdbi and RefDB would solve these problems once and for all. But it seems were not there yet. Please feel free to throw further details of your build problems my way. I've got a spare box under my desk which currently runs a stripped-down Debian. I could wipe that and use Ubuntu instead to help you figure it out. regards, Markus -- Markus Hoenicka mar...@ca... (Spam-protected email: replace the quadrupeds with "mhoenicka") http://www.mhoenicka.de |