CentOS6.8下编译安装PHP,执行 ./configure后报错,请问怎么解决?
PHPz
PHPz 2017-04-11 10:16:14
0
7
1807

报错信息为:

configure: error: off_t undefined; check your library configuration

下面是配置信息

./configure --prefix=/application/php5.6.27 \
  --with-mysql=/application/mysql-5.5.53 \
  --with-iconv-dir=/usr/local/libiconv \
  --with-freetype-dir \
  --with-jpeg-dir \
  --with-png-dir \
  --with-zlib \
  --with-libxml-dir=/usr \
  --enable-xml \
  --disable-rpath \
  --enable-safe-mode \
  --enable-bcmath \
  --enable-shmop \
  --enable-sysvsem \
  --enable-inline-optimization \
  --with-curl \
  --with-curlwrappers \
  --enable-mbregex \
  --enable-fpm \
  --enable-mbstring \
  --with-mcrypt \
  --with-gd \
  --enable-gd-native-ttf \
  --with-openssl \
  --with-mhash \
  --enable-pcntl \
  --enable-sockets \
  --with-xmlrpc \
  --enable-zip \
  --enable-soap \
  --enable-short-tags \
  --enable-zend-multibyte \
  --enable-static \
  --with-xsl \
  --with-fpm-user=nginx \
  --with-fpm-group=nginx \
  --enable-opcache=no \
  --enable-ftp

求解,非常感谢!

PHPz
PHPz

学习是最好的投资!

全員に返信(7)
洪涛

yum install libzip

いいねを押す +0
Ty80

这歌off_t在哪呢我怎么么看着.

いいねを押す +0
迷茫

我也遇到这问题,请问楼主解决了吗

いいねを押す +0
Peter_Zhu

echo '/usr/local/lib64
/usr/local/lib
/usr/lib
/usr/lib64'>>/etc/ld.so.conf&&ldconfig -v

いいねを押す +0
大家讲道理

yum install libmcrypt-devel
如果yum里面没有,更新yum
No package libmcrypt-devel available

yum install epel-release //扩展包更新包

yum update //更新yum源

yum install libmcrypt libmcrypt-devel mcrypt mhash

いいねを押す +0
巴扎黑

看这个,http://blog.csdn.net/hp645144...

いいねを押す +0
阿神

先执行 ./buildconf 进行环境监测, 再去执行./configure

いいねを押す +0
人気のチュートリアル
詳細>
最新のダウンロード
詳細>
ウェブエフェクト
公式サイト
サイト素材
フロントエンドテンプレート
私たちについて 免責事項 Sitemap
PHP中国語ウェブサイト:福祉オンライン PHP トレーニング,PHP 学習者の迅速な成長を支援します!