Getting php w/libmcrypt to compile

lad to Just a quick note I thought I would drop to anybody who is having this error popup when trying to compile PHP:

[quote]/usr/libexec/elf/ld: cannot find -lltdl[/quote]

If you want to fix that error all you really need to do is go back into your source tree for libmcrypt. and execute the following commands:

turns out that FreeBSD porting process doesn’t do this for you. I also am hearing word that not many if any of the automated packaging systems do this. So, hopefully I saved somebody out there a headache 😛


4 thoughts on “Getting php w/libmcrypt to compile”

  1. You saved me a headache. Thanks. You may want to change
    ./configure –enable-ltld-install
    ./configure –enable-ltdl-install

  2. Glad I could help.

    Thanks for the heads up about the typo. I fixed that and also edited so those commands don’t all show up on the same line.

    Next time maybe I’ll double check an entry after I post 😛 😀

  3. Successfully compiling libmcrypt seems to solve a dependancy issue when attempting to configure/make PHP, namely:

    “configure: error: mcrypt.h not found. Please reinstall libmcrypt.”

    This seems to be a very common issue, so I thought it was worth mentioning. PHP compiled smoothly after I ran this.

Leave a Reply

Your email address will not be published. Required fields are marked *