I am trying to install cling
in Ubuntu 12.04. I thought that the proper way was to download the binaries, as they are available here, but the extracted folder looks like this:
~/Desktop/cling » ls
bin docs include lib share
This requires, I think, to merge the directories content with some directories of my filesystem. I am not familiar with this method but it seems to me a bit dirty; how can I install it, upgrade it, delete it?
I was thinking about packaging it with a deb, but I never did one so I do not know if it is the correct way..
Is there a better way to install cling
?
Cling now provides binary snapshots for Ubuntu (as well as Fedora and OSX) which you can find here https://root.cern.ch/download/cling
For example if you are on ubuntu 16 (or newer?):
Ok, this is not a weekend project and apparently it needs too many stuff to be installed before operative. So, I haven't tested this myself, but is what the instructions says (+ some bits of Ubuntu):
Get the tools first, you need some other may be installed on your system, so to prevent this just:
Now, create a directory empty to do your experiment:
This step will take a while if you have slow connection (please use one line at time):
Now start the fun. If nothing of the above failed you can continue:
This will build LLVM, Clang and Cling. There should be a package maintainer that do this stuff for Debian/Ubuntu, I tip my hat off. This will have the Cling built, but not installed. You may want to use checkinstall instead of
sudo make install
.cling
is now packaged for GNU Guix and Guix can be installed on top of any GNU/Linux distribution such as Ubuntu.After you've gone through the binary installation of Guix as documented here: https://guix.gnu.org/manual/en/html_node/Binary-Installation.html, you can install
cling
via:And verify that it works with:
Hopefully that should save you some time compared to building Cling/LLVM from source.