Glam Prestige Journal

Bright entertainment trends with youth appeal.

How would I go about installing version 3 of Clang/LLVM in Ubuntu 10.10? Ubuntu 10.10 installs version 2.8 by default. Version 3 has more extensive/up to date support for C++ and possibly C (I am not totally sure about C). I know that I could possibly compile from source but was wondering if there is a ppa or other method to avoid compiling it from source.

If I compile from source do I have to tell it where to find the std c library etc. or is that automatically done.

1 Answer

I haven't found a PPA for maverick - you will need a later version of ubuntu to get v3.

However, to compile is very straightforward. Clang themselves have the instructions well written. A few pointers:

You will need the following packages to be installed before you compile

sudo apt-get install build-essential subversion

Start at the second instruction "2. Checkout LLVM"

At step 4 there is a mistake - it should read cd ../projects

I didnt need to specify my C/C++ headers - configure worked this out by itself.

Word of warning - it takes hours to compile - best to leave this as an overnight job!

3

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy