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

curl-and-php

Re: New Test of installation

From: Richard Ford <curl_at_cubok.com>
Date: Sat, 9 Jun 2001 21:04:04 +1000

The following is the output of a locate libcurl command.

Remember my curl was configured and installed with
a --prefix=/usr/local/curl

And PHP with the --with-curl command would not work until I set it to point
to /usr/local/curl and not /usr/local/lib or elsewhere.

*************************

root_at_devlinux bin]# locate libcurl
/usr/local/php/ext/curl/.libs/libcurl.a
/usr/local/php/ext/curl/.libs/libcurl.la
/usr/local/php/ext/curl/libcurl.la
/usr/local/curl/docs/libcurl.5
/usr/local/curl/lib/libcurl.def
/usr/local/curl/lib/.libs/libcurl.so.1.1.0
/usr/local/curl/lib/.libs/libcurl.so.1
/usr/local/curl/lib/.libs/libcurl.so
/usr/local/curl/lib/.libs/libcurl.a
/usr/local/curl/lib/.libs/libcurl.lai
/usr/local/curl/lib/.libs/libcurl.la
/usr/local/curl/lib/libcurl.la
/usr/local/curl/lib/libcurl.so.1.1.0
/usr/local/curl/lib/libcurl.so.1
/usr/local/curl/lib/libcurl.so
/usr/local/curl/lib/libcurl.a
/usr/local/curl/man/man5/libcurl.5

********************************

Cheers,
Richard.

----- Original Message -----
From: "Richard Ford" <curl_at_cubok.com>
To: "CurlList" <curl-and-php_at_lists.sourceforge.net>
Cc: "Mark Gunning" <mark.gunning_at_cubok.com>
Sent: Saturday, June 09, 2001 8:53 PM
Subject: New Test of installation

> I ran my 'stand alone' PHP again. same as my apache one - but not
> configured with the --with-apache switch..
>
> I get the following when I run it.
>
>
> [root_at_devlinux bin]# ./php < /usr/local/apache/htdocs/test2.php
> Content-type: text/html
>
> PHP Warning: Unable to load dynamic library './libcurl.so' -
./libcurl.so:
> cannot open shared object file:
> No such file or directory in Unknown on line 0
> X-Powered-By: PHP/4.0.5
> Content-type: text/html
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
>
> <HTML>
>
> <HEAD>
> <TITLE>Welcome to XYZ Corporation</TITLE>
> <META HTTP-EQUIV="Expires" CONTENT="0">
> </HEAD>
> <snip>
>
> Blah, blah, blah it returns a web page, as this test2.php file has the
basic
> get page sample code as found ont he homepage in it.
>
> Now it would appear that curl is working, as PHP ran, recognised some
weird
> command (Curl) and ran it and the results are what it is supposed to do -
> fetch a web site.
>
> But those strange messages first hand?
>
> I assume they have something to do with sharing access, libtool and what
> not - having had some rude encounters with shared libraries recently when
> trying to get mcrypt to compile into PHP and get apache to then compile -
> with various versions of the same library that apache needs one ver and
> mcrypt another!
>
> Now is the above a possible cause as to why apache with php is not
working -
> but php with curl and no apache is?
>
> Should I copy the libcurl libs to /usr/lib? Or some similar action?
>
> Cheers,
> Richard.
>
>
>
>
> _______________________________________________
> Curl-and-php mailing list
> Curl-and-php_at_lists.sourceforge.net
> http://lists.sourceforge.net/lists/listinfo/curl-and-php
>

_______________________________________________
Curl-and-php mailing list
Curl-and-php_at_lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/curl-and-php
Received on 2001-06-09