Re: Cannot open shared object file
| From: | David Barrington | Date: | Sun, 02 Jan 2011 20:23:12 +0000 |
| Subject: | Re: Cannot open shared object file | ||
| References: | 1 2 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-7900@lists.php.net to get a copy of this message | ||
Hi again,
Thanks for the replies. I checked on those two things, and didn't see
anything that could be wrong. I have included the info from the system so
you can verify.
/usr/lib64/php/modules is the dynamic extension directory.
Both gnupg.so and libgpgme.so.11.7.0 look to be 64 bit binaries.
> Where gpgme.h is in the same base dir. For example if libgpgme.so.11
> is in /usr/local/include/gpgme/lib then the gpgme.h would be in
> /usr/local/include/gpgme
It looks like that is the case:
[root@srv /]# ls /usr/local/include
assuan.h gpg-error.h gpgme.h
[root@srv /]# locate gpgme.h
/usr/local/include/gpgme.h
> Check with "file" whether they're both either 32bit or 64bit binaries?
I assume you mean gnupg.so and libgpgme.so.11. I checked both of these and
they seem to be the same. See print out below.
[root@srv /]# file /usr/lib64/php/modules/gnupg.so
/usr/lib64/php/modules/gnupg.so: ELF 64-bit LSB shared object, AMD x86-64,
version 1 (SYSV), not stripped
[root@srv /]# file /usr/local/lib/libgpgme.so.11
/usr/local/lib/libgpgme.so.11: symbolic link to `libgpgme.so.11.7.0'
[root@srv /]# file /usr/local/lib/libgpgme.so.11.7.0
/usr/local/lib/libgpgme.so.11.7.0: ELF 64-bit LSB shared object, AMD x86-64,
version 1 (SYSV), not stripped
David
On Sun, Jan 2, 2011 at 3:53 AM, Derick Rethans <derick@php.net> wrote:
> On Sun, 2 Jan 2011, David Barrington wrote:
>
> > I am receiving the following php startup error:
> >
> > [01-Jan-2011 22:49:50] PHP Warning: PHP Startup: Unable to load dynamic
> > > library '/usr/lib64/php/modules/gnupg.so' - libgpgme.so.11: cannot open
> > > shared object file: No such file or directory in Unknown on line 0
> >
> >
> > ibgpgme.so.11 resides in /usr/local/lib/ on my server.
> >
> > I have tried adding /usr/local/lib/ as a LD_LIBRARY_PATH variable for
> > libpgme.so.11, but it is still returning the error. I tried vainly to
> chmod
> > as well, but sort of at a loss to where to look to correct the problem.
> >
> > Any suggestions that I could try? Is this purely a file error, or could
> this
> > be a dependency problem?
>
> Check with "file" whether they're both either 32bit or 64bit binaries?
>
> Derick
>