<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://pct.wiki.uib.no/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Ral013</id>
	<title>pCT - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://pct.wiki.uib.no/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Ral013"/>
	<link rel="alternate" type="text/html" href="https://pct.wiki.uib.no/Special:Contributions/Ral013"/>
	<updated>2026-05-04T22:38:02Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.44.2</generator>
	<entry>
		<id>https://pct.wiki.uib.no/index.php?title=Building_ROOT&amp;diff=989</id>
		<title>Building ROOT</title>
		<link rel="alternate" type="text/html" href="https://pct.wiki.uib.no/index.php?title=Building_ROOT&amp;diff=989"/>
		<updated>2022-04-17T15:03:13Z</updated>

		<summary type="html">&lt;p&gt;Ral013: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Main Page]] -&amp;gt; [[Control &amp;amp; Readout Software Documentation and Howto&#039;s]] -&amp;gt; [[Building ROOT]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the pCT project we need to use a version of ROOT which is compiled with c++17 in order to build packages with ROOT dependencies with c++17 standard. . &lt;br /&gt;
&lt;br /&gt;
ROOT implements a custom adaptor to &amp;lt;code&amp;gt;std::string_view&amp;lt;/code&amp;gt; if not compiled with c++17 and this conflicts with the real one if a packages uses c++17 standard and ROOT libraries/includes.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo yum install git cmake gcc-c++ gcc binutils \&lt;br /&gt;
libX11-devel libXpm-devel libXft-devel libXext-devel \&lt;br /&gt;
gcc-gfortran openssl-devel pcre-devel \&lt;br /&gt;
mesa-libGL-devel mesa-libGLU-devel glew-devel ftgl-devel mysql-devel \&lt;br /&gt;
fftw-devel cfitsio-devel graphviz-devel \&lt;br /&gt;
avahi-compat-libdns_sd-devel libldap-dev python3-devel \&lt;br /&gt;
libxml2-devel gsl-static gsl-devel \&lt;br /&gt;
libAfterImage libAfterImage-devel \&lt;br /&gt;
centos-release-scl devtoolset-8&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
sudo python3 -m pip install numpy&lt;br /&gt;
&lt;br /&gt;
# clone the repository and select version&lt;br /&gt;
git clone http://github.com/root-project/root.git&lt;br /&gt;
cd root&lt;br /&gt;
git checkout v6-20-00-rc1&lt;br /&gt;
&lt;br /&gt;
# choose a build directory&lt;br /&gt;
mkdir build_root; cd build_root&lt;br /&gt;
&lt;br /&gt;
scl enable devtoolset-8 bash&lt;br /&gt;
&lt;br /&gt;
# configure: choose install target, on the lab machine we need to disable asimage for some reason&lt;br /&gt;
# the important flag is the C++ standard&lt;br /&gt;
cmake3 -DCMAKE_INSTALL_PREFIX=/opt/root -DCMAKE_CXX_STANDARD=17 -DPYTHON_EXECUTABLE=/usr/bin/python3 ../&lt;br /&gt;
&lt;br /&gt;
#build and install&lt;br /&gt;
sudo cmake3 --build . --target install -- -j4&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Remember to add root details to your environment, e.g. /etc/bashrc:&lt;br /&gt;
(LD_LIBRARY_PATH and PYTHONPATH must BOTH be set for pyroot to work)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
export ROOTSYS=/opt/root&lt;br /&gt;
source $ROOTSYS/bin/thisroot.sh&lt;br /&gt;
&lt;br /&gt;
export LD_LIBRARY_PATH=/opt/root/lib:$LD_LIBRARY_PATH&lt;br /&gt;
&lt;br /&gt;
export PYTHONPATH=/opt/root/lib:$PYTHONPATH&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installation for pCT-Online on Ubuntu systems ==&lt;br /&gt;
&lt;br /&gt;
Install  dependencies found here https://root.cern/install/dependencies/&lt;br /&gt;
&lt;br /&gt;
In a terminal move to the folder where you want to install ROOT.&lt;br /&gt;
&lt;br /&gt;
Follow these commands as root user(sudo):&lt;br /&gt;
&lt;br /&gt;
* git clone http://github.com/root-project/root.git&lt;br /&gt;
* cd root&lt;br /&gt;
* git checkout v6-20-00-rc1 (other releases might also work) IMPORTANT!&lt;br /&gt;
* cd ..&lt;br /&gt;
* mkdir build_root (root can not be built inside the source root folder!! The rest of the steps will assume the build_root folder is in the same directory as the source root folder)&lt;br /&gt;
* cd build_root&lt;br /&gt;
* cmake ../root -DCMAKE_CXX_STANDARD=17 -DPYTHON3_EXECUTABLE=/usr/bin/python3&lt;br /&gt;
* cmake --build . --target install -- -jN (N is the number of CPU cores available for building)&lt;br /&gt;
* Add this line to your .bashrc &amp;lt;source &amp;lt;path to build_root&amp;gt;/bin/thisroot.sh&amp;gt; (without &amp;quot;&amp;lt;&amp;quot; and &amp;quot;&amp;gt;&amp;quot;)&lt;/div&gt;</summary>
		<author><name>Ral013</name></author>
	</entry>
	<entry>
		<id>https://pct.wiki.uib.no/index.php?title=Building_ROOT&amp;diff=953</id>
		<title>Building ROOT</title>
		<link rel="alternate" type="text/html" href="https://pct.wiki.uib.no/index.php?title=Building_ROOT&amp;diff=953"/>
		<updated>2021-12-06T14:27:06Z</updated>

		<summary type="html">&lt;p&gt;Ral013: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Main Page]] -&amp;gt; [[Control &amp;amp; Readout Software Documentation and Howto&#039;s]] -&amp;gt; [[Building ROOT]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the pCT project we need to use a version of ROOT which is compiled with c++17 in order to build packages with ROOT dependencies with c++17 standard. . &lt;br /&gt;
&lt;br /&gt;
ROOT implements a custom adaptor to &amp;lt;code&amp;gt;std::string_view&amp;lt;/code&amp;gt; if not compiled with c++17 and this conflicts with the real one if a packages uses c++17 standard and ROOT libraries/includes.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo yum install git cmake gcc-c++ gcc binutils \&lt;br /&gt;
libX11-devel libXpm-devel libXft-devel libXext-devel \&lt;br /&gt;
gcc-gfortran openssl-devel pcre-devel \&lt;br /&gt;
mesa-libGL-devel mesa-libGLU-devel glew-devel ftgl-devel mysql-devel \&lt;br /&gt;
fftw-devel cfitsio-devel graphviz-devel \&lt;br /&gt;
avahi-compat-libdns_sd-devel libldap-dev python3-devel \&lt;br /&gt;
libxml2-devel gsl-static gsl-devel \&lt;br /&gt;
libAfterImage libAfterImage-devel \&lt;br /&gt;
centos-release-scl devtoolset-8&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
sudo python3 -m pip install numpy&lt;br /&gt;
&lt;br /&gt;
# clone the repository and select version&lt;br /&gt;
git clone http://github.com/root-project/root.git&lt;br /&gt;
cd root&lt;br /&gt;
git checkout v6-20-00-rc1&lt;br /&gt;
&lt;br /&gt;
# choose a build directory&lt;br /&gt;
mkdir build_root; cd build_root&lt;br /&gt;
&lt;br /&gt;
scl enable devtoolset-8 bash&lt;br /&gt;
&lt;br /&gt;
# configure: choose install target, on the lab machine we need to disable asimage for some reason&lt;br /&gt;
# the important flag is the C++ standard&lt;br /&gt;
cmake3 -DCMAKE_INSTALL_PREFIX=/opt/root -DCMAKE_CXX_STANDARD=17 -DPYTHON_EXECUTABLE=/usr/bin/python3 ../&lt;br /&gt;
&lt;br /&gt;
#build and install&lt;br /&gt;
sudo cmake3 --build . --target install -- -j4&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Remember to add root details to your environment, e.g. /etc/bashrc:&lt;br /&gt;
(LD_LIBRARY_PATH and PYTHONPATH must BOTH be set for pyroot to work)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
export ROOTSYS=/opt/root&lt;br /&gt;
source $ROOTSYS/bin/thisroot.sh&lt;br /&gt;
&lt;br /&gt;
export LD_LIBRARY_PATH=/opt/root/lib:$LD_LIBRARY_PATH&lt;br /&gt;
&lt;br /&gt;
export PYTHONPATH=/opt/root/lib:$PYTHONPATH&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installation for pCT-Online on Ubuntu systems ==&lt;br /&gt;
&lt;br /&gt;
Install  dependencies: sudo apt-get install dpkg-dev binutils libx11-dev libxpm-dev libxft-dev libxext-dev libpng-dev libjpeg-dev&lt;br /&gt;
&lt;br /&gt;
If you lack certain dependencies install everything listed in the above documentation before the &amp;quot;# clone the repository and select version&amp;quot; line. Disregard this if your installation works.&lt;br /&gt;
&lt;br /&gt;
In a terminal move to the folder where you want to install ROOT.&lt;br /&gt;
&lt;br /&gt;
Follow these commands as root user(sudo):&lt;br /&gt;
&lt;br /&gt;
* git clone http://github.com/root-project/root.git&lt;br /&gt;
* cd root&lt;br /&gt;
* git checkout v6-20-00-rc1 (other releases might also work) IMPORTANT!&lt;br /&gt;
* cd ..&lt;br /&gt;
* mkdir build_root (root can not be built inside the source root folder!! The rest of the steps will assume the build_root folder is in the same directory as the source root folder)&lt;br /&gt;
* cd build_root&lt;br /&gt;
* cmake ../root -DCMAKE_CXX_STANDARD=17 -DPYTHON3_EXECUTABLE=/usr/bin/python3&lt;br /&gt;
* cmake --build . --target install -- -jN (N is the number of CPU cores available for building)&lt;br /&gt;
* Add this line to your .bashrc &amp;lt;source &amp;lt;path to build_root&amp;gt;/bin/thisroot.sh&amp;gt; (without &amp;quot;&amp;lt;&amp;quot; and &amp;quot;&amp;gt;&amp;quot;)&lt;/div&gt;</summary>
		<author><name>Ral013</name></author>
	</entry>
	<entry>
		<id>https://pct.wiki.uib.no/index.php?title=Building_ROOT&amp;diff=950</id>
		<title>Building ROOT</title>
		<link rel="alternate" type="text/html" href="https://pct.wiki.uib.no/index.php?title=Building_ROOT&amp;diff=950"/>
		<updated>2021-08-16T18:30:50Z</updated>

		<summary type="html">&lt;p&gt;Ral013: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Main Page]] -&amp;gt; [[Control &amp;amp; Readout Software Documentation and Howto&#039;s]] -&amp;gt; [[Building ROOT]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the pCT project we need to use a version of ROOT which is compiled with c++17 in order to build packages with ROOT dependencies with c++17 standard. . &lt;br /&gt;
&lt;br /&gt;
ROOT implements a custom adaptor to &amp;lt;code&amp;gt;std::string_view&amp;lt;/code&amp;gt; if not compiled with c++17 and this conflicts with the real one if a packages uses c++17 standard and ROOT libraries/includes.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo yum install git cmake gcc-c++ gcc binutils \&lt;br /&gt;
libX11-devel libXpm-devel libXft-devel libXext-devel \&lt;br /&gt;
gcc-gfortran openssl-devel pcre-devel \&lt;br /&gt;
mesa-libGL-devel mesa-libGLU-devel glew-devel ftgl-devel mysql-devel \&lt;br /&gt;
fftw-devel cfitsio-devel graphviz-devel \&lt;br /&gt;
avahi-compat-libdns_sd-devel libldap-dev python3-devel \&lt;br /&gt;
libxml2-devel gsl-static gsl-devel \&lt;br /&gt;
libAfterImage libAfterImage-devel \&lt;br /&gt;
centos-release-scl devtoolset-8&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
sudo python3 -m pip install numpy&lt;br /&gt;
&lt;br /&gt;
# clone the repository and select version&lt;br /&gt;
git clone http://github.com/root-project/root.git&lt;br /&gt;
cd root&lt;br /&gt;
git checkout v6-20-00-rc1&lt;br /&gt;
&lt;br /&gt;
# choose a build directory&lt;br /&gt;
mkdir build_root; cd build_root&lt;br /&gt;
&lt;br /&gt;
scl enable devtoolset-8 bash&lt;br /&gt;
&lt;br /&gt;
# configure: choose install target, on the lab machine we need to disable asimage for some reason&lt;br /&gt;
# the important flag is the C++ standard&lt;br /&gt;
cmake3 -DCMAKE_INSTALL_PREFIX=/opt/root -DCMAKE_CXX_STANDARD=17 -DPYTHON_EXECUTABLE=/usr/bin/python3 ../&lt;br /&gt;
&lt;br /&gt;
#build and install&lt;br /&gt;
sudo cmake3 --build . --target install -- -j4&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Remember to add root details to your environment, e.g. /etc/bashrc:&lt;br /&gt;
(LD_LIBRARY_PATH and PYTHONPATH must BOTH be set for pyroot to work)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
export ROOTSYS=/opt/root&lt;br /&gt;
source $ROOTSYS/bin/thisroot.sh&lt;br /&gt;
&lt;br /&gt;
export LD_LIBRARY_PATH=/opt/root/lib:$LD_LIBRARY_PATH&lt;br /&gt;
&lt;br /&gt;
export PYTHONPATH=/opt/root/lib:$PYTHONPATH&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installation for pCT-Online on Ubuntu systems ==&lt;br /&gt;
&lt;br /&gt;
Install  dependencies: sudo apt-get install dpkg-dev binutils libx11-dev libxpm-dev libxft-dev libxext-dev libpng-dev libjpeg-dev&lt;br /&gt;
&lt;br /&gt;
If you lack certain dependencies install everything listed in the above documentation before the &amp;quot;# clone the repository and select version&amp;quot; line. Disregard this if your installation works.&lt;br /&gt;
&lt;br /&gt;
In a terminal move to the folder where you want to install ROOT.&lt;br /&gt;
&lt;br /&gt;
Follow these commands:&lt;br /&gt;
&lt;br /&gt;
* git clone http://github.com/root-project/root.git&lt;br /&gt;
* cd root&lt;br /&gt;
* git checkout v6-20-00-rc1 (other releases might also work) IMPORTANT!&lt;br /&gt;
* cd ..&lt;br /&gt;
* mkdir build_root (root can not be built inside the source root folder!! The rest of the steps will assume the build_root folder is in the same directory as the source root folder)&lt;br /&gt;
* cd build_root&lt;br /&gt;
* cmake ../root -DCMAKECXXSTANDARD=17 -DPYTHONEXECUTABLE=/usr/bin/python3&lt;br /&gt;
* make -jN (N is the number of CPU cores available for building, use N=4 if you don’t know)&lt;br /&gt;
* source bin/thisroot.sh&lt;/div&gt;</summary>
		<author><name>Ral013</name></author>
	</entry>
	<entry>
		<id>https://pct.wiki.uib.no/index.php?title=Building_ROOT&amp;diff=949</id>
		<title>Building ROOT</title>
		<link rel="alternate" type="text/html" href="https://pct.wiki.uib.no/index.php?title=Building_ROOT&amp;diff=949"/>
		<updated>2021-08-16T13:18:50Z</updated>

		<summary type="html">&lt;p&gt;Ral013: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Main Page]] -&amp;gt; [[Control &amp;amp; Readout Software Documentation and Howto&#039;s]] -&amp;gt; [[Building ROOT]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the pCT project we need to use a version of ROOT which is compiled with c++17 in order to build packages with ROOT dependencies with c++17 standard. . &lt;br /&gt;
&lt;br /&gt;
ROOT implements a custom adaptor to &amp;lt;code&amp;gt;std::string_view&amp;lt;/code&amp;gt; if not compiled with c++17 and this conflicts with the real one if a packages uses c++17 standard and ROOT libraries/includes.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo yum install git cmake gcc-c++ gcc binutils \&lt;br /&gt;
libX11-devel libXpm-devel libXft-devel libXext-devel \&lt;br /&gt;
gcc-gfortran openssl-devel pcre-devel \&lt;br /&gt;
mesa-libGL-devel mesa-libGLU-devel glew-devel ftgl-devel mysql-devel \&lt;br /&gt;
fftw-devel cfitsio-devel graphviz-devel \&lt;br /&gt;
avahi-compat-libdns_sd-devel libldap-dev python3-devel \&lt;br /&gt;
libxml2-devel gsl-static gsl-devel \&lt;br /&gt;
libAfterImage libAfterImage-devel \&lt;br /&gt;
centos-release-scl devtoolset-8&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
sudo python3 -m pip install numpy&lt;br /&gt;
&lt;br /&gt;
# clone the repository and select version&lt;br /&gt;
git clone http://github.com/root-project/root.git&lt;br /&gt;
cd root&lt;br /&gt;
git checkout v6-20-00-rc1&lt;br /&gt;
&lt;br /&gt;
# choose a build directory&lt;br /&gt;
mkdir build_root; cd build_root&lt;br /&gt;
&lt;br /&gt;
scl enable devtoolset-8 bash&lt;br /&gt;
&lt;br /&gt;
# configure: choose install target, on the lab machine we need to disable asimage for some reason&lt;br /&gt;
# the important flag is the C++ standard&lt;br /&gt;
cmake3 -DCMAKE_INSTALL_PREFIX=/opt/root -DCMAKE_CXX_STANDARD=17 -DPYTHON_EXECUTABLE=/usr/bin/python3 ../&lt;br /&gt;
&lt;br /&gt;
#build and install&lt;br /&gt;
sudo cmake3 --build . --target install -- -j4&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Remember to add root details to your environment, e.g. /etc/bashrc:&lt;br /&gt;
(LD_LIBRARY_PATH and PYTHONPATH must BOTH be set for pyroot to work)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
export ROOTSYS=/opt/root&lt;br /&gt;
source $ROOTSYS/bin/thisroot.sh&lt;br /&gt;
&lt;br /&gt;
export LD_LIBRARY_PATH=/opt/root/lib:$LD_LIBRARY_PATH&lt;br /&gt;
&lt;br /&gt;
export PYTHONPATH=/opt/root/lib:$PYTHONPATH&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installation for pCT-Online on Ubuntu systems ==&lt;br /&gt;
&lt;br /&gt;
Install  dependencies: sudo apt-get install dpkg-dev binutils libx11-dev libxpm-dev libxft-dev libxext-dev libpng-dev libjpeg-dev&lt;br /&gt;
&lt;br /&gt;
If you lack certain dependencies install everything listed in the above documentation before the &amp;quot;# clone the repository and select version&amp;quot; line. Disregard this if your installation works.&lt;br /&gt;
&lt;br /&gt;
In a terminal move to the folder where you want to install ROOT.&lt;br /&gt;
&lt;br /&gt;
Follow these commands:&lt;br /&gt;
&lt;br /&gt;
* git clone http://github.com/root-project/root.git&lt;br /&gt;
* cd root&lt;br /&gt;
* git checkout v6-20-00-rc1 (other releases might also work) IMPORTANT!&lt;br /&gt;
* cd ..&lt;br /&gt;
* mkdir build_root (root can not be built inside the source root folder!! The rest of the steps will assume the build_root folder is in the same directory as the source root folder)&lt;br /&gt;
* cd build_root&lt;br /&gt;
* cmake ../root -DCMAKECXXSTANDARD=17 -DPYTHONEXECUTABLE=/usr/bin/python3&lt;br /&gt;
* make -jN (N is the number of CPU cores available for building, use N=4 if you don’t know)&lt;br /&gt;
* source bin/thisroot.sh&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
OR&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
$ wget https://root.cern/download/root_v6.24.02.Linux-ubuntu20-x86_64-gcc9.3.tar.gz&lt;br /&gt;
$ tar -xzvf root_v6.24.02.Linux-ubuntu20-x86_64-gcc9.3.tar.gz&lt;br /&gt;
$ source root/bin/thisroot.sh # also available: thisroot.{csh,fish,bat}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Ral013</name></author>
	</entry>
	<entry>
		<id>https://pct.wiki.uib.no/index.php?title=Building_ROOT&amp;diff=948</id>
		<title>Building ROOT</title>
		<link rel="alternate" type="text/html" href="https://pct.wiki.uib.no/index.php?title=Building_ROOT&amp;diff=948"/>
		<updated>2021-08-16T10:23:32Z</updated>

		<summary type="html">&lt;p&gt;Ral013: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Main Page]] -&amp;gt; [[Control &amp;amp; Readout Software Documentation and Howto&#039;s]] -&amp;gt; [[Building ROOT]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the pCT project we need to use a version of ROOT which is compiled with c++17 in order to build packages with ROOT dependencies with c++17 standard. . &lt;br /&gt;
&lt;br /&gt;
ROOT implements a custom adaptor to &amp;lt;code&amp;gt;std::string_view&amp;lt;/code&amp;gt; if not compiled with c++17 and this conflicts with the real one if a packages uses c++17 standard and ROOT libraries/includes.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo yum install git cmake gcc-c++ gcc binutils \&lt;br /&gt;
libX11-devel libXpm-devel libXft-devel libXext-devel \&lt;br /&gt;
gcc-gfortran openssl-devel pcre-devel \&lt;br /&gt;
mesa-libGL-devel mesa-libGLU-devel glew-devel ftgl-devel mysql-devel \&lt;br /&gt;
fftw-devel cfitsio-devel graphviz-devel \&lt;br /&gt;
avahi-compat-libdns_sd-devel libldap-dev python3-devel \&lt;br /&gt;
libxml2-devel gsl-static gsl-devel \&lt;br /&gt;
libAfterImage libAfterImage-devel \&lt;br /&gt;
centos-release-scl devtoolset-8&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
sudo python3 -m pip install numpy&lt;br /&gt;
&lt;br /&gt;
# clone the repository and select version&lt;br /&gt;
git clone http://github.com/root-project/root.git&lt;br /&gt;
cd root&lt;br /&gt;
git checkout v6-20-00-rc1&lt;br /&gt;
&lt;br /&gt;
# choose a build directory&lt;br /&gt;
mkdir build_root; cd build_root&lt;br /&gt;
&lt;br /&gt;
scl enable devtoolset-8 bash&lt;br /&gt;
&lt;br /&gt;
# configure: choose install target, on the lab machine we need to disable asimage for some reason&lt;br /&gt;
# the important flag is the C++ standard&lt;br /&gt;
cmake3 -DCMAKE_INSTALL_PREFIX=/opt/root -DCMAKE_CXX_STANDARD=17 -DPYTHON_EXECUTABLE=/usr/bin/python3 ../&lt;br /&gt;
&lt;br /&gt;
#build and install&lt;br /&gt;
sudo cmake3 --build . --target install -- -j4&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Remember to add root details to your environment, e.g. /etc/bashrc:&lt;br /&gt;
(LD_LIBRARY_PATH and PYTHONPATH must BOTH be set for pyroot to work)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
export ROOTSYS=/opt/root&lt;br /&gt;
source $ROOTSYS/bin/thisroot.sh&lt;br /&gt;
&lt;br /&gt;
export LD_LIBRARY_PATH=/opt/root/lib:$LD_LIBRARY_PATH&lt;br /&gt;
&lt;br /&gt;
export PYTHONPATH=/opt/root/lib:$PYTHONPATH&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installation for pCT-Online on Ubuntu systems ==&lt;br /&gt;
&lt;br /&gt;
Install  dependencies: sudo apt-get install dpkg-dev binutils libx11-dev libxpm-dev libxft-dev libxext-dev libpng-dev libjpeg-dev&lt;br /&gt;
&lt;br /&gt;
If you lack certain dependencies install everything listed in the above documentation before the &amp;quot;# clone the repository and select version&amp;quot; line. Disregard this if your installation works.&lt;br /&gt;
&lt;br /&gt;
In a terminal move to the folder where you want to install ROOT.&lt;br /&gt;
&lt;br /&gt;
Follow these commands:&lt;br /&gt;
&lt;br /&gt;
* git clone http://github.com/root-project/root.git&lt;br /&gt;
* cd root&lt;br /&gt;
* git checkout v6-20-00-rc1 (other releases might also work) IMPORTANT!&lt;br /&gt;
* cd ..&lt;br /&gt;
* mkdir build_root (root can not be built inside the source root folder!! The rest of the steps will assume the build_root folder is in the same directory as the source root folder)&lt;br /&gt;
* cd build_root&lt;br /&gt;
* cmake .. -DCMAKECXXSTANDARD=17 -DPYTHONEXECUTABLE=/usr/bin/python3&lt;br /&gt;
* make -jN (N is the number of CPU cores available for building, use N=4 if you don’t know)&lt;br /&gt;
* source bin/thisroot.sh&lt;/div&gt;</summary>
		<author><name>Ral013</name></author>
	</entry>
	<entry>
		<id>https://pct.wiki.uib.no/index.php?title=Building_pct-online_software&amp;diff=941</id>
		<title>Building pct-online software</title>
		<link rel="alternate" type="text/html" href="https://pct.wiki.uib.no/index.php?title=Building_pct-online_software&amp;diff=941"/>
		<updated>2021-06-05T18:19:45Z</updated>

		<summary type="html">&lt;p&gt;Ral013: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;You need access to the project at https://git.app.uib.no/pct&lt;br /&gt;
&lt;br /&gt;
This is mainly a guide for how to install on a Ubuntu system, but could be used with other operating systems with minor to no changes.&lt;br /&gt;
&lt;br /&gt;
Requires devtoolset-7 or higher, gcc 7.3 or higher.&lt;br /&gt;
&lt;br /&gt;
The software requires a special installation of ROOT. The easiest way to install the correct version is to follow this guide https://wiki.uib.no/pct/index.php/Building_ROOT under Installation for pCT-Online on Ubuntu systems.&lt;br /&gt;
&lt;br /&gt;
Make sure you have installed all other requirements: https://wiki.uib.no/pct/img_auth.php/d/d5/Requirements.pdf&lt;br /&gt;
&lt;br /&gt;
If everything above was done properly the rest of the steps below should result in a working version of the pct-online software.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Using a terminal in the location where you want to install the pct-online software:&lt;br /&gt;
&lt;br /&gt;
• git clone &amp;lt;pct-online repository link&amp;gt; (Use clone with SSH)&lt;br /&gt;
&lt;br /&gt;
• cd pct-online&lt;br /&gt;
&lt;br /&gt;
• mkdir build&lt;br /&gt;
&lt;br /&gt;
• cd build&lt;br /&gt;
&lt;br /&gt;
• cmake ..&lt;br /&gt;
&lt;br /&gt;
• make&lt;/div&gt;</summary>
		<author><name>Ral013</name></author>
	</entry>
	<entry>
		<id>https://pct.wiki.uib.no/index.php?title=Building_pct-online_software&amp;diff=940</id>
		<title>Building pct-online software</title>
		<link rel="alternate" type="text/html" href="https://pct.wiki.uib.no/index.php?title=Building_pct-online_software&amp;diff=940"/>
		<updated>2021-06-05T18:16:28Z</updated>

		<summary type="html">&lt;p&gt;Ral013: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;You need access to the project at https://git.app.uib.no/pct&lt;br /&gt;
&lt;br /&gt;
This is mainly a guide for how to install on a Ubuntu system, but could be used with other operating systems with minor to no changes.&lt;br /&gt;
&lt;br /&gt;
Requires devtoolset-7 or higher, gcc 7.3 or higher.&lt;br /&gt;
&lt;br /&gt;
Make sure you have installed all requirements: https://wiki.uib.no/pct/img_auth.php/d/d5/Requirements.pdf&lt;br /&gt;
&lt;br /&gt;
The software requires a special installation of ROOT. The easiest way to install the correct version is to follow this guide https://wiki.uib.no/pct/index.php/Building_ROOT under Installation for pCT-Online on Ubuntu systems.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If everything above was done properly the rest of the steps below should result in a working version of the pct-online software.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Using a terminal in the location where you want to install the pct-online software:&lt;br /&gt;
&lt;br /&gt;
• git clone &amp;lt;pct-online repository link&amp;gt; (Use clone with SSH)&lt;br /&gt;
&lt;br /&gt;
• cd pct-online&lt;br /&gt;
&lt;br /&gt;
• mkdir build&lt;br /&gt;
&lt;br /&gt;
• cd build&lt;br /&gt;
&lt;br /&gt;
• cmake ..&lt;br /&gt;
&lt;br /&gt;
• make&lt;/div&gt;</summary>
		<author><name>Ral013</name></author>
	</entry>
	<entry>
		<id>https://pct.wiki.uib.no/index.php?title=Building_ROOT&amp;diff=939</id>
		<title>Building ROOT</title>
		<link rel="alternate" type="text/html" href="https://pct.wiki.uib.no/index.php?title=Building_ROOT&amp;diff=939"/>
		<updated>2021-06-05T18:14:10Z</updated>

		<summary type="html">&lt;p&gt;Ral013: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Main Page]] -&amp;gt; [[Control &amp;amp; Readout Software Documentation and Howto&#039;s]] -&amp;gt; [[Building ROOT]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the pCT project we need to use a version of ROOT which is compiled with c++17 in order to build packages with ROOT dependencies with c++17 standard. . &lt;br /&gt;
&lt;br /&gt;
ROOT implements a custom adaptor to &amp;lt;code&amp;gt;std::string_view&amp;lt;/code&amp;gt; if not compiled with c++17 and this conflicts with the real one if a packages uses c++17 standard and ROOT libraries/includes.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo yum install git cmake gcc-c++ gcc binutils \&lt;br /&gt;
libX11-devel libXpm-devel libXft-devel libXext-devel \&lt;br /&gt;
gcc-gfortran openssl-devel pcre-devel \&lt;br /&gt;
mesa-libGL-devel mesa-libGLU-devel glew-devel ftgl-devel mysql-devel \&lt;br /&gt;
fftw-devel cfitsio-devel graphviz-devel \&lt;br /&gt;
avahi-compat-libdns_sd-devel libldap-dev python-devel \&lt;br /&gt;
libxml2-devel gsl-static gsl-devel \&lt;br /&gt;
libAfterImage libAfterImage-devel \&lt;br /&gt;
centos-release-scl devtoolset-8&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
sudo python3 -m pip install numpy&lt;br /&gt;
&lt;br /&gt;
# clone the repository and select version&lt;br /&gt;
git clone http://github.com/root-project/root.git&lt;br /&gt;
cd root&lt;br /&gt;
git checkout v6-20-00-rc1&lt;br /&gt;
&lt;br /&gt;
# choose a build directory&lt;br /&gt;
mkdir build_root; cd build_root&lt;br /&gt;
&lt;br /&gt;
scl enable devtoolset-8 bash&lt;br /&gt;
&lt;br /&gt;
# configure: choose install target, on the lab machine we need to disable asimage for some reason&lt;br /&gt;
# the important flag is the C++ standard&lt;br /&gt;
cmake3 -DCMAKE_INSTALL_PREFIX=/opt/root -DCMAKE_CXX_STANDARD=17 -DPYTHON_EXECUTABLE=/usr/bin/python3 ../&lt;br /&gt;
&lt;br /&gt;
#build and install&lt;br /&gt;
sudo cmake3 --build . --target install -- -j4&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Remember to add root details to your environment, e.g. /etc/bashrc:&lt;br /&gt;
(LD_LIBRARY_PATH and PYTHONPATH must BOTH be set for pyroot to work)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
export ROOTSYS=/opt/root&lt;br /&gt;
source $ROOTSYS/bin/thisroot.sh&lt;br /&gt;
&lt;br /&gt;
export LD_LIBRARY_PATH=/opt/root/lib:$LD_LIBRARY_PATH&lt;br /&gt;
&lt;br /&gt;
export PYTHONPATH=/opt/root/lib:$PYTHONPATH&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installation for pCT-Online on Ubuntu systems ==&lt;br /&gt;
&lt;br /&gt;
Install  dependencies: sudo  apt-get  install  dpkg-dev  binutils  libx11-devlibxpm-dev libxft-dev libxext-dev libpng-dev libjpeg-dev&lt;br /&gt;
&lt;br /&gt;
If you lack certain dependencies install everything listed in the above documentation before the &amp;quot;# clone the repository and select version&amp;quot; line. Disregard this if your installation works.&lt;br /&gt;
&lt;br /&gt;
In a terminal move to the folder where you want to install ROOT.&lt;br /&gt;
&lt;br /&gt;
Follow these commands:&lt;br /&gt;
&lt;br /&gt;
* git clone http://github.com/root-project/root.git&lt;br /&gt;
* cd root&lt;br /&gt;
* git checkout v6-20-00-rc1 (other releases might also work) IMPORTANT!&lt;br /&gt;
* cd ..&lt;br /&gt;
* mkdir build_root (root can not be built inside the source root folder!! The rest of the steps will assume the build_root folder is in the same directory as the source root folder)&lt;br /&gt;
* cd build_root&lt;br /&gt;
* cmake .. -DCMAKECXXSTANDARD=17 -DPYTHONEXECUTABLE=/usr/bin/python3&lt;br /&gt;
* make -jN (N is the number of CPU cores available for building, use N=4 if you don’t know)&lt;br /&gt;
* source bin/thisroot.sh&lt;/div&gt;</summary>
		<author><name>Ral013</name></author>
	</entry>
	<entry>
		<id>https://pct.wiki.uib.no/index.php?title=Building_pct-online_software&amp;diff=938</id>
		<title>Building pct-online software</title>
		<link rel="alternate" type="text/html" href="https://pct.wiki.uib.no/index.php?title=Building_pct-online_software&amp;diff=938"/>
		<updated>2021-06-05T17:47:47Z</updated>

		<summary type="html">&lt;p&gt;Ral013: Created page with &amp;quot;You need access to the project at https://git.app.uib.no/pct  This is mainly a guide for how to install on a Ubuntu system, but could be used with other operating systems with...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;You need access to the project at https://git.app.uib.no/pct&lt;br /&gt;
&lt;br /&gt;
This is mainly a guide for how to install on a Ubuntu system, but could be used with other operating systems with minor to no changes.&lt;br /&gt;
&lt;br /&gt;
Requires devtoolset-7 or higher, gcc 7.3 or higher.&lt;br /&gt;
&lt;br /&gt;
Make sure you have installed all requirements: https://wiki.uib.no/pct/img_auth.php/d/d5/Requirements.pdf&lt;br /&gt;
&lt;br /&gt;
The software requires a special installation of ROOT. The easiest way to install the correct version is to follow this guide: https://wiki.uib.no/pct/index.php/Building_ROOT&lt;br /&gt;
&lt;br /&gt;
If everything above was done properly the rest of the steps below should result in a working version of the pct-online software.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Using a terminal in the location where you want to install the pct-online software:&lt;br /&gt;
&lt;br /&gt;
• git clone &amp;lt;pct-online repository link&amp;gt; (Use clone with SSH)&lt;br /&gt;
&lt;br /&gt;
• cd pct-online&lt;br /&gt;
&lt;br /&gt;
• mkdir build&lt;br /&gt;
&lt;br /&gt;
• cd build&lt;br /&gt;
&lt;br /&gt;
• cmake ..&lt;br /&gt;
&lt;br /&gt;
• make&lt;/div&gt;</summary>
		<author><name>Ral013</name></author>
	</entry>
</feed>