FreeBSD ports and pkg, Linux rpm yum and apt, AIX lpp discussions

Advertisement


DNS query tools & Network tools (Ping & Traceroute)

/usr/bin/ld: cannot find -lltdl PHP Compiling fails on Centos/Red Hat

Postby mandrei99 » Mon Feb 22, 2010 2:08 pm

main/internal_functions.lo -lcrypt -lz -lcrypt -lpq -lmcrypt -lltdl -lcurl -lbz2 -lz -lm -ldl -lnsl -lxml2 -lz -lm -lcurl -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv -lidn -lssl -lcrypto -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -lz -lxml2 -lz -lm -lxml2 -lz -lm -lcrypt -lxml2 -lz -lm -lxml2 -lz -lm -lxml2 -lz -lm -lcrypt -o sapi/cgi/php-cgi
/usr/bin/ld: cannot find -lltdl
collect2: ld returned 1 exit status
make: *** [sapi/cgi/php-cgi] Error 1


In order for php to compile, it needs the libltdl.so.3 library.
To check if it is installed on the system you either tro to find it, or use the ldconfig utility:
Code: Select all
ldconfig -p | grep ltdl


While other systems (Debian/Ubuntu for example) require libtool-devel package, on older Red Hat/Centos, you just need libtool package which can be found in the default repository or on the cd/dvd. Install it (yum install libtool will take care of the dependencies).
Now check ldconfig again:
Code: Select all
# ldconfig -p |grep ltdl
        libltdl.so.3 (libc6) => /usr/lib/libltdl.so.3
mandrei99
 
Posts: 12
Joined: Tue Aug 04, 2009 4:16 pm


Advertisement


Return to Package and Software Management

Similar topics


Who is online

Users browsing this forum: No registered users and 0 guests

cron