Commit 4a6c05c7 authored by Steven Murray's avatar Steven Murray
Browse files

Improved instructions on how to build CTA

parent 780b63d8
No preview for this file type
...@@ -780,9 +780,10 @@ Create the \texttt{/eos} directory within the EOS namespace, map it to the EOS ...@@ -780,9 +780,10 @@ Create the \texttt{/eos} directory within the EOS namespace, map it to the EOS
\end{verbatim} \end{verbatim}
\section{Compile CTA} \section{Compile CTA}
Make sure yum is configured to see the repositories required by CTA buildi Make sure \texttt{yum} is configured to see the repositories that will provide
dependencies. If CTA is to be compiled on SLC6 then only the CTA command-line the packages required to build CTA. If CTA is to be compiled on SLC6 then only
tool will be built and this will only require the following epel repository configuration in order to be able to get the necessary xrootd-client-devel and cryptopp-devel packages: the CTA command-line tool will be built and this will only require the following
epel repository configuration:
\begin{verbatim} \begin{verbatim}
cat /etc/yum.repos.d/epel.repo cat /etc/yum.repos.d/epel.repo
[epel] [epel]
...@@ -834,8 +835,8 @@ enabled=0 ...@@ -834,8 +835,8 @@ enabled=0
protect=0 protect=0
\end{verbatim} \end{verbatim}
If CTA is to be built on CC7 then it will require the following repository If CTA is to be built on CC7 then it will require the following \texttt{epel}
configurations: and \texttt{ceph} repository configurations:
\begin{verbatim} \begin{verbatim}
cat /etc/yum.repos.d/epel.repo cat /etc/yum.repos.d/epel.repo
[epel] [epel]
...@@ -891,21 +892,21 @@ gitlab web page: ...@@ -891,21 +892,21 @@ gitlab web page:
https://gitlab.cern.ch/cta/CTA https://gitlab.cern.ch/cta/CTA
\end{verbatim} \end{verbatim}
You should copy the URL from this web page, however at the time this document You should copy the URL from this web page, however at the time this document
was written, the 3 possible URLS were: was written the 3 possible URLS were:
\begin{verbatim} \begin{verbatim}
HTTPS: https://gitlab.cern.ch/cta/CTA.git HTTPS: https://gitlab.cern.ch/cta/CTA.git
KRB5: https://:@gitlab.cern.ch:8443/cta/CTA.git KRB5: https://:@gitlab.cern.ch:8443/cta/CTA.git
SSH: ssh://git@gitlab.cern.ch:7999/cta/CTA.git SSH: ssh://git@gitlab.cern.ch:7999/cta/CTA.git
\end{verbatim} \end{verbatim}
Clone the CTA git repository (this example uses the KRB5 URL): Clone the \texttt{CTA} git repository (this example uses the KRB5 URL):
\begin{verbatim} \begin{verbatim}
git clone https://:@gitlab.cern.ch:8443/cta/CTA.git git clone https://:@gitlab.cern.ch:8443/cta/CTA.git
\end{verbatim} \end{verbatim}
This will create a directory called CTA. This will create a directory called \texttt{CTA}.
Create a build directory at the same level as the CTA directory, that is to say, Create a build directory at the same level as the \texttt{CTA} directory or
create a build directory that is not inside of the CTA repostory directory: anywhere accept inside of the \texttt{CTA} directory:
\begin{verbatim} \begin{verbatim}
mkdir CTA_build mkdir CTA_build
\end{verbatim} \end{verbatim}
...@@ -915,11 +916,11 @@ commands in order to produce the source RPM of the CTA project: ...@@ -915,11 +916,11 @@ commands in order to produce the source RPM of the CTA project:
\begin{verbatim} \begin{verbatim}
cd CTA_build cd CTA_build
cmake -DPackageOnly:Bool=true ../CTA cmake -DPackageOnly:Bool=true ../CTA
make make cta_srpm
\end{verbatim} \end{verbatim}
Use \texttt{yum-builddep} to install all of the RPMs that CTA depends on in Use \texttt{yum-builddep} to install all of the packages required to build the
order to be built: rest of CTA:
\begin{verbatim} \begin{verbatim}
sudo yum-builddep RPM/SRPMS/cta-0-0.src.rpm sudo yum-builddep RPM/SRPMS/cta-0-0.src.rpm
\end{verbatim} \end{verbatim}
...@@ -931,13 +932,13 @@ rm -rf CTA_build ...@@ -931,13 +932,13 @@ rm -rf CTA_build
mkdir CTA_build mkdir CTA_build
\end{verbatim} \end{verbatim}
Go into the newly re-created \texttt{CTA\_build} directory and run \texttt{cmake} Go into the newly re-created \texttt{CTA\_build} directory and run \texttt{cmake}
to preapre to make all of the CTA project and not just the source rpm: to prepare to make all of the CTA project and not just the source rpm:
\begin{verbatim} \begin{verbatim}
cd CTA_build cd CTA_build
cmake ../CTA cmake ../CTA
\end{verbatim} \end{verbatim}
Build CTA by running \texttt{make} twice in the texttt{CTA\_build} directory. Build CTA by running \texttt{make} twice in the \texttt{CTA\_build} directory.
\begin{verbatim} \begin{verbatim}
make make
make make
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment