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
svn co https://root.cern.ch/svn/root/trunk src mkdir obj cd obj ../src/configure make -j4and you will get a preview of ROOT 6: ROOT using cling!