make && make install报错

Posted 竹林三溪老人

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了make && make install报错相关的知识,希望对你有一定的参考价值。

问题:linux下安装php时,运行./configure 后,再运行make报错:没有指明目标并且找不到makefile。 停止 

 解决方法:这个是configure没有成功,看看报的错,然后将每个错误一次解决,再重新configure后,问题便能解决

然后在查看PHP安装时候,发现报错

configure: error: xml2-config not found. Please check your libxml2 installation

检查是否安装了libxm包

[[email protected] php-5.3.8]# rpm -qa |grep  libxml2
libxml2-2.6.26-2.1.12
libxml2-python-2.6.26-2.1.12

 重新安装libxml2和libxml2-devel包

yum install libxml2

yum install libxml2-devel -y

 安装完之后查找xml2-config文件是否存在

[[email protected] php-5.3.8]# find / -name "xml2-config"
/usr/bin/xml2-config

 如果存在的话重新安装php

以上是关于make && make install报错的主要内容,如果未能解决你的问题,请参考以下文章

make && make install报错

./configure make && make install

Linux ./configure && make && make install 编译安装和卸载

make build & make clean

make & make install(make altinstall) 因动态库gcc版本问题

Mage 类似make&&rake 基于golang 的build 工具