yhara.jp

Recent Posts

mac vimproc コンパイル

2022-04-04
Tech

最新のvimprocをmacでコンパイルしようとしたらエラーになったのでメモ

/Users/yhara/.vim/bundle/vimproc % make -B
/Library/Developer/CommandLineTools/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
src/proc.c:10:10: fatal error: 'stdio.h' file not found
#include <stdio.h>
         ^~~~~~~~~
1 error generated.
make[1]: *** [lib/vimproc_mac.so] Error 1
make: *** [all] Error 2

これはexport SDKROOT="$(xcrun --sdk macosx --show-sdk-path)" してからmakeで回避できた。 - https://blueeyes.sakura.ne.jp/2018/09/28/1601/

次。

/Users/yhara/.vim/bundle/vimproc % make
/Library/Developer/CommandLineTools/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
ld: library not found for -lSystem
clang-12: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [lib/vimproc_mac.so] Error 1
make: *** [all] Error 2

export LIBRARY_PATH="$(xcrun --sdk macosx --show-sdk-path)/usr/lib"してからmakeで回避できた。

More posts

Posts

(more...)

Articles

(more...)

Category

Ads

About

About the author