Installing clang on RHEL/CentOS and Ubuntu

On Fedora 24:

Clang has a link problem and does not work well on F24:
https://whatofhow.wordpress.com/2016/07/04/clang-in-fedora-24/

On RHEL and CentOS:

1) Install EPEL repository (read here on how to install it)

2) Install clang package:
$ sudo yum install clang

That should be it!

On Ubuntu 16.04:

1) Install clang packages:
$ sudo apt-get install clang libclang-dev

2) Create a symlink to libclang:
$ cd /usr/lib/[arch]-linux-gnu
$ sudo ln -s libclang-[version].so libclang.so

Example:
$ cd /usr/lib/powerpc64le-linux-gnu
or…
$ cd /usr/lib/x86_64-linux-gnu 

and then…
$ sudo ln -s libclang-3.8.so libclang.so

Cheers!

Advertisements

2 thoughts on “Installing clang on RHEL/CentOS and Ubuntu

  1. Alex

    You actually make it seem so easy with your presentation but I find this matter to be actually something which I feel I might never understand. It sort of feels too complex and extremely large for me. I’m having a look forward in your next submit, I will attempt to get the dangle of it!

    Like

    Reply
  2. Alex

    Nice weblog right here! Also your web site so much up very fast! What host are you the usage of? Can I get your affiliate link in your host? I want my web site loaded up as quickly as yours lol

    Like

    Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s