cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Re: "Invalid library" warnings while invoking the PHP interpreter

From: Hseu-Ming Chen <hseuming_at_gmail.com>
Date: Fri, 27 Jun 2008 11:14:52 -0400

On Fri, Jun 27, 2008 at 10:51 AM, Brock Noland <brockn_at_gmail.com> wrote:

> 2008/6/27 Hseu-Ming Chen <hseuming_at_gmail.com>:
> > newbie question alert:
> >
> > I'm relatively new to PHP with about 2 weeks of coding in it but have
> > programmed in Python/Perl/Haskell/C++ for years. i'm trying to migrate a
> > bunch of my PHP scripts from CentOS to Ubuntu but the following Warning
> > message keeps popping up even for a simple version query. It appears
> that
> > running any of the scripts is actually fine but the Warning message just
> > keeps popping up.
> >
> > I tried to manipulate the LD_LIBRARY_PATH setting but to no avail. Any
> idea
> > what went wrong?
> >
> > guidance appreciated
> >
> >
> >
> -------------------------------------------------------------------------------
> > [ming_at_mesa:~/programs/php] php --version
> > PHP Warning: PHP Startup: Invalid library (maybe not a PHP library)
> > 'libcurl.so' in Unknown on line 0
> >
> > Warning: PHP Startup: Invalid library (maybe not a PHP library)
> > 'libcurl.so' in Unknown on line 0
> > PHP 5.2.6 (cli) (built: May 13 2008 18:56:22)
> > Copyright (c) 1997-2008 The PHP Group
> > Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies
> >
> >
> > [ming_at_mesa:~/programs/php] ls -al /usr/local/lib/libcurl.so
> > /usr/local/lib/libcurl.so.3.0.0
> > lrwxrwxrwx 1 root staff 16 2008-05-13 11:32
> /usr/local/lib/libcurl.so
> > -> libcurl.so.3.0.0
> > -rwxr-xr-x 1 root staff 2895307 2008-05-13 11:32
> > /usr/local/lib/libcurl.so.3.0.0
>
> What is the output of
>
> ldd `which php` | grep curl
>
> and ldd of the curl library which is printed from the command above?
>
> Brock
> _______________________________________________
> http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
>

Here it is:

% ldd `which php` | grep curl
        libcurl.so.3 => /usr/local/lib/libcurl.so.3 (0xb7d55000)

% ldd /usr/local/lib/libcurl.so.3.0.0
        linux-gate.so.1 => (0xffffe000)
        libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7d9e000)
        libz.so.1 => /usr/lib/libz.so.1 (0xb7d89000)
        libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7c58000)
        /lib/ld-linux.so.2 (0x80000000)

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2008-06-27