-
Git bash : make: command not foundIT Tech/Git 2020. 12. 25. 20:09
작업 중 Git bash 에서 다음과 같은
bash : make: command not found 에러가 발생하였다.
무슨 말일까?
command로 make로 실행되는 것들을 찾을 수 없는 것..
make가 리눅스 시스템에서 SHELL을 컴파일하는 명령어 인 듯 하다.
make는 파일관련 유틸리티이기 때문에 현재 위치에서 makefile이 있다면 실행하므로 사용할 수 있다고 한다.
리눅스에서 사용하는 make 명령은 윈도우 git bash나 cmd에서 mingw32-make로 대체 사용할 수 있다고 한다.
이렇게 쓰던가 make로 굳이 쓰고 싶으면 바로 밑을 참고해서 적용해보자.
그런데 내가 사용하려는 명령어는 make build 였는데 필요한 경로에 Makefile이 있는 것을 확인했다.
여기서 그런데 make라는 명령어 자체가 Bash에서 먹히지가 않았다.
이유는 C:\Program Files\Git\mingw64\bin 경로에 make.exe가 없다.
그럼 이 경로에 make.exe 파일을 넣어주어야 할까라는 생각을 해보았고
https://stackoverflow.com/questions/36770716/mingw64-make-build-error-bash-make-command-not-found
MINGW64 "make build" error: "bash: make: command not found"
I am working on Windows 10. I want to run a "make build" in MINGW64 but following error comes up: $ make build bash: make: command not found I want to build Glide for Golang I tried following: ...
stackoverflow.com
이 경로에서 힌트 역시 얻을 수 있었다.
https://sourceforge.net/projects/ezwinports/files/
ezwinports - Browse Files at SourceForge.net
ezwinports -- MS-Windows ports of Unix and GNU software This project is a collection of ports to MS-Windows of GNU and Unix software packages, which either don't have precompiled Windows binaries available, or whose existing ports are buggy or broken or ou
sourceforge.net
ezwinports에서 make-4.2.1-without-guile-w32-bin.zip를 다운로드 받았고
이것을 압축해제해서 bin 폴더 안에 있는 make.exe를 찾아서 넣어주면 되긴한다.
하지만 이것은 굳이 이렇게 할 필요없는 방법이다;;
red=`tput setaf 1` yellow=`tput setaf 3` reset=`tput sgr0` build: @docker pull mysql:5.6 @docker pull phpmyadmin/phpmyadmin @docker pull munkyboy/fakesmtp @docker build -t opensupports-srv . || echo "A${red}An error occurred${reset}" @docker network create os-net || true ...
Makefile의 일부분으로 build: 가 타겟절로 make build로 사용할 수 있는 듯하다.
여기서 make build 시 docker 명령어를 실행시켜 불러와 설정을 해주는 명령어이고 그전에 docker가 깔려있어야 한다.
반응형'IT Tech > Git' 카테고리의 다른 글
Github productive-box (0) 2021.04.05 GitHub : gh-pages 를 이용한 Deploy (0) 2020.12.24 cherry-pick (0) 2020.08.16 Git 버젼관리. (0) 2020.08.13 .gitignore (0) 2020.08.13