Error while compiling with cURL extension
| From: | Johan Andersson | Date: | Thu, 31 Aug 2000 10:12:29 +0000 |
| Subject: | Error while compiling with cURL extension | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-31392@lists.php.net to get a copy of this message | ||
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?