Skip to main content

compile php

configure: error: Please reinstall the libcurl distribution

if you get this error, you need to install the devel package for curl
on centos run:
yum install curl-devel

Php make error ltdl

If you get the following make error:


/usr/bin/ld: cannot find -lltdl
collect2: ld returned 1 exit status

then you need to install the libtool-ltdl-devel package.
On CentOS run
yum install libtool-ltdl-devel
and everything should be fine

How to compile php on a 64bit platform with curl

In order to compile php on 64bit platforms make sure that your configure command contains:
--with-libdir=lib64
--libdir=/usr/lib64

When I compiled php --with-curl on Centos 5.2 64bit I also encountered a strange error in the configure command:


checking for curl_easy_perform in -lcurl... no

It seems that it is not correctly detecting a package version. I only had libidn-devel i386 in the standard setup and after
yum install libidn-devel

in another instance based on the same configure error I could see the following issue in config.log

If you need more help on the topic feel free to add a comment or create a new post on the Forum

Syndicate content