PHP5.2に–with-mcryptを追加

後から、mcryptが必要とわかったので、
libmcryptをインストール

tar xvf libmcrypt-2.5.8.tar.gz
cd libmcrypt-2.5.8
./configure
make
make install

PHPも再インストール

cd /usr/local/src/php-5.2.15/
make clean
./configure --prefix=/usr/local/php --enable-mstring --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql --with-gd --with-zlib --with-mcrypt

で、失敗。

/usr/bin/ld: cannot find -lltdl

調べてみると、以下のような感じで上手くいった

cd /usr/local/src/libmcrypt-2.5.8/
make clean
./configure --disable-posix-threads
make
make install
cd libltdl
./configure --enable-ltdl-install
make
make install
cd /usr/local/src/php-5.2.15/
make clean
./configure --prefix=/usr/local/php --enable-mstring --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql --with-gd --with-zlib --with-mcrypt
make
make install
カテゴリー: 未分類   パーマリンク

コメントをどうぞ

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です

*

次のHTML タグと属性が使えます: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>