Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am not a build guru and could use a pointer. I'm trying to make php5 on linux. I have successfully run config. I run make and get the following error:

/bin/sh libtool --silent --preserve-dup-deps --mode=link gcc -DPHP_ATOM_INC -Iinclude -Imain -I/home/jspeirs/webdev/stack/php-5.3.10 -Iext/date/lib -Iext/ereg/regex -I/usr/include/libxml2 -I/usr/local/include -Iext/mbstring/oniguruma -Iext/mbstring/libmbfl -Iext/mbstring/libmbfl/mbfl -I/usr/include/mysql -Iext/sqlite3/libsqlite -ITSRM -IZend    -I/usr/local/include -g -O2 -fvisibility=hidden   -o ext/mcrypt/ -export-dynamic -avoid-version -prefer-pic -module -rpath modules -L/usr/lib6464 -L/usr/local/lib -L/usr/lib/mysql -L/usr/lib64/mysql ext/mcrypt/mcrypt.lo ext/mcrypt/mcrypt_filter.lo -lmcrypt -lltdl
/usr/bin/ld: cannot find -lltdl
collect2: ld returned 1 exit status
Make: [ext/mcrypt/] Error 1

I know that /usr/bin/ld exists but I have no clue what -lltdl is. I have looked at the ld help docs with no insight. I have tried searching for more help with no results. If someone could help get me on track I'd appreciate it.

share|improve this question

2 Answers 2

up vote 1 down vote accepted


yum install libtool-ltdl-devel

And then re-run your build.

share|improve this answer
That did the trick. Thank you! –  ctown4life Apr 16 '12 at 18:44

check value of environment variable $LD_LIBRARY_PATH in your case it should be /usr/bin

just run

# export LD_LIBRARY_PATH=/usr/bin
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.