安装imap模块,编译时提示没有指明目标并且找不到makefile
系统是debianlibc-client-dec
进入imap目录
/usr/local/php/bin/phpize
Configuring for:
PHP Api Version: 20041225
Zend Module Api No: 20060613
Zend Extension Api No: 220060519
configure.in:3: warning: prefer named diversions
configure.in:3: warning: prefer named diversions
./configure --with-php-config=/usr/local/php/bin/php-config --with-kerberos --with-imap-ssl
make && make install
然后就提示有指明目标并且找不到makefile,停止
root@LU-DE:/home/izcn# cd lnmp0.8-full/php-5.2.17/ext/imap/
root@LU-DE:/home/izcn/lnmp0.8-full/php-5.2.17/ext/imap# /usr/local/php/bin/phpize Configuring for:
PHP Api Version: 20041225
Zend Module Api No: 20060613
Zend Extension Api No: 220060519
configure.in:3: warning: prefer named diversions
configure.in:3: warning: prefer named diversions
root@LU-DE:/home/izcn/lnmp0.8-full/php-5.2.17/ext/imap# ./configure --with-php-config=/usr/local/php/bin/php-conifg --with-kerberos --with-imap-ssl --with-imap
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
configure: error: Cannot find php-config. Please use --with-php-config=PATH
root@LU-DE:/home/izcn/lnmp0.8-full/php-5.2.17/ext/imap# make && make install
make: *** 没有指明目标并且找不到 makefile。 停止。
root@LU-DE:/home/izcn/lnmp0.8-full/php-5.2.17/ext/imap#
[ 本帖最后由 izcn 于 2012-3-28 21:04 编辑 ] 前面configure没成功肯定没法make
加了--with-php-config还是不行就不清楚原因了,重启一下系统试试看 是LVM分区的问题,编译目录没对。普通分区就OK了。
但还是怀疑中。
页:
[1]