sh file, run it with /bin/sh and follow the directions. sh files are self extracting gziped tar files. The release was packaged with CPack which is included as part of the release. Source distributions: PlatformĬmake-3.28.Ĭmake-3.28. To build the source distributions, unpack them with zip or tar and follow the instructions in README.rst at the top of the source tree. This prefix can be removed as long as the share, bin, man and doc directories are moved relative to each other. For example, the linux-x86_64 tar file is all under the directory cmake–linux-x86_64. They are prefixed by the version of CMake. The tar file distributions can be untared in any directory. The files are compressed tar files of the install tree. The files are gziped tar files of the install tree. Open a new terminal, then type in the command “root” to see if it works.The release was packaged with CPack which is included as part of the release. go to the bottom and add the following:Įxport ROOTSYS=$HOME/Cern_Root/root-6.20.04/root-install/Įxport LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ROOTSYS/lib.However, if you want to be able to run root anywhere (at this moment, if you close the terminal, start a new one, it will not recognize the command root), you need to add some stuff onto your bash like follow: make -jN (where N is the number of cores your machine has, the more core you provide, the quicker this step will be)Īt this point, you should be able to start using root.cmake -DCMAKE_INSTALL_PREFIX=~/Cern_Root/root-6.20.04/root-install.You should now have a new directory inside of Cern_Root called root-6.20.04 cp Downloads/root_v6.20.04. Cern_Root/.Next, use the following commands to install it, starting from the $HOME directory: Go to and download the source file (root_v6.20.04.). Once that’s done, you can then start with installing root. However, if you need it (I think Geant4 uses it), then replace libqt4-dev with qt5-default You may encounter some problems with the libqt4-dev since ubuntu 20.04 doesn’t carry qt4 anymore. 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.sudo apt-get install git dpkg-dev cmake g++ gcc binutils libx11-dev libxpm-dev libxft-dev libxext-dev.Here’s the whole process that I went through to install root onto Ubuntu 20.04.įirst, download the prerequisite from for ubuntu. Just want to add onto what others have posted. Very soon we will have an even simpler method (download a b package and apt install b). I think the ones for Ubuntu 19 should just work. Note that we currently do not have pre-compiled binaries for Ubuntu 20.04. Whenever you want to have ROOT available in a terminal, you have to first give the command source path/to/unpacked/root/bin/thisroot.sh.download and unpack a pre-compiled binary (no need to compile anything, but make sure you download a “Binary distribution” and not the “Source distribution”).install all prerequisites for your platform.To summarize the essential steps, that they described nicely in detail above: The second easiest way, in my opinion, is what described. Whenever you want to have ROOT available in a terminal, you have to first give the command conda activate. $ bash Miniconda3-latest-Linux-x86_64.sh # and just follow the instructions on the terminal From the terminal: # first install conda (instructions at ) The easiest way is probably to install ROOT in a conda environment. Now every time you open a terminal just type “root” and it should run. Of course, change “myusername” and “root62004” in the paths above to whatever is your case. Then add this line at the end of your /home/myusername/.bashrc file: source /home/myusername/root62004/bin/thisroot.sh Which creates a folder called “root” (you can rename it, e.g. There’s no Ubuntu 20.04 yet but the one for “Ubuntu 19 gcc9.2” works (root_v6.20.04.Linux-ubuntu19-x86_64-gcc9.2.tar.gz).Įxtract everything inside, to any folder, e.g. 6.20/04įrom there, download the binary package for your Ubuntu and gcc versions. You can install them one by one or use the “sudo” command they provide (below the list) for the “Required packages” some will have been installed already with build-essential, so you may want to go one by one (also get the optional packages if you want, but not really needed, unless you know you need them).Īnd click on the latest Pro release. I start by installing the package “build-essential”: sudo apt install build-essentialĪnd install the “required” prerequisites they list (to be safe, even if you won’t be compiling root, as I show here).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |