맥 하이시에라 (High Sierra) 에서 make 명령이 아래와 같이 먹지 않을 때가 있습니다. Homebrew 와 같은 맥 패키지 관리툴에서 /usr/local/include 를 확인하지 못해서 그런다고 StackSocial 에서 설명되어 있는데 정확한지 여부는 모르겠습니다.
~/.vim/bun…/vimproc.vim> make
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f make_mac.mak
clang -O2 -W -Wall -Wno-unused -Wno-unused-parameter -bundle -fPIC -o lib/vimproc_mac.so src/proc.c
In file included from src/proc.c:77:
In file included from /usr/include/netinet/in.h:68:
In file included from /usr/local/include/stdint.h:59:
In file included from /usr/local/include/stdint.h:59:
In file included from /usr/local/include/stdint.h:59:
In file included from /usr/local/include/stdint.h:59:
In file included from /usr/local/include/stdint.h:59:
In file included from /usr/local/include/stdint.h:59:
/usr/local/include/stdint.h:2:10: error: #include nested too deeply
#include <stddef.h>
^
/usr/local/include/stdint.h:59:11: error: #include nested too deeply
# include <stdint.h>
^
/usr/local/include/stdint.h:72:11: error: #include nested too deeply
# include <sys/types.h>
^
/usr/local/include/stdint.h:76:10: error: #include nested too deeply
#include <limits.h>
^
/usr/local/include/stdint.h:82:11: error: #include nested too deeply
# include <inttypes.h>
^
5 errors generated.
make[1]: *** [lib/vimproc_mac.so] Error 1
make: *** [all] Error 2
위와 같이 make 가 진행이 안되고 지속적으로 오류가 발생 할 경우, 아래와 같이 /tmp/includes 로 옮겨 줍니다.
mkdir /tmp/includes
brew doctor 2>&1 | grep "/usr/local/include" | awk '{$1=$1;print}' | xargs -I _ mv _ /tmp/includes
위와 같이 명령을 진행 한 후,
> make
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f make_mac.mak
clang -O2 -W -Wall -Wno-unused -Wno-unused-parameter -bundle -fPIC -o lib/vimproc_mac.so src/proc.c
컴파일이 잘 진행됨을 알 수 있습니다. 맥 하이시에라의 고질적인 이슈 인 것 같습니다~
안녕하세요.
포스트 감사합니다. 알려주신 방법대로 시도해봤는데 적용되지 않네요.
저는 모하비 사용중이고
make 실행시 다음과 같은 에러가 뜹니다.
fatal error: bits/c++config.h: No such file or directory
/usr/local/include/ 하위 경로에 c++config.h 헤더파일이 없는 것 때문에 문제가 발생하는 것 같습니다.
혹시 이걸 해결하는 방법이 있을까요?
안녕하세요. 답변이 늦었네요~~ 스택오버플로우를 보니 비슷한 이슈가 리눅스에서 있는걸로 확인되는데요 (https://stackoverflow.com/questions/34437483/bits-cconfig-h-no-such-file-or-directory/36556287)
제가 동일한 이슈가 없어서 정확히 말씀드리기는 힘들겠지만 내용을 보면 gcc-4.8 이상의 패키지를 설치하시면 해결이 되실 것 같습니다.
> brew search gcc
하시고 나서 gcc 버젼 4.8 이상을 설치하시고 다시 시도해 보시기 바랍니다.
> brew install gcc@4.9