Installing the Llvm/clang compiler under Debian/ubuntu Linux

Source: Internet
Author: User

The first step is to edit the/etc/apt/sources.list first, adding the following sources:
Debian platform:
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 Platform:
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

The second step, must obtain the related certificate before the installation

Wget-o-Http://llvm.org/apt/llvm-snapshot.gpg.key|sudo Apt-key Add-


The third step is to start using apt to install the

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


Installing the Llvm/clang compiler under Debian/ubuntu Linux

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.