make: *** No targets specified and no makefile found. Stop

来源:互联网 发布:centos 7.2 64位 安装 编辑:程序博客网 时间:2024/06/06 06:52

make: *** No targets specified and no makefile found.  Stop

php安装扩展xsl遇见问题:make: *** No targets specified and no makefile found.  Stop

解决办法:

缺少依赖,执行下面命令:

yum -y install libxslt-devel 
安装完成后,重新安装xsl扩展

第一步:

cd cd /root/php-7.0.12/ext/xsl

第二步:

/usr/local/php/bin/phpize

第三步:

./configure --with-php-config=/usr/local/php/bin/php-config

第四步:

make && make install

第五步:

vi /etc/php.ini 
增加一行扩展内容:

extension=xsl.so
第六步:

重启apache

/etc/init.d/httpd restart
第七步:

查看扩展是否安装成功,在apache的htdocs(linux系统的centos7.2环境)目录下创建PHP文件,并写入内容:

<?php    phpinfo();?>
浏览器ip+路径,或者域名+路径访问该文件,看到如下结果,说明安装xsl扩展成功:



*************************只要思想不滑坡,办法总比困难多*************************



阅读全文
0 0
原创粉丝点击