libmcrypt-2.5.7.tar.gz
./configure --prefix=/usr/local/libmcrypt
make
make install
vi /etc/ld.so.conf
/usr/local/libmcrypt/lib
#ldconfig
mash
./configure
make
make install
mcrypt
./configure LD_LIBRARY_PATH=/usr/local/lib --prefix=/usr/local/mcrypt --with-libmcrypt-prefix=/usr/local/libmcrypt
make
make install
error:
./mcrypt
./mcrypt: error while loading shared libraries: libmhash.so.2: cannot open shared object file: No such file or directory
执行
ln -s /usr/local/lib/libmhash.so.2 /usr/lib/libmhash.so.2
./configure --prefix=/usr/local/php \
--with-config-file-path=/usr/local/php/conf \
--with-apxs2=/usr/local/apache/bin/apxs \
--with-mysql=/usr/local/mysql \
--with-jpeg-dir=/usr/local/libjpeg \
--enable-fastcgi \
--enable-fpm \
--enable-force-cgi-redirect \
--with-gd \
--with-png-dir \
--enable-gd-native-ttf \
--with-freetype-dir=/usr/local/freetype \
--with-libxml-dir \
--with-curl \
--with-curlwrappers \
--with-zlib \
--with-pear \
--enable-mbstring \
--enable-exif \
--disable-debug \
--disable-rpath \
--without-pdo-sqlite \
--without-sqlite \
--without-iconv \
--with-mcrypt=/usr/local/libmcrypt \
--with-mhash=/usr/local/mhash
http://www.xxlinux.com/linux/article/development/database/20070403/8062.html
阅读(2855) | 评论(0) | 转发(0) |