I have downloaded the "Clang for x86_64 OpenSUSE 13.1" (I am on Scientific Linux) pre-built binary from here:


(Should I have got the Fedora one??)

and I untarred in the Downloads folder- I have a clang folder with bin, docs, include, lib and share folders.

I did find this page:


advising what to do next, but their steps do not see to synch with the folders I have?

What do I need to do next to install clang compiler?

Also, how does my environment know where the clang compiler will be located?

  • I'd go with the Fedora one. Scientific LInux is a clone of RHEL. RHEL and Fedora are close. Try rebuilding the rpm on your system. If you don't know how to do that, ask. – Faheem Mitha Sep 23 '14 at 13:10
  • Hi, would you be able to give explicit instructions? What is the rpm? Is it one of the links on the link I provided? What do I need to do to build it? Where should I build it? – user997112 Sep 23 '14 at 13:12
  • I don't actually use rpms. You'll need to locate the spec file they are using. Let me see if I can find it. If you want to hop into the unix.sx chat room it would be easier - chat.stackexchange.com/rooms/26/unix-and-linux – Faheem Mitha Sep 23 '14 at 13:13
  • If you do a clone of the source repos, the rpm spec file is at the top level. You'll then need to set things up to build correctly. I'd suggest asking directly in an llvm/clang forum. If you get no joy there, you can try asking here, but since the project certainly builds their own rpms, they know how to do so. You could also suggest to them that they make their source rpms publicly available. That would save people who want to rebuild a lot of work. – Faheem Mitha Sep 23 '14 at 14:34

Your Answer

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

Browse other questions tagged or ask your own question.