root_v6.08.00发布页:https://root.cern.ch/content/release-60800
1、准备安装环境,执行以下命令
sudo apt-get install git dpkg-dev cmake g++ gcc binutils libx11-dev libxpm-dev \
libxft-dev libxext-dev
sudo apt-get install gfortran libssl-dev libpcre3-dev \
xlibmesa-glu-dev libglew1.5-dev libftgl-dev \
libmysqlclient-dev libfftw3-dev libcfitsio-dev \
graphviz-dev libavahi-compat-libdnssd-dev \
libldap2-dev python-dev libxml2-dev libkrb5-dev \
libgsl0-dev libqt4-dev
(如果复制命令产生错误,请到地址复制:http://root.cern.ch/drupal/content/build-prerequisites)
2、把下载好的root随意放到一个文件夹解压文件,并进入该文件夹(此处为我的文件夹路径)执行以下命令
cd /home/cgx/软件/root-6.08.00
./configure
make -j4
3、进入root文件夹,找到bin文件夹,进入,里面有个thisroot.sh (我是用bash) ,记下它的路径,我的是/home/cgx/软件/root-6.08.00/bin/thisroot.sh,
执行以下命令
cd
gedit .bashrc
(在打开的文档里粘贴 source /home/cgx/软件/root-6.08.00/bin/thisroot.sh,保存退出)