您的位置:首页 > 编程语言 > PHP开发

PHP 5.3.6源码编译过程中报错的处理

2011-08-17 13:57 288 查看
php 5.3.6编译参数

CHOST="i686-pc-linux-gnu" CFLAGS="-O3 -msse2 -mmmx -Wall -W -mfpmath=sse -pipe -fomit-frame-pointer" CXXFLAGS="-O3 -msse2 -mmmx -Wall -W -mfpmath=sse -funroll-loops -pipe -fomit-frame-pointer" ./configure '--prefix=/usr/local/php-5.3.6' '--with-apxs2=/usr/local/http-2.2.14/bin/apxs'
'--with-config-file-path=/usr/local/php-5.3.6/etc' '--enable-mbstring' '--enable-exif' '--enable-calendar' '--with-mysql' '--with-openssl' '--disable-ipv6' '--disable-cgi' '--disable-cli' '--enable-sockets' '--with-gettext' '--with-curl' '--enable-ftp' '--with-zlib-dir'
'--with-bz2' '--with-gd' '--enable-gd-native-ttf' '--with-freetype-dir' '--with-jpeg-dir' '--with-png-dir' '--enable-exif' '--enable-mbstring' '--with-pear' --with-mcrypt --with-mhash --enable-soap --enable-gd-native-ttf --enable-inline-optimization --enable-ftp

编译到最后时报下面错误,编译退出

/usr/bin/ld: cannot find -lltdl

collect2: ld returned 1 exit status

make: *** [libphp5.la] Error 1

解决:yum -y install libtool-ltdl libtool-ltdl-devel后再make &&make install

编译通过
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: