VPS侦探论坛

 找回密码
 注册
查看: 6297|回复: 3

安装imap模块,编译时提示没有指明目标并且找不到makefile

[复制链接]
发表于 2012-3-28 20:59:18 | 显示全部楼层 |阅读模式

系统是debian
  1. libc-client-dec
复制代码



进入imap目录

  1. /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

  1. ./configure --with-php-config=/usr/local/php/bin/php-config --with-kerberos --with-imap-ssl


  2. make && make install
复制代码




  然后就提示有指明目标并且找不到makefile,停止


美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2012-3-28 21:01:25 | 显示全部楼层


  1. root@LU-DE:/home/izcn# cd lnmp0.8-full/php-5.2.17/ext/imap/
复制代码
  1. 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
  1. 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
  1. root@LU-DE:/home/izcn/lnmp0.8-full/php-5.2.17/ext/imap# make && make install
复制代码

make: *** 没有指明目标并且找不到 makefile。 停止。

  1. root@LU-DE:/home/izcn/lnmp0.8-full/php-5.2.17/ext/imap#
复制代码

[ 本帖最后由 izcn 于 2012-3-28 21:04 编辑 ]
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2012-3-29 09:00:48 | 显示全部楼层

前面configure没成功肯定没法make
加了--with-php-config还是不行就不清楚原因了,重启一下系统试试看
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2012-3-30 10:27:46 | 显示全部楼层



是LVM分区的问题,编译目录没对。普通分区就OK了。
  但还是怀疑中。
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-22 15:28 , Processed in 0.026349 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表