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

报错信息为:

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

学习是最好的投资!

répondre à tous(7)
洪涛

yum install libzip

Ty80

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

迷茫

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

Peter_Zhu

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

大家讲道理

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

巴扎黑

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

阿神

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

Derniers téléchargements
Plus>
effets Web
Code source du site Web
Matériel du site Web
Modèle frontal
À propos de nous Clause de non-responsabilité Sitemap
Site Web PHP chinois:Formation PHP en ligne sur le bien-être public,Aidez les apprenants PHP à grandir rapidement!