next up previous contents index
Next: Overview Up: Quick start Previous: Quick start


Linux and UNIX

If you have obtained the source code distribution of libSRES, then at your Linux or UNIX command prompt, unpack the distribution,
\begin{programsc}*
\index{libSRES!Unpack}
tar xzvf libSRES.tgz
\end{programsc}

cd into the directory created as a result (e.g., libSRES/), and change settings in "Makefile" according to your system (see Figure 3).

Figure 3: Change "Makefile" of libSRES

\begin{programsc}*
$\cdots$CC = gcc\qquad\qquad$\leftarrow$\ \emph{change here}
...
...r/local/lib\qquad\qquad$\leftarrow$\ \emph{change here}
$\cdots$ \end{programsc}

Next, compile the libSRES library using the following command:
\begin{programsc}*
\index{libSRES!Compile}
make
\end{programsc}

The library will be put in sub-directory "lib" with file name "libsres.a". And then cd into the sub-directory "example" to compile the examples using the following command:
\begin{programsc}*
\index{libSRES!Compile example}
make
\end{programsc}

Note that you may also have to change some settings in this "Makefile" for example programs. Finally, you may test the examples using command like this:
\begin{programsc}*
\index{libSRES!Run example}
cd example
./ex1
\end{programsc}

It will print output on screen. These will be described in detail in the following sections. There are thirteen example programs in total, just as those describe in Runarsson and Yao's work $^{\mbox{\scriptsize\citep{SRES2000,SRES2005}}}$.


next up previous contents index
Next: Overview Up: Quick start Previous: Quick start
Xinglai Ji
2005-06-29