我正在使用ubuntu 13.10 x64,而我正在构建PHP 5.3.8,我下载了源代码并运行configure:
./configure --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data --with-tidy --with-config-file-path=/usr/local/PHP/conf --with-config-file-scan-dir=/usr/local/PHP/conf.d --enable-debug --with-openssl --with-kerberos --with-zlib --enable-calendar --with-curl --with-curlwrappers --with-enchant --enable-exif --enable-ftp --with-gd --with-jpeg-dir=/usr --with-png-dir=/usr --with-vpx-dir=/usr --with-freetype-dir=/usr --with-t1lib --enable-exif --enable-gd-native-ttf --enable-gd-jis-conv --with-gettext --with-gmp --with-mhash --enable-intl --enable-mbstring --with-mcrypt --with-MysqL --with-MysqLi --enable-pcntl --with-pdo-MysqL --with-pdo-pgsql --with-pgsql --with-pspell --with-libedit --with-readline --enable-shmop --with-snmp --enable-soap --enable-sockets --enable-sysvmsg --enable-sysvshm --with-xsl --enable-zip --with-pear --enable-zend-signals --enable-maintainer-zts
我收到这个错误:configure:error:无法找到gmp.h
我已经安装了libgmp-dev和libgmp3-dev,使用sudo apt-get install libgmp-dev libgmp3-dev,但仍然无法成功运行configure,我该如何解决这个问题?
如果我运行位置gmp.h我可以看到它在这里:
/usr/include/linux/igmp.h /usr/include/netinet/igmp.h /usr/include/x86_64-linux-gnu/gmp.h /usr/src/linux-headers-3.11.0-12/include/linux/igmp.h /usr/src/linux-headers-3.11.0-12/include/uapi/linux/igmp.h /usr/src/linux-headers-3.11.0-12-generic/include/linux/igmp.h /usr/src/linux-headers-3.11.0-13/include/linux/igmp.h /usr/src/linux-headers-3.11.0-13/include/uapi/linux/igmp.h /usr/src/linux-headers-3.11.0-13-generic/include/linux/igmp.h
谢谢!