码迷,mamicode.com
首页 > 系统相关 > 详细

ubuntu 12.04 clang 3.4 安装

时间:2014-12-03 00:19:52      阅读:756      评论:0      收藏:0      [点我收藏+]

标签:style   blog   http   color   os   sp   for   on   div   

作者:jostree 转载请注明出处 http://www.cnblogs.com/jostree/p/4137402.html

1.添加clang源

deb http://llvm.org/apt/precise/ llvm-toolchain-precise main
deb-src http://llvm.org/apt/precise/ llvm-toolchain-precise main
# 3.4
deb http://llvm.org/apt/precise/ llvm-toolchain-precise-3.4 main
deb-src http://llvm.org/apt/precise/ llvm-toolchain-precise-3.4 main
# 3.5
deb http://llvm.org/apt/precise/ llvm-toolchain-precise-3.5 main
deb-src http://llvm.org/apt/precise/ llvm-toolchain-precise-3.5 main
# Common
deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu precise main

2.添加共钥

gpg --keyserver wwwkeys.pgp.net --recv-keys 1E9377A2BA9EF27F

gpg --export -a 1E9377A2BA9EF27F > /tmp/key

sudo apt-key add /tmp/key

3.更新源

sudo apt-get update

4.安装

apt-get install clang-3.4 lldb-3.4
apt-get install clang-3.4 clang-3.4-doc libclang-common-3.4-dev libclang-3.4-devlibclang1-3.4 libclang1-3.4-dbg libllvm-3.4-ocaml-dev libllvm3.4 libllvm3.4-dbg lldb-3.4 llvm-3.4 llvm-3.4-dev llvm-3.4-doc llvm-3.4-examples llvm-3.4-runtime clang-modernize-3.4 clang-format-3.4 python-clang-3.4 lldb-3.4-dev

5.完成

或直接下载编译好的库

http://llvm.org/releases/download.html

 

 

ubuntu 12.04 clang 3.4 安装

标签:style   blog   http   color   os   sp   for   on   div   

原文地址:http://www.cnblogs.com/jostree/p/4137118.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!