![](/img/trans.png)
[英]How can I automate new system provisioning with scripts under Mac OS X 10.6?
[英]How can I update clang to 3.3 on Mac OS X 10.6
我正在运行Mac OS X 10.6并想安装TextMate 2,适用于Mac OS X 10.7+。 但它所需要的只是更新版的clang(LLVM),它包含在Lion和Mountain Lion中。 我之前读到过,我可以用MacPorts做到这一点。 所以我使用了port install clang
和MacPorts更新到clang-2.9,然后是clang-3.2,最后是clang-3.3。 我想,它现在更新了,我检查了版本: clang --version
。 它没有更新:
Apple clang version 2.0 (tags/Apple/clang-139) (based on LLVM 2.9svn)
Target: x86_64-apple-darwin10
Thread model: posix
So I copied the new clang file in this path (
/opt/local/libexec/llvm-3.3/bin ) to
So I copied the new clang file in this path (
) to
/ usr / bin`。 但现在有一个失败:(:
dyld: Library not loaded: @executable_path/../lib/libLLVM-3.3svn.dylib
Referenced from: /usr/bin/clang
Reason: image not found Trace/BPT trap
libLLVM-3.3svn.dylib
位于/opt/local/libexec/llvm-3.3/lib
。 我现在能做什么,它运行clang-3.3? 抱歉我的英语不完美;)谢谢!
如果从/usr/bin
运行clang
,它将在/usr/bin/../lib/libLLVM-3.3svn.dylib
查找LLVM库,即/usr/lib/libLLVM-3.3svn.dylib
(至少那是动态加载器告诉你的东西)。 您可以尝试将lib文件复制到/usr/lib
。
或者,您可以在此处下载最新的Clang官方版本: http : //llvm.org/releases/download.html
据我所知,这些构建是自包含的,不需要任何动态库。 但是,可能需要将Apple的ARC库复制到某个目录中。 如果您遇到麻烦,请再次询问。
另一种方法是从源代码构建Clang和LLVM。 您可以在此处找到存储库URL和说明: http : //clang.llvm.org/get_started.html
这也应该构建Clang与LLVM库静态链接。
3.3,顺便说一下,还没有正式发布,所以我建议使用3.2,除非你需要任何特定的新功能。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.