newbie compile problems

Daniel Packer dpacker at
Mon Feb 24 20:47:01 CET 2003


When I installed 0.3.15, I first installed to my home directory
using --prefix, but then I did a fresh configure, make and make clean as
root and installed to the default /usr/local.

I was unable to run the binary executable produced by gcc, because I got the
error (quoted from my prior email below), but when I set LD_LIBRARY_PATH, it
ran without a problem. I'm not a unix library expert, but from what I have
read, it seems that the run-time loader path is not being compiled into my
executable, so the loader can't find my shared library when I run the

Is there some way to ensure that my gpgme executables are compiled with
proper run time loader paths? Or am I barking up the wrong tree? I don't
know if this is directly related to gpgme-conf or not, but I thought I'd go
through it, if just to learn something.

Thanks very much,

----- Original Message -----
From: "Marcus Brinkmann" <Marcus.Brinkmann at>
To: "Daniel Packer" <dpacker at>
Cc: <gnupg-devel at>
Sent: Monday, February 24, 2003 2:27 PM
Subject: Re: newbie compile problems

> On Mon, Feb 24, 2003 at 12:30:23PM -0500, Daniel Packer wrote:
> > Greetings,
> >
> > I am trying to compile a short program to assure myself that I installed
0.3.15 properly.
> >
> > I am able to compile, following the instructions in the info pages, but
I get a shared lib error during runtime:
> >
> > Here is the cmd line execution:
> > [dpacker at newage gpgme]$ ./test
> > ./test: error while loading shared libraries: cannot open
shared object file: No such file or directory
> What is your install prefix?  You might need to set the LD_LIBRARY_PATH
> environment variable so the linker finds the library files.
> gpgme-config might also need a few additions, I will check if its still in
> analogy with the other config scripts.
> Thanks,
> Marcus
> --
> `Rhubarb is no Egyptian god.' GNU
marcus at
> Marcus Brinkmann              The Hurd
> Marcus.Brinkmann at

More information about the Gnupg-devel mailing list