下載root_v5.34.36.source.tar.gz
$ mkdir -p ~/local/root_v5.34.36/build
$ cd ~/local/root_v5.34.36
$ tar zxvf ~/Downloads/root_v5.34.36.source.tar.gz
$ cd build
$ cmake -DCMAKE_INSTALL_PREFIX=~/local/root_v5.34.36/install ~/local/root_v5.34.36/root
$ time make -j4 | tee my_makelog
$ make install
$ echo '#' >> ~/.bash_profile
$ echo '# ROOT initilization' >> ~/.bash_profile
$ echo 'source ~/local/root_v5.34.36/install/bin/thisroot.sh' >> ~/.bash_profile
打開.bash_profile
$ open ~/.bash_profile
加入 export PYTHONPATH=$ROOTSYS/lib:$PYTHONPATH