개발도구/WAS

Nginx make install 에러 - koi-win are the same file

노루아부지 2023. 5. 18. 09:10

[설치 환경]

redhat enterprise linux 7.9

 

 

nginx를 설치하던 중 configure와 make까지는 잘 끝났는데, make install에서 다음과 같은 에러가 발생했습니다.

 

cp: `conf/koi-win' and `/usr/local/nginx/conf/koi-win' are the same file

 

결론은 컴파일(make) 위치와, 설치하려는 위치가 동일해서 발생하는 문제입니다.

 

따라서, 컴파일 하는 기존 경로가 /home/user/nginx-1.20.2 라면 실제 ./configure는 다음과 같아야 합니다.

./configure --prefix=/home/user/nginx --with-zlib=/home/user/zlib --with-pcre=/home/user/pcre --with-openssl=/home/user/openssl --with-http_ssl_module --with-http_stub_status_module
make install

 

위와 같이 명령어를 입력하면 /home/user/nginx 경로가 새로 생성되어 그 경로에 install 됩니다.

 

 

 

[참고 사이트]

https://www.phpschool.com/gnuboard4/bbs/board.php?bo_table=qna_install&wr_id=108997 

 

WWW.PHPSCHOOL.COM

개발자 커뮤니티 1위 PHPSCHOOL.COM 입니다.

www.phpschool.com

 

728x90
loading