Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

  • Clang Binaries for FreeBSD9/x86_64 (69M)(.sig)
  • Clang Binaries for Ubuntu-12.04/x86 (67M)(.sig)
  • Clang Binaries for Ubuntu-12.04/x86_64 (71M)(.sig)

My OS is CentOS 6.3 Gnome Desktop x86 from http://virtualboxes.org/images/centos/ Item 13.

Which version I should use for it?

share|improve this question
    
Please state whether you're using 32-bit or 64-bit CentOS. –  ÃŁŁǫǛȉЖΦΤїҪ Feb 21 '13 at 16:01
    
Please see updated OP. –  q0987 Feb 21 '13 at 16:04
    
Now they have pre-built binaries for Fedora, and it would work on CentOS. –  Eonil Oct 17 '13 at 7:06
add comment

1 Answer

up vote 3 down vote accepted

The binaries for Ubuntu 12.04 x86 may work (may, not will); but if they don't, it's due to linkage to libraries which have changed incompatibly between 2010 and 2012.

The userspace of CentOS / Red Hat Enterprise Linux of the 6.x series is based on Fedora 12, from late 2009 / early 2010. Ubuntu 12.04 was released in April 2012, with most of its libraries using versions that were released in late 2011. So there's roughly 24 to 30 months of development work between CentOS 6.x and Ubuntu 12.x.

If anything in glibc (or libstdc++ especially) has changed notably since then, Clang or anything based on LLVM won't work if it was compiled for Ubuntu 12.04 and run on CentOS 6.x.

I can't say for sure because I haven't tested it.

What you should do instead is either compile LLVM and Clang yourself on CentOS 6.3, or look for a repository that ships Clang binaries for CentOS, like ELRepo.

share|improve this answer
    
I cannot compile the clang from scratch. The issue I found yesterday is that the whole building process increases my VirtualBox disk space from 2GB to more than 9GB. I don't have enough space on my SSD. –  q0987 Feb 21 '13 at 16:08
    
Then use the clang packages from ELRepo as I said. –  ÃŁŁǫǛȉЖΦΤїҪ Feb 21 '13 at 16:18
    
Will check and update the post later. Many thanks:) –  q0987 Feb 21 '13 at 16:20
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.