\subsection*{Debian}

If you want to rebuild Elektra from Debian unstable or our repositories, add a {\ttfamily deb-\/src} entry to {\ttfamily /etc/apt/sources.list} and then run\+: \begin{DoxyVerb}    apt-get source -b elektra
\end{DoxyVerb}


To build Debian Packages from the source you might want to use\+: \begin{DoxyVerb}    dpkg-buildpackage -us -uc -sa
\end{DoxyVerb}


(You need to be in the Debian branch, see \hyperlink{doc_GIT_md}{G\+I\+T})

\subsection*{Generic}

First follow the steps in \hyperlink{doc_COMPILE_md}{C\+O\+M\+P\+I\+L\+E}.

To install Elektra use\+: \begin{DoxyVerb}    sudo make install
    sudo ldconfig  # See troubleshooting below
\end{DoxyVerb}


To uninstall Elektra use (will not be very clean, e.\+g. it will not remove directories and {\ttfamily $\ast$.pyc} files)\+: \begin{DoxyVerb}    sudo make uninstall
    sudo ldconfig
\end{DoxyVerb}


or in the build directory (will not honor D\+E\+S\+T\+D\+I\+R!)\+: \begin{DoxyVerb}    xargs rm < install_manifest.txt
\end{DoxyVerb}


\subsection*{C\+Pack}

First follow the steps in \hyperlink{doc_COMPILE_md}{C\+O\+M\+P\+I\+L\+E}.

Then use\+: \begin{DoxyVerb}    cpack
\end{DoxyVerb}


which should create a package for distributions where a Generator is implemented. See \href{/home/markus/Projekte/Elektra/current/cmake/ElektraPackaging.cmake}{\tt this cmake file} for available Generators and send a merge request for your system.

\subsection*{Troubleshooting}

\subsubsection*{error loading libraries}

If you encounter the problem that the library can not be found (output like this) \begin{DoxyVerb}    kdb: error while loading shared libraries: libelektra-core.so.4: cannot open shared object file: No such file or directory
\end{DoxyVerb}


or\+: \begin{DoxyVerb}    kdb: error while loading shared libraries: libelektratools.so.2: cannot open shared object file: No such file or directory
\end{DoxyVerb}


you need to place a configuration file at {\ttfamily /etc/ld.so.\+conf.\+d/} (e.\+g. {\ttfamily /etc/ld.so.\+conf.\+d/elektra.conf}).

Add the path where the library has been installed \begin{DoxyVerb}    /usr/lib/local/
\end{DoxyVerb}


and run {\ttfamily ldconfig} as root.

\subsection*{See also}


\begin{DoxyItemize}
\item \hyperlink{doc_COMPILE_md}{C\+O\+M\+P\+I\+L\+E}.
\item \hyperlink{doc_TESTING_md}{T\+E\+S\+T\+I\+N\+G}. 
\end{DoxyItemize}