Thread: [Refdb-users] I give up: perhaps somebody else knows an answer?
Status: Beta
Brought to you by:
mhoenicka
From: Dan O'D. <dan...@ul...> - 2006-06-21 22:11:53
|
Well having spent all day and done several reinstalls, I can't get it done. Here's a wikified list of what I did the last time, in case anybody can figure out how to solve the problem. The problem seems to lie in a couple of architecture mixups: 1) refdb build from source seems to look in the wrong place for libdbi0 library files, though this should be fixable with an option on ./configure, it doesn't seem to work. You can get around it by symlinking the libdbi0 librarys from /usr/local/lib/ to /usr/lib 2) libdbi0-drivers is unable to recognise debian installations of mysql. You should be able to get around this by adding the --with-mysql-directory, but it is unclear what directory ./configure wants. I tried every single mysql directory (as far as I can tell) and got nowhere. I also tried /usr/bin, and similar directories to no avail. If you follow the instructions here below, you can get refdb up and running, but will run into the "Initiatialized libdbi, but no drivers were found!" error. Until point 2) is solved, you won't get past that. ==Installing refdb from a clean install of Ubuntu 6.06 LTS== * Ensure that the community and multiverse repositories are enabled. * get the make utility sudo apt-get install make * Install mysql server and client sudo apt-get install mysql-client mysql-server * Get btparse (Universe) sudo apt-get install libbtparse0 libbtparse-dev * Get libreadline5-dev (libreadline5 is already installed) sudo apt-get install libreadline5-dev * Get gcc sudo apt-get install gcc * Get libexpat-dev files (libexpat already installed) sudo apt-get install libexpat1-dev * Get source files for libdbi0 =>8.0. In the download directory do the following (note: Debian linux stores library files in a different directory than the source files for libdbi install them in. You need to symlink the libdbi files to /usr/lib from /usr/local/lib/): wget http://umn.dl.sourceforge.net/sourceforge/libdbi/libdbi-0.8.1.tar.gz tar zxvf libdbi-0.8.1.tar.gz cd libdbi-0.8.1/ ./configure make sudo make install cd .. * Get source files for libdbi drivers and install (note this doesn't seem to work in Debian: the configure file is unable to tell that mysql is installed, and I for one can't figure out what root directory it is looking for when I try to specify one with --with-mysql-dir): wget http://umn.dl.sourceforge.net/sourceforge/libdbi-drivers/libdbi-drivers-0.8.1a.tar.gz tar zxvf libdbi-drivers-0.8.1a.tar.gz cd libdbi-drivers-0.8.1/ ./configure --with-mysql make sudo make install cd .. * Get refdb wget http://refdb.sourceforge.net/pre/refdb-latest.tar.gz * install (note: during make you will get a recurring invalid pointer error. This is not important). tar zxvf refdb-latest.tar.gz cd refdb-0.9.7-pre7/ ./configure --sysconfdir=/etc --with-refdb-url=http://refdb.kakelbont.homelinux.net/refdb make sudo make install * Add a password to mysql mysqladmin -u root password '<your favourite password here>' * Run the installation script cd /usr/local/bin/ sudo refdb-init.sh ==Problems== * Everything works fine except the libdbi0 and libdbi0-drivers. Unfortunately these are fatal problems. You can get around the build problems with libdbi0 by symlinking the relevant files as mentioned above, but nothing I could do could solve the libdbi0-drivers problem. -- Daniel Paul O'Donnell Director, Digital Medievalist Project (http://www.digitalmedievalist.org/) Associate Professor of English University of Lethbridge Lethbridge AB T1K 3M4 Tel. +1 (403) 329-2377 Fax. +1 (403) 382-7191 (@webmail) |
From: Daniel O'D. <dan...@ul...> - 2006-06-22 02:48:57
|
Got it, and in less that 12 hours. Most of the trouble I've been having comes from not understanding details of README files, but since this is probably a common problem, I thought I'd write out what worked. Again in Wiki format. ==Installing refdb from a clean install of Ubuntu 6.06 LTS== * Ensure that the community and multiverse repositories are enabled. ** Open sources.list with your favorite editor sudo nano /etc/apt/sources.list ** Remove the comment hashes from the relevant repositories ** Reload sudo apt-get update * Load the necessary binaries (place all one one line) sudo apt-get install make mysql-client mysql-server libmysqlclient15-dev zlib1g-dev libbtparse0 libbtparse-dev libreadline5-dev install gcc libexpat1-dev * Add a password to mysql mysqladmin -u root password '<your favourite password here>' * Get source files for libdbi0 =>8.0. In the download directory do the following (this assumes you are downloading from the University of Minnesota Mirror; you can also choose a different mirror if there is a more convenient one): wget http://umn.dl.sourceforge.net/sourceforge/libdbi/libdbi-0.8.1.tar.gz tar zxvf libdbi-0.8.1.tar.gz cd libdbi-0.8.1/ ./configure make sudo make install cd .. * Get source files for libdbi drivers and install: wget http://umn.dl.sourceforge.net/sourceforge/libdbi-drivers/libdbi-drivers-0.8.1a.tar.gz tar zxvf libdbi-drivers-0.8.1a.tar.gz cd libdbi-drivers-0.8.1/ ./configure --with-mysql make sudo make install cd .. * Symlink the libdbi libraries (installed in /usr/local/lib) to /usr/lib (where refdb will look for them): ln -s /usr/local/lib/libdbi.a /usr/lib/libdbi.a ln -s /usr/local/lib/libdbi.la /usr/lib/libdbi.la ln -s /usr/local/lib/libdbi.so /usr/lib/libdbi.so ln -s /usr/local/lib/libdbi.so.0 /usr/lib/libdbi.so.0 ln -s /usr/local/lib/libdbi.so.0.0.5 /usr/lib/libdbi.so.0.0.5 * Get install refdb (note: during make you will get a recurring invalid pointer error. This is not important): wget http://refdb.sourceforge.net/pre/refdb-latest.tar.gz tar zxvf refdb-latest.tar.gz cd refdb-0.9.7-pre7/ ./configure --sysconfdir=/etc --with-refdb-url=http://localhost/refdb make sudo make install cd .. * Run the installation script (answer all questions) cd /usr/local/bin/ sudo refdb-init.sh * test installation (see section 4.9. Testing your installation) -- Daniel Paul O'Donnell, PhD Associate Professor and Chair Director, Digital Medievalist Project <http://www.digitalmedievalist.org/> Department of English University of Lethbridge Lethbridge AB T1K 3M4 Tel. +1 (403) 329-2378 Fax. +1 (403) 382-7191 :@wiglaf (dapper ubuntu) |
From: <J.I...@uv...> - 2006-06-22 08:07:26
|
Hi, I'm very happy, because I finally could see the output of the "viewstat" command of refdba. Thank you very much. My refdb installation on ubuntu seems to work perfectly. I only had to create the symbolic links to libdbi files.=20 Regards, Ignasi. > Got it, and in less that 12 hours. >=20 > Most of the trouble I've been having comes from not understanding > details of README files, but since this is probably a common problem, I > thought I'd write out what worked. Again in Wiki format. >=20 > =3D=3DInstalling refdb from a clean install of Ubuntu 6.06 LTS=3D=3D >=20 > * Ensure that the community and multiverse repositories are enabled. > ** Open sources.list with your favorite editor > sudo nano /etc/apt/sources.list > ** Remove the comment hashes from the relevant repositories > ** Reload > sudo apt-get update >=20 > * Load the necessary binaries (place all one one line) >=20 > sudo apt-get install make mysql-client mysql-server libmysqlclient15-dev zlib1g-dev libbtparse0 libbtparse-dev libreadline5-dev install gcc libexpat1-dev >=20 > * Add a password to mysql >=20 > mysqladmin -u root password '<your favourite password here>' >=20 > * Get source files for libdbi0 =3D>8.0. In the download directory do the > following (this assumes you are downloading from the University of > Minnesota Mirror; you can also choose a different mirror if there is a > more convenient one): >=20 > wget http://umn.dl.sourceforge.net/sourceforge/libdbi/libdbi-0.8.1.tar.g= z > tar zxvf libdbi-0.8.1.tar.gz > cd libdbi-0.8.1/ > ./configure > make > sudo make install > cd .. >=20 > * Get source files for libdbi drivers and install: >=20 > wget http://umn.dl.sourceforge.net/sourceforge/libdbi-drivers/libdbi-drivers-0.8= 1a.tar.gz > tar zxvf libdbi-drivers-0.8.1a.tar.gz > cd libdbi-drivers-0.8.1/ > ./configure --with-mysql > make > sudo make install > cd .. >=20 > * Symlink the libdbi libraries (installed in /usr/local/lib) to /usr/lib > (where refdb will look for them): >=20 > ln -s /usr/local/lib/libdbi.a /usr/lib/libdbi.a > ln -s /usr/local/lib/libdbi.la /usr/lib/libdbi.la > ln -s /usr/local/lib/libdbi.so /usr/lib/libdbi.so > ln -s /usr/local/lib/libdbi.so.0 /usr/lib/libdbi.so.0 > ln -s /usr/local/lib/libdbi.so.0.0.5 /usr/lib/libdbi.so.0.0.5 >=20 > * Get install refdb (note: during make you will get a recurring invalid > pointer error. This is not important): >=20 > wget http://refdb.sourceforge.net/pre/refdb-latest.tar.gz > tar zxvf refdb-latest.tar.gz > cd refdb-0.9.7-pre7/ > ./configure --sysconfdir=3D/etc --with-refdb-url=3Dhttp://localhost/refd= b > make > sudo make install > cd .. >=20 > * Run the installation script (answer all questions) > cd /usr/local/bin/ > sudo refdb-init.sh >=20 > * test installation (see section 4.9. Testing your installation) >=20 > --=20 > Daniel Paul O'Donnell, PhD > Associate Professor and Chair > Director, Digital Medievalist Project > <http://www.digitalmedievalist.org/> > Department of English > University of Lethbridge > Lethbridge AB T1K 3M4 >=20 > Tel. +1 (403) 329-2378 > Fax. +1 (403) 382-7191 >=20 > :@wiglaf (dapper ubuntu) >=20 >=20 > All the advantages of Linux Managed Hosting--Without the Cost and Risk! > Fully trained technicians. The highest number of Red Hat certifications i= n > the hosting industry. Fanatical Support. Click to learn more > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D107521&bid=3D248729&dat= =3D121642 > _______________________________________________ > Refdb-users mailing list > Ref...@li... > https://lists.sourceforge.net/lists/listinfo/refdb-users >=20 >=20 |
From: Markus H. <mar...@mh...> - 2006-06-22 08:08:13
|
Daniel O'Donnell <dan...@ul...> was heard to say: > Got it, and in less that 12 hours. > Thanks for the comprehensive writeup which other Ubuntu/Debian users certainly will appreciate. However, I think you stumbled over a few Unix details which are simpler to resolve than you did. > * Symlink the libdbi libraries (installed in /usr/local/lib) to /usr/lib > (where refdb will look for them): > This is a fairly rude workaround. The problem here is that ld on Ubuntu (and on Debian afaik) is set up to look for libraries in /usr/lib. This is set in ld.so.conf and works fine as long as you use packages. If you build autotools-based programs from source, they default to /usr/local, that is, libraries end up in /usr/local/lib. There are two things you can do: 1) you can teach ld to look into /usr/local/lib for libraries as well. Edit /etc/ld.so.conf and run ldconfig as root 2) you can configure libdbi and libdbi-drivers to install in /usr instead of in /usr/local. Just pass --prefix=/usr to ./configure to achieve this. 1) is preferable if you tend to build from sources fairly often. regards, Markus -- Markus Hoenicka mar...@ca... (Spam-protected email: replace the quadrupeds with "mhoenicka") http://www.mhoenicka.de |