Trouble compiling ROOT 6

Try (ROOT 6.06/06 with gcc 4.[89].x): [code]# install it into …
mkdir -p ${ROOT_INSTALL_DIR}

download, unpack and build it in /tmp

cd /tmp
rm -rf root-build root-6.06.06 root_v6.06.06.source.tar.gz*
tar -zxf root_v6.06.06.source.tar.gz
mkdir root-build
cd root-build
cmake -DCMAKE_INSTALL_PREFIX="${ROOT_INSTALL_DIR}" -Dall=“ON” -Dgeocad=“ON” -Dbuiltin_ftgl=“OFF” -Dbuiltin_glew=“OFF” -Dsoversion=“ON” …/root-6.06.06
cmake --build . --target install

final cleanup

cd …/
rm -rf root-build root-6.06.06 root_v6.06.06.source.tar.gz*[/code]
For ROOT 6.06/06 with gcc 5.x see: Memory leak in ROOT::Math::IntegratorMultiDim

Last, but not least … you will NOT be able to install ROOT 6, if your gcc compiler comes from the RedHat “Software Collections” / “Developer Toolset” (e.g. on Scientific Linux / CentOS 5, 6 and 7 platforms).

BTW. Before you begin, make sure that nothing in your setup points to any existing ROOT installation. In particular, on Ubuntu execute “sudo apt-get purge root-system* root-plugin* libroot*” and then check that the “/usr/lib/i386-linux-gnu/root5.34” and the “/usr/lib/x86_64-linux-gnu/root5.34” subdirectories disappeared completely.