在OSX10.10上找到libclang.so?

时间:2016-04-09 11:23:29

标签: macos vim clang llvm-clang

我试图让YouCompleteMe作为vim自动完成插件工作。

我用

sudo find / -name "libclang.so" -print

找到我的libclang.so。我得到了结果

  

find:/ dev / fd / 3:不是目录
  find:/ dev / fd / 4:不是目录

我想知道是否意味着我的Mac上没有libclang.so

之后,我按照以下命令在llvm-clang目录下安装了~

cd ~/llvm-clang
svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm
cd llvm/tools
svn co http://llvm.org/svn/llvm-project/cfe/trunk clang
cd ../..
cd llvm/tools/clang/tools
svn co http://llvm.org/svn/llvm-project/clang-tools-extra/trunk extra
cd ../../../..
cd llvm/projects
svn co http://llvm.org/svn/llvm-project/compiler-rt/trunk compiler-rt
cd ../..
mkdir llvm-build
cd llvm-build/
cmake -G "Unix Makefiles" ../llvm
make

到目前为止一切正常。 但是,我跑了

sudo find / -name "libclang.so" -print

我得到了同样的结果。

无论如何,我不知道这是否有助于使问题更加清晰:

$ sudo find / -name "llvm" -print



find: /dev/fd/3: Not a directory
find: /dev/fd/4: Not a directory
/Library/Frameworks/Mono.framework/Versions/4.2.1/docs/llvm
/Library/Frameworks/Mono.framework/Versions/4.2.1/include/llvm
/Library/Frameworks/Mono.framework/Versions/4.2.1/share/llvm
/Users/yangyy/.vim/bundle/syntastic/syntax_checkers/llvm
/Users/yangyy/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/llvm
/Users/yangyy/llvm-clang/llvm
/Users/yangyy/llvm-clang/llvm/bindings/go/llvm
/Users/yangyy/llvm-clang/llvm/bindings/ocaml/llvm
/Users/yangyy/llvm-clang/llvm/bindings/python/llvm
/Users/yangyy/llvm-clang/llvm/include/llvm
/Users/yangyy/llvm-clang/llvm/tools/clang/tools/extra/clang-tidy/llvm
/Users/yangyy/llvm-clang/llvm/tools/clang/tools/extra/test/clang-tidy/Inputs/Headers/llvm
/Users/yangyy/llvm-clang/llvm-build/cmake/modules/CMakeFiles/Export/lib/cmake/llvm
/Users/yangyy/llvm-clang/llvm-build/include/llvm
/Users/yangyy/llvm-clang/llvm-build/lib/cmake/llvm
/Users/yangyy/llvm-clang/llvm-build/tools/clang/tools/extra/clang-tidy/llvm
/usr/share/file/magic/llvm

libclang.so在哪里?

安装clang后为什么没有libclang.so

0 个答案:

没有答案