This tutorial demonstrates how to retrieve the data to use with the example codes of libnucnet. It assumes you are in a Linux or Unix environment. If you are using a different operating system, please adjust the following instructions as appropriate.
The simplest way to download the data needed to run the libnucnet examples is to use the Makefile. This, in turn, requires wget, a package for retrieving files using HTTP, HTTPS and FTP. To find out if you have wget properly installed on your system, type at the command line:
wget --version
If wget is properly installed, the command will return the version number of wget installed. If wget is not properly installed, the result of running wget --version will be the line wget: command not found. In this case, if you want to download the data with Make, you will need to install wget. Please see the blog post. If you choose not to install wget, or simply cannot, you can still download the data by hand.
After downloading libnucnet, go to the directory examples of the distribution. For example, if your current installation of libnucnet is in the directory ~/modules/libnucnet/0.9/, type
cd ~/modules/libnucnet/0.9/examples
Now you can retrieve the data from Sourceforge.net by typing
make data
This will download the data and place them in the ../data_pub directory. If you have already compiled the examples, you are now ready to run them.
To download the data by hand, go to your libnucnet installation of the distribution. For example, if your current installation of libnucnet is in the directory ~/modules/libnucnet/0.9/, type
cd ~/modules/libnucnet/0.9/
Now create a data_pub directory:
mkdir data_pub
Download the data.tar.gz tarball from Sourceforge.net and place it in the newly created data_pub directory. Now, in the data_pub/ directory, uncompress the data by typing
gunzip data.tar.gz
Next, extract the data by typing
tar xvf data.tar
Once this is done, the data are properly installed, if you have already compiled the examples, you are new ready to run them.
To remove the data and the data_pub directory, in the examples/ directory, type
make clean_data