[OTR-users] Problem finding libotr

Ian Goldberg ian at cypherpunks.ca
Sat Oct 25 13:32:04 EDT 2008


On Thu, Oct 23, 2008 at 01:06:10PM +0200, Michael Goerz wrote:
> On Thu, Oct 16, 2008 at 5:46 PM, Conrad Meyer <konrad at tylerc.org> wrote:
> > On Thursday 16 October 2008 04:50:34 am Michael Goerz wrote:
> >> Hi,
> >>
> >> I have some trouble installing the OTR plugin on linux. Before trying
> >> to compile
> >> pidgin-otr-3.2.0 from source, I manually installed (from source)
> >> libotr-3.2.0 with its prerequisites libgcrypt-1.2.4 and
> >> libgpg-error-1.6, all with '--prefix=$HOME' (I don't have root access
> >> on the machine I'm installing this).
> >>
> >> Now, when I do ./configure for pidgin-otr-3.2.0, it ends with the
> >> following messages:
> >>
> >> [...]
> >> checking for libotr CFLAGS...
> >> checking for libotr LIBS...  -lotr
> >> checking for libotr headers version 3.x >= 3.2.0... not present.
> >> checking for otrl_message_receiving in -lotr... yes
> >> configure: error: libotr 3.2.0 or newer is required
> >>
> >> How can I convince configure to find the libotr library in my home folder?
> >>
> >> Thanks,
> >> Michael Goerz
> >
> > Check ./configure --help, but probably ./configure --with-otr-lib=/path/to/lib
> > or such.
> Yeah, I tried that, but it doesn't seem to work. When installing the
> prerequisite libraries, they ended up in /home/goerz/lib/. So for pidgin-otr,
> I tried ./configure --prefix=/home/goerz  --with-libotr-prefix=/home/goerz/lib
> --with-libotr-inc-prefix=/home/goerz/src/libotr-3.2.0/src, and a number of
> other combinations, but none of them worked. What would you put in for
> --with-libotr-prefix and --with-libotr-inc-prefix?

I think your inc-prefix is wrong.  When you did "make install" on
libotr, it should have installed the header files into
$HOME/include/libotr/*.  Since pidgin-otr is trying to open
<libotr/version.h>, your -I should be $HOME/include.  So try passing
that to --with-libotr-inc-prefix, and see what happens.

   - Ian



More information about the OTR-users mailing list