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
编译通过
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
编译通过
相关文章推荐
- 【获取图像处理源码以及编译过程】在window下make。
- LNMP源码编译过程 CentOS-7.3+Nginx-1.11+MySQL-5.7+php-7.1
- linux源码编译安装php5.4.43报错Directive 'allow_call_time_pass_reference' warning
- linux源码编译apache 2.2.19+php 5.3.6
- php源码中对post数据的处理过程
- 编译安装apache+php,以及安装过程中的报错问题解决
- Red Hat Linux 9下的Mysql5.0.19+Apache 2.2.0 + PHP 5.1.2+GD库源码编译安装过程
- Android源码编译make的错误处理
- Linux(6.4)+Nginx(1.4.1)+Mysql(5.6.12)+Php(5.5.0)源码编译安装 推荐
- mybatis源码学习之执行过程分析(5)——sql执行后ResultSet的处理及结果返回
- Ubuntu12.04下Android4.0.4源码的下载及其编译过程
- iTOP-4412开发板Android操作系统源码编译过程全纪录
- 解决php编译报错configure: error: mcrypt.h not found. Please reinstall libmcrypt.
- ubuntu 上android 源码编译 全过程(二)
- x64+VS2013+opencv3.3.0自行编译源码安装及配置过程
- fedora 11安装 samba 全过程(yum 和源码级编译)
- 基于Android 6.0源码, 分析当发生ANR时系统的处理过程
- php扩展开发1(apache和php源码编译)
- 源码编译安装 PHP5.5.0,解决curl_exec访问HTTPS返回502错误的问题
- Spark源码的编译过程详细解读(各版本)(博主推荐)