Re: Error while compiling with cURL extension
| From: | Sterling Hughes | Date: | Thu, 31 Aug 2000 10:38:33 +0000 |
| Subject: | Re: Error while compiling with cURL extension | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-31395@lists.php.net to get a copy of this message | ||
Have you actually made cURL, or to you just have the sources lying in curl-7.1/?
Also curl 7.1 gets installed in your default path when so you might want to try:
./configure --with-curl
and see if it works.
--
Sterling Hughes
sterling@php.net
----- Original Message -----
From: Johan Andersson
To: php-dev
Sent: Thursday, August 31, 2000 6:12 AM
Subject: [PHP-DEV] Error while compiling with cURL extension
Help!
Make fails when i try to configure apache after compiling php..
It can't find curl ... !?
This is the error:
gcc -DLINUX=2 -I/usr/src/php-4.0.2 -I/usr/src/php-4.0.2/main -I/usr/src/php-4.0.2/main
-I/usr/src/php-4.0.2/Zend -I/usr/src/php-4.0.2/Zend -I/usr/src/php-4.0.2 -DUSE_EXPAT
-I./lib/expat-lite -DNO_DL_NEEDED
./apaci -o helpers/dummy helpers/dummy.c
-Wl,-rpath,/usr/src/curl-7.1.1/lib -rdynamic -L/usr/src/curl-7.1.1/lib -Lmodules/php4
-L../modules/php4 -L../../modules/php4 -lmodphp4 -lgdbm -lpam -ldl -lgd -lcurl -lresolv -lm -ldl
-lcrypt -lnsl -lresolv -lm -lcrypt
/usr/bin/ld: cannot find -lcurl
collect2: ld returned 1 exit status
make: *** [dummy] Error 1
This happened on the last step in this procedure:
cd apache_1.3.12
./configure
cd ../php-4.0.2
./configure --with-mysql --enable-track-vars --with-apache=/usr/src/apache_1.3.12
--with-ming=../ming-0.0.2c --with-curl=../curl-7.1.1 --disable-session --disable-debug
make
make install
cd ../apache_1.3.12
./configure --prefix=/usr/local/apache --activate-module=src/modules/php4/libphp4.a
What did I do wrong?