missing php curl extension?

View: New views
3 Messages — Rating Filter:   Alert me  

missing php curl extension?

by Fajar A. Nugraha-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

From phpinfo I see that the configure line includes

'--with-bz2=shared,/home/slug/optware/ddwrt/staging/opt'
'--with-curl=shared,/home/slug/optware/ddwrt/staging/opt'

I can find bz2.so on /opt/lib/php/extensions/, but I can't find
curl.so. Searching for *curl.so only returns

libcurl - 7.19.5-1 - /opt/lib/libcurl.so

and using curl functions result in

PHP Fatal error:  Call to undefined function curl_init() in
/mnt/comic/curl.php on line 3

Is this a bug, or is curl.so intentionally omitted for some reason?

--
Fajar

Re: missing php curl extension?

by brian_zhou :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

# ipkg list | grep curl
# ipkg install php-curl

--- In nslu2-linux@..., "Fajar A. Nugraha" <fajar@...> wrote:

>
> From phpinfo I see that the configure line includes
>
> '--with-bz2=shared,/home/slug/optware/ddwrt/staging/opt'
> '--with-curl=shared,/home/slug/optware/ddwrt/staging/opt'
>
> I can find bz2.so on /opt/lib/php/extensions/, but I can't find
> curl.so. Searching for *curl.so only returns
>
> libcurl - 7.19.5-1 - /opt/lib/libcurl.so
>
> and using curl functions result in
>
> PHP Fatal error:  Call to undefined function curl_init() in
> /mnt/comic/curl.php on line 3
>
> Is this a bug, or is curl.so intentionally omitted for some reason?
>
> --
> Fajar
>



Re: Re: missing php curl extension?

by Fajar A. Nugraha-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, Sep 28, 2009 at 9:51 PM, brian_zhou <b88zhou@...> wrote:
> # ipkg list | grep curl
> # ipkg install php-curl


Aaah ... so "ipkg-opt search" only search installed packages? Is there
a similar command to search in available packages?
I got it working now, thanks.

--
Fajar