I get the following installing PHP:
php-8.2.7/ext/curl/interface.c:3085: undefined reference to `curl_easy_upkeep’
I thought this would be a common error (hence the post) and I have tried the following so far:
dnf install curl curl-devel
- installed latest cURL to
/usr/local/curl
(can see lib and include directories) - tried several times including without curl in the configure command for PHP
So if anyone can beat me to it kudos to you.
For reference the full output of the error is:
lcrypto -lcrypt -lrt -o sapi/cli/php
ext/curl/interface.o: In function `zif_curl_upkeep':
/tmp/serverforge/downloads/php-8.2.7/ext/curl/interface.c:3085: undefined reference to `curl_easy_upkeep'
collect2: error: ld returned 1 exit status
make: *** [Makefile:310: sapi/cli/php] Error 1
I tried installing PHP from source (8.2.7) and I expected to have it install with cURL but only works without cURL in the php 8.7.2 configure command.
The full command I used was: ./configure --prefix=/usr/local/php82 --enable-cli --enable-fpm --program-suffix=82 --with-xsl --with-libxml=/usr/local/libxml2 --with-apxs2=/usr/local/apache/bin/apxs --enable-bcmath --with-bz2=/usr/local/bzip2 --enable-calendar --with-curl=/usr/local/curl --enable-ftp --enable-gd --with-libdir=lib64 --with-imap --with-imap-ssl --with-kerberos --enable-intl --enable-mbstring --with-mysqli --with-pdo-mysql --with-openssl=/usr/local/ssl --with-xsl --enable-soap --enable-sockets; make; make install;
Note also, that /usr/local/curl/bin/curl --version
outputs 8.8.0.