[root@vps5996 lnmp0.7]# php -v
-bash: php: command not found
[root@vps5996 lnmp0.7]# /root/lnmp restart
=========================================================================
Manager for LNMP V0.7 , Written by Licess
=========================================================================
LNMP is a tool to auto-compile & install Nginx+MySQL+PHP on Linux
This script is a tool to Manage status of lnmp
For more information please visit http://www.lnmp.org
Usage: /root/lnmp {start|stop|reload|restart|kill|status}
=========================================================================
Stoping LNMP...
Nginx program is stop
PHP-FPM program is not runing!
Shutting down MySQL. SUCCESS!
MySQL program is stop
Starting LNMP...
Nginx start successfully!
/root/lnmp: line 46: /usr/local/php/sbin/php-fpm: No such file or directory
PHP-FPM start successfully!
Starting MySQL. SUCCESS!
....
....
checking for fabsf... yes
checking for floorf... yes
checking for jpeg_read_header in -ljpeg... yes
checking for png_write_image in -lpng... yes If configure fails try --with-xpm-dir=<DIR> checking for FT_New_Face in -lfreetype... no configure: error: Problem with freetype.(a|so). Please check config.log for more information. [root@vps5996 php-5.2.17]# make ZEND_EXTRA_LIBS='-liconv' make: *** No targets specified and no makefile found. Stop.
请教如何解决?作者: try88 时间: 2011-6-15 16:42
手动安装freetype后,出现configure: error: GD build test failed. Please check the config.log for details.作者: licess 时间: 2011-6-15 16:51 标题: 回复 6# 的帖子 再手动安装gd,如果已经安装了gd,还是找不到,则吧--with-gd 改成 --with-gd=gd路径作者: try88 时间: 2011-6-15 17:05
使用--with-gd=gd
configure: error: Unable to find gd.h anywhere under gd作者: try88 时间: 2011-6-15 17:22
安装GD
tar zxvf gd-2.0.33.tar.gz
cd gd-2.0.33
./configure -prefix=/usr/local/gd -with-jpeg=/usr/local/jpeg6 -with-png -with-zlib -with-freetype
make
make install
checking for gdImageString16 in -lgd... no
checking for gdImagePaletteCopy in -lgd... no
checking for gdImageCreateFromPng in -lgd... no
checking for gdImageCreateFromGif in -lgd... no
checking for gdImageGif in -lgd... no
checking for gdImageWBMP in -lgd... no
checking for gdImageCreateFromJpeg in -lgd... no
checking for gdImageCreateFromXpm in -lgd... no
checking for gdImageCreateFromGd2 in -lgd... no
checking for gdImageCreateTrueColor in -lgd... no
checking for gdImageSetTile in -lgd... no
checking for gdImageEllipse in -lgd... no
checking for gdImageSetBrush in -lgd... no
checking for gdImageStringTTF in -lgd... no
checking for gdImageStringFT in -lgd... no
checking for gdImageStringFTEx in -lgd... no
checking for gdImageColorClosestHWB in -lgd... no
checking for gdImageColorResolve in -lgd... no
checking for gdImageGifCtx in -lgd... no
checking for gdCacheCreate in -lgd... no
checking for gdFontCacheShutdown in -lgd... no
checking for gdFreeFontCache in -lgd... no
checking for gdFontCacheMutexSetup in -lgd... no
checking for gdNewDynamicCtxEx in -lgd... no
checking for gdImageCreate in -lgd... no
configure: error: GD build test failed. Please check the config.log for details.作者: licess 时间: 2011-6-15 19:46
按他的提示具体信息看config.log作者: try88 时间: 2011-6-15 20:58
全部重新编译,搞定了
谢谢作者: xmx 时间: 2011-6-15 23:21
原帖由 try88 于 2011-6-15 17:05 发表
使用--with-gd=gd
configure: error: Unable to find gd.h anywhere under gd