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

Debian/Ubuntu Linux 下安装LLVM/Clang 编译器

时间:2014-11-05 17:14:56      阅读:326      评论:0      收藏:0      [点我收藏+]

标签:style   http   io   for   sp   strong   div   on   cti   

第一步,首先编辑 /etc/apt/sources.list,加入以下源:
Debian平台:

deb http://llvm.org/apt/wheezy/ llvm-toolchain-wheezy main
deb-src http://llvm.org/apt/wheezy/ llvm-toolchain-wheezy main

deb http://llvm.org/apt/unstable/ llvm-toolchain main
deb-src http://llvm.org/apt/unstable/ llvm-toolchain main
# 3.4
deb http://llvm.org/apt/unstable/ llvm-toolchain-3.4 main
deb-src http://llvm.org/apt/unstable/ llvm-toolchain-3.4 main
# 3.5
deb http://llvm.org/apt/unstable/ llvm-toolchain-3.5 main
deb-src http://llvm.org/apt/unstable/ llvm-toolchain-3.5 main

Ubuntu平台:
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
deb http://llvm.org/apt/trusty/ llvm-toolchain-trusty main
deb-src http://llvm.org/apt/trusty/ llvm-toolchain-trusty main
# 3.4
deb http://llvm.org/apt/trusty/ llvm-toolchain-trusty-3.4 main
deb-src http://llvm.org/apt/trusty/ llvm-toolchain-trusty-3.4 main
# 3.5
deb http://llvm.org/apt/trusty/ llvm-toolchain-trusty-3.5 main
deb-src http://llvm.org/apt/trusty/ llvm-toolchain-trusty-3.5 main


第二步,安装前必须取得相关证书

wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key|sudo apt-key add -


第三步,可以开始用apt安装了

apt-get install clang-3.4 lldb-3.4


To install all packages:

apt-get install clang-3.4 clang-3.4-doc libclang-common-3.4-dev libclang-3.4-dev libclang1-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


Debian/Ubuntu Linux 下安装LLVM/Clang 编译器

标签:style   http   io   for   sp   strong   div   on   cti   

原文地址:http://blog.csdn.net/hexrain/article/details/40825251

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