Re: GOT IT!!! Build to Ubuntu (Debian) system

Markus Hoenicka <[email protected]>
Newsgroups gmane.text.refdb.general
Message-ID <[email protected]>
Daniel O'Donnell <[email protected]> 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
[email protected]
(Spam-protected email: replace the quadrupeds with "mhoenicka")
http://www.mhoenicka.de


All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.