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

curl-and-php

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

From: Brock Noland <brockn_at_gmail.com>
Date: Fri, 27 Jun 2008 09:51:02 -0500

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
Received on 2008-06-27