转载部分:
https://blog.csdn.net/asia66/article/details/85703643
一般在tar解压安装环境的时候,执行make时出现这种错误
原因 1。没有执行 ./configure 所以没能生成makefile
2. 执行 ./configure 时出错 如 ./configure: line 2370: config.log: Permission denied
即是 config.log的访问权限被拒绝
解决方法: sudo chmod 777 文件名, sudo ./configure
自己原创部分:
操作中发现其他原因:
在Linux系统中,安装httpd.tar.gz 资源包时,在解压资源包后,
第一步:检测安装环境是否适合安装
[root@localhost httpd-2.2.15]# ./configure --prefix=/home/**/桌面/webServer
第二步:编译
[root@localhost httpd-2.2.15]# make
出现:make: *** 没有指明目标并且找不到 makefile。 停止。
这时因为没有安装编译环境。需要安装gcc
执行命令:yum install gcc
之后有y/n 输入y 回车 知道安装完成。
从第一步在开始从新操作
第三步:正式安装
[root@localhost httpd-2.2.15]# make install
第四步:进入 bin 文件夹 执行 apachetl +start/stop restart 重启
此时httpd.tar.gz 资源包安装完成。