make error on os x
wxdwfc opened this issue · 1 comments
Hello. When i try to make on os x 10.9.4, i got make error like :
make: llvm-config: Command not found
make: llvm-config: Command not found
cc -std=c99 -Wall -Wextra -pedantic -O3 -v -I./src src/obj/completion_serv.o src/obj/main.o src/obj/msg_dispatcher.o src/obj/msg_handlers.o src/obj/parse_results.o -lclang -o clang-complete
Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
Target: x86_64-apple-darwin13.3.0
Thread model: posix
"/Library/Developer/CommandLineTools/usr/bin/ld" -demangle -dynamic -arch x86_64 -macosx_version_min 10.9.0 -o clang-complete src/obj/completion_serv.o src/obj/main.o src/obj/msg_dispatcher.o src/obj/msg_handlers.o src/obj/parse_results.o -lclang -lSystem /Library/Developer/CommandLineTools/usr/bin/../lib/clang/5.1/lib/darwin/libclang_rt.osx.a
ld: library not found for -lclang
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [clang-complete] Error 1
you should install llvm,check out if llvm-config is in your shell path, something like llvm-config-3.5, edit makefile and set :
LLVM_CONFIG := llvm-config-3.5