Rumah  >  Soal Jawab  >  teks badan

CentOS6.8下编译安装PHP,执行 ./configure后报错,请问怎么解决?

报错信息为:

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

求解,非常感谢!

PHPzPHPz2721 hari yang lalu1806

membalas semua(7)saya akan balas

  • PHP中文网

    PHP中文网2017-04-11 10:18:14

    yum install libzip

    balas
    0
  • PHP中文网

    PHP中文网2017-04-11 10:18:14

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

    balas
    0
  • 迷茫

    迷茫2017-04-11 10:18:14

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

    balas
    0
  • 天蓬老师

    天蓬老师2017-04-11 10:18:14

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

    balas
    0
  • 大家讲道理

    大家讲道理2017-04-11 10:18:14

    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

    balas
    0
  • 巴扎黑

    巴扎黑2017-04-11 10:18:14

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

    balas
    0
  • 阿神

    阿神2017-04-11 10:18:14

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

    balas
    0
  • Batalbalas