diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/gnunet-c-tutorial.tex | 27 |
1 files changed, 10 insertions, 17 deletions
diff --git a/doc/gnunet-c-tutorial.tex b/doc/gnunet-c-tutorial.tex index 1142630cc..ceb4344e1 100644 --- a/doc/gnunet-c-tutorial.tex +++ b/doc/gnunet-c-tutorial.tex | |||
@@ -146,27 +146,20 @@ to enable verbose logging by adding | |||
146 | 146 | ||
147 | \lstset{language=bash} | 147 | \lstset{language=bash} |
148 | \begin{lstlisting} | 148 | \begin{lstlisting} |
149 | $ ./configure --prefix=$HOME --enable-logging | 149 | $ ./configure --prefix=$PREFIX --enable-logging |
150 | $ make | 150 | $ make |
151 | $ make install | 151 | $ make install |
152 | \end{lstlisting} | 152 | \end{lstlisting} |
153 | 153 | ||
154 | After installing GNUnet you have to set the \lstinline|GNUNET_PREFIX| | 154 | After installing GNUnet you have to add your GNUnet installation to your path |
155 | environmental variable used by GNUnet to detect it's installation | 155 | environmental variable. In addition you have to create the \lstinline|.gnunet| |
156 | directory and add your GNUnet installation to your path environmental | 156 | directory in your home directory where GNUnet stores it's data and an empty |
157 | variable. This configuration is only valid for the current shell | 157 | GNUnet configuration file: |
158 | session, so you should add \lstinline|export GNUNET_PREFIX=$HOME| to | ||
159 | your \lstinline|.bash_rc| or \lstinline|.profile| to be sure the | ||
160 | environment variable is always set. In addition you have to create the | ||
161 | \lstinline|.gnunet| directory in your home directory where GNUnet | ||
162 | stores it's data and an empty GNUnet configuration file: | ||
163 | 158 | ||
164 | \lstset{language=bash} | 159 | \lstset{language=bash} |
165 | \begin{lstlisting} | 160 | \begin{lstlisting} |
166 | $ export GNUNET_PREFIX=$HOME | 161 | $ export PATH=$PATH:$PREFIX/bin |
167 | $ export PATH=$PATH:$GNUNET_PREFIX/bin | 162 | $ echo export PATH=$PREFIX/bin:\textbackslash$PATH >> ~/.bashrc |
168 | $ echo export GNUNET_PREFIX=$HOME >> ~/.bashrc | ||
169 | $ echo export PATH=$GNUNET_PREFIX/bin:$PATH >> ~/.bashrc | ||
170 | $ mkdir ~/.gnunet/ | 163 | $ mkdir ~/.gnunet/ |
171 | $ touch ~/.gnunet/gnunet.conf | 164 | $ touch ~/.gnunet/gnunet.conf |
172 | \end{lstlisting} | 165 | \end{lstlisting} |
@@ -179,7 +172,7 @@ binaries and run GNUnet's self check. | |||
179 | \begin{lstlisting} | 172 | \begin{lstlisting} |
180 | $ which gnunet-arm | 173 | $ which gnunet-arm |
181 | \end{lstlisting} | 174 | \end{lstlisting} |
182 | should return \lstinline|$GNUNET_PREFIX/bin/gnunet-arm|. It should be | 175 | should return \lstinline|$PREFIX/bin/gnunet-arm|. It should be |
183 | located in your GNUnet installation and the output should not be | 176 | located in your GNUnet installation and the output should not be |
184 | empty. If you see an output like: | 177 | empty. If you see an output like: |
185 | \begin{lstlisting} | 178 | \begin{lstlisting} |
@@ -336,7 +329,7 @@ configuration file: | |||
336 | % | 329 | % |
337 | \lstset{language=bash} | 330 | \lstset{language=bash} |
338 | \begin{lstlisting} | 331 | \begin{lstlisting} |
339 | $ cat $GNUNET_PREFIX/share/gnunet/config.d/*.conf > peer2.conf | 332 | $ cat $PREFIX/share/gnunet/config.d/*.conf > peer2.conf |
340 | \end{lstlisting} | 333 | \end{lstlisting} |
341 | Now you have to edit {\tt peer2.conf} and change: | 334 | Now you have to edit {\tt peer2.conf} and change: |
342 | \begin{itemize} | 335 | \begin{itemize} |
@@ -515,7 +508,7 @@ obtained as follows: | |||
515 | $ svn checkout https://gnunet.org/svn/gnunet-ext/ | 508 | $ svn checkout https://gnunet.org/svn/gnunet-ext/ |
516 | $ cd gnunet-ext/ | 509 | $ cd gnunet-ext/ |
517 | $ ./bootstrap | 510 | $ ./bootstrap |
518 | $ ./configure --prefix=$HOME --with-gnunet=$GNUNET_PREFIX | 511 | $ ./configure --prefix=$PREFIX --with-gnunet=$PREFIX |
519 | $ make | 512 | $ make |
520 | $ make install | 513 | $ make install |
521 | $ make check | 514 | $ make check |