发布于 2015-11-07 03:11:51 | 424 次阅读 | 评论: 1 | 来源: PHPERZ

这里有新鲜出炉的PHP设计模式,程序狗速度看过来!

PHP开源脚本语言

PHP(外文名: Hypertext Preprocessor,中文名:“超文本预处理器”)是一种通用开源脚本语言。语法吸收了C语言、Java和Perl的特点,入门门槛较低,易于学习,使用广泛,主要适用于Web开发领域。PHP的文件后缀名为php。


问题描述

配置 php参数时
> --with-jpeg-dir \ 
configure: WARNING: you should use --build, --host, --target
configure: WARNING: invalid host type: 
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 build system type... config.sub: missing argument
Try `config.sub --help' for more information.
configure: error: /bin/sh ./config.sub failed
[root@LKWLinux php-5.4.44]#

之后make时 

[root@LKWLinux php-5.4.44]# make
make: *** 没有指明目标并且找不到 makefile。 停止。
[root@LKWLinux php-5.4.44]# 

解决方法

把配置参数分段配置进去后 具体报错就是 包含“checking for fabsf… yes checking for floorf… yes configure: error: jpeglib.h not found”
google后 找到解决方法 yum install db4-devel 参考 http://lyp.cn/350_how-to-fix-php-compile-errors

再次配置参数 又出现新的错误configure error mcrypt.h not found. please reinstall libmcrypt. centos
yum安装libmcrypt-devel 是找不到安装包的 # yum install libmcrypt-devel
...
No package libmcrypt-devel available.
Error: Nothing to do

继续google 在此页找到答案https://ma.ttias.be/rhel-6-and-centos-6-missing-libmcrypt-and-libmhash-in-default-repository/
按照方法去网站找到对应64位包
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

然后再yum install libmcrypt-devel ok了 
然后再次 ./configure \ 没有报错

make也正常



最新网友评论  共有(1)条评论 发布评论 返回顶部
rbhsh 发布于2016-03-11 03:37:40
不错,成功了,谢谢哈
支持(0)  反对(0)  回复

Copyright © 2007-2017 PHPERZ.COM All Rights Reserved   冀ICP备14009818号  版权声明  广告服务