在mac 10.6.8上安装libc ++ [英] Install libc++ on mac 10.6.8
问题描述
我目前正试图在我的mac上安装lib ++。1.dylib。我按照 http://libcxx.llvm.org/ 中的说明操作,并下载了源代码。当我尝试 ./ buildit
时遇到了一个 clang ++:command not found
错误。
I'm currently trying to install the lib++.1.dylib on my mac. I followed the instructions here http://libcxx.llvm.org/ and downloaded the source. When I tried to ./buildit
I encountered a clang++: command not found
error.
所以我在这里 http:// clang。 llvm.org/get_started.html 并安装。。不幸的是,当我回到安装libcxx,我仍然有clang ++错误。 Clang本身工作 clang --help
打开帮助菜单。
So I went here http://clang.llvm.org/get_started.html and installed clang. Unfortunately now when I went back to installing libcxx, I still got the clang++ error. Clang itself works as clang --help
brings up the help menu.
安装Xcode不是一个选项我正在运行10.6.8。
Installing Xcode isn't an option as I am runnning 10.6.8.
如何继续,即获取clang ++命令工作?
How do I proceed i.e. get the clang++ command to work?
推荐答案
在github上有一个关于在10.6上构建libc ++的指令
https://github.com/llvm-mirror/libcxx/tree/apple
There is an instruction for build libc++ on 10.6 in github https://github.com/llvm-mirror/libcxx/tree/apple
在Mac上构建OS X 10.6,你需要一个帮助库和头找到
在这里。 cp cxxabi.h到/ usr / include和cp libc ++ abi.dylib到/ usr / lib。
To build on Mac OS X 10.6, you need a helper library and header found here. cp cxxabi.h to /usr/include, and cp libc++abi.dylib to /usr/lib.
下一页:
cd libcxx / lib
cd libcxx/lib
export TRIPLE = -apple -
export TRIPLE=-apple-
./ buildit
./buildit
这将导致libc ++。1.dylib。要安装它,我喜欢使用
链接而不是复制,但要么工作:
That should result in a libc++.1.dylib. To install it I like to use links instead of copying, but either should work:
cd / usr / lib
cd /usr/lib
sudo ln -sf路径到libcxx / lib / libc ++ 1.dylib libc ++ 1.dylib
sudo ln -sf path-to-libcxx/lib/libc++.1.dylib libc++.1.dylib
sudo ln -sf libc ++ 1. .dylib libc ++。dylib
sudo ln -sf libc++.1.dylib libc++.dylib
cd / usr / include / c ++
cd /usr/include/c++
sudo ln -sf path- libcxx / include v1
sudo ln -sf path-to-libcxx/include v1
指令链接无效。
10.6的libcppabi您可以在此链接下载 http://www.mediafire .com / download / 2aq37hc97n4f47c / libcppabi.zip
这篇关于在mac 10.6.8上安装libc ++的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!