- What's New
Cling Build Instructions
Binary releases of cling
You can find our nightly binary snapshots here
Building from source
Follow the procedure at the clang web page to check out the trunk of LLVM and clang from their subversion repositories. Check out the cling-compatible revision of clang and llvm, which can be found here . Check out cling right next to clang, i.e. into the tools/ subdirectory. Get it from here:
cd tools/clang/.. # i.e. next to clang git clone http://root.cern.ch/git/cling.git cd .. cat tools/cling/patches/*.diff | patch -p0Now follow the clang web page again for ./configure; make-based build instructions. You must specify --enable-targets=host to configure! And don't forget to make install. You will get a binary called cling: that's your interactive C++ interpreter!
Building ROOT6: cling as part of ROOT
Cling, llvm and clang are part of the trunk of ROOT. Simply run
git clone https://root.cern.ch/git/root.git src mkdir obj cd obj ../src/configure make -j4and you will get a preview of ROOT 6: ROOT using cling!