码迷,mamicode.com
首页 > 移动开发 > 详细

nginx安装出现:cp: `conf/koi-win' and `/application/nginx-1.6.3/conf/koi-win' are the same file

时间:2019-11-10 19:11:31      阅读:148      评论:0      收藏:0      [点我收藏+]

标签:安装   directory   The   nginx安装   oca   makefile   无法   问题   style   

nginx编译安装时make出现如下错误

make[1]: Leaving directory `/application/nginx-1.6.3make -f objs/Makefile install
make[1]: Entering directory `/application/nginx-1.6.3test -d /application/nginx-1.6.3 || mkdir -p /application/nginx-1.6.3
test -d /application/nginx-1.6.3/sbin         || mkdir -p /application/nginx-1.6.3/sbin
test ! -f /application/nginx-1.6.3/sbin/nginx         || mv /application/nginx-1.6.3/sbin/nginx             /application/nginx-1.6.3/sbin/nginx.old
cp objs/nginx /application/nginx-1.6.3/sbin/nginx
test -d /application/nginx-1.6.3/conf         || mkdir -p /application/nginx-1.6.3/conf
cp conf/koi-win /application/nginx-1.6.3/conf
cp: `conf/koi-win and `/application/nginx-1.6.3/conf/koi-win are the same file
make[1]: *** [install] Error 1
make[1]: Leaving directory `/application/nginx-1.6.3make: *** [install] Error 2

cp objs/nginx ‘/application/nginx-1.6.3/sbin/nginx‘

cp conf/koi-win ‘/application/nginx-1.6.3/conf‘

cp: `conf/koi-win‘ and `/application/nginx-1.6.3/conf/koi-win‘ are the same file

这两行告诉你是个已经存在的目录(文件夹),因此无法复制 objs/nginx 文件过去。

多半是环境问题,若是测试机器,不妨移走 /usr/local/nginx 试一下。或用干净的系统再试。

 

nginx安装出现:cp: `conf/koi-win' and `/application/nginx-1.6.3/conf/koi-win' are the same file

标签:安装   directory   The   nginx安装   oca   makefile   无法   问题   style   

原文地址:https://www.cnblogs.com/HByang/p/11831215.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!