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
\end{verbatim}
\section{Compile CTA}
Make sure yum is configured to see the repositories required by CTA buildi
dependencies. If CTA is to be compiled on SLC6 then only the CTA command-line
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:
Make sure \texttt{yum} is configured to see the repositories that will provide
the packages required to build CTA. If CTA is to be compiled on SLC6 then only
the CTA command-line tool will be built and this will only require the following
epel repository configuration:
\begin{verbatim}
cat /etc/yum.repos.d/epel.repo
[epel]
......@@ -834,8 +835,8 @@ enabled=0
protect=0
\end{verbatim}
If CTA is to be built on CC7 then it will require the following repository
configurations:
If CTA is to be built on CC7 then it will require the following \texttt{epel}
and \texttt{ceph} repository configurations:
\begin{verbatim}
cat /etc/yum.repos.d/epel.repo
[epel]
......@@ -891,21 +892,21 @@ gitlab web page:
https://gitlab.cern.ch/cta/CTA
\end{verbatim}
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}
HTTPS: https://gitlab.cern.ch/cta/CTA.git
KRB5: https://:@gitlab.cern.ch:8443/cta/CTA.git
SSH: ssh://git@gitlab.cern.ch:7999/cta/CTA.git
\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}
git clone https://:@gitlab.cern.ch:8443/cta/CTA.git
\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 that is not inside of the CTA repostory directory:
Create a build directory at the same level as the \texttt{CTA} directory or
anywhere accept inside of the \texttt{CTA} directory:
\begin{verbatim}
mkdir CTA_build
\end{verbatim}
......@@ -915,11 +916,11 @@ commands in order to produce the source RPM of the CTA project:
\begin{verbatim}
cd CTA_build
cmake -DPackageOnly:Bool=true ../CTA
make
make cta_srpm
\end{verbatim}
Use \texttt{yum-builddep} to install all of the RPMs that CTA depends on in
order to be built:
Use \texttt{yum-builddep} to install all of the packages required to build the
rest of CTA:
\begin{verbatim}
sudo yum-builddep RPM/SRPMS/cta-0-0.src.rpm
\end{verbatim}
......@@ -931,13 +932,13 @@ rm -rf CTA_build
mkdir CTA_build
\end{verbatim}
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}
cd CTA_build
cmake ../CTA
\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}
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