Note: In the example commands listed in the instructions,
I. Special Instructions for Cygwin Users
The following instructions were tested under Windows 2000 Professional (32-bit) on an AMD64 as administrator for cygwin DLL version 1.5.19-4. For NT-based Windows (XP, 2000, ...), you must be an administrator (or power user) to install snark05, snark05Input & snark05Display.
Cygwin has to be installed in a specific manner in order for this to work. To begin that process, make sure that you have no remnants of cygwin on your system. Follow the instructions below to install the cygwin. In case you need it, additional help with installing and uninstalling cygwin is available at http://www.cygwin.com/faq/faq.setup.html.
NOTE: User names containing spaces or special characters create problems with cygwin. See http://www.cygwin.com/faq/faq.setup.html for instructions on how to fix this problem.
Download the cygwin setup package from http://www.cygwin.com. When you execute setup, you will be asked to select a mirror site to download the bulk of the cygwin environment. We have found that there are problems when downloading from some of the mirrors. At the time that this was written http://mirror.mcs.anl.gov has been found to be a reliable mirror.
NOTE: In case you see more then one version of the same product then download the latest stable version of that product.
- The "Root directory" to install cygwin should be "C:\cygwin" which is the default option.
- It is recommended to change the "Local Package directory" to a directory other than your desktop so as to avoid clutter on your desktop and it MUST be different from the "Root directory" mentioned above.
- During the interactive cygwin installation, in the "Select packages to install" stage, click the "View" button until the text to right of it says "Full" . "Curr" radio button should be selected at all times while selecting the packages.
- Once in full view,
- You MUST install : the defaults, gcc-g++, all qt* items, all xorg-x11-f* items, autoconf, automake and make. Choosing some of these packages automatically sets a few other things to be installed: LEAVE them selected.
- You MUST NOT install: any item with xerces in their name (e.g., libxerces-c*)
- Other packages are up to you and will not affect snark05 installation.
- You are also STRONGLY encouraged to install an editor such as emacs or vim in order to be able to edit text files such as "~/.bashrc" files easily. Other changes to the default configuration MIGHT break the installation.
After cygwin is successfully installed and started, it is recommended for you to run:
$ startx
and work only in the xterm that just pops up, including for purposes of editing ~/.bashrc file (referred in Section IV). But you MUST use startx to execute snark05Input and snark05Display.
WARNING:
If you had an older version of cygwin installed and reinstalled it following these instructions, you may receive the error message:
: command not found
when starting cygwin. This is because your .bashrc file is in the DOS format. The newer versions of cygwin require that the .bashrc be in the UNIX format. To fix the problem, immediately enter the command:
$ dos2unix .bashrc
then exit cygwin and start it again.
NOTE FOR ADMINISTRATORS:
In order to install snark05, snark05Input & snark05Display for all the users of the system you need to add the installation path to the .bashrc file of each user. See Section IV for details. Further the file '/tmp/XWin.log' a.k.a. 'C:\cygwin\tmp\XWin.log ' is created when a user starts a cygwin X session which should be deleted when the X session is closed. But it is not being deleted (may be due to a bug in cygwin) automatically. This file must be deleted manually some time after the last X session is closed in order to allow other users to start X session.
NOTE: In case of cygwin you can save the tarballs in the directory 'C:\cygwin\tmp'.
2. Once in the same directory as the downloaded package, you must
either untar or both untar and unzip the package, depending on which
file format you downloaded.
If you downloaded the uncompressed version (*.tar), then you can
extract SNARK05 simply by typing the following at the command prompt:
4.Continue with Building and Installing
(below).
Cygwin users
Run the commands:
NOTE: The "prefix" parameter is optional and is needed only if you want to change the default installation directory ('/usr/local/snark05').
Linux/Unix users
To build SNARK05 and install it in '/usr/local/snark05',
run the commands:
If a local installation is desired, run the commands:
If either variable contains the appropriate directories, it need not
be reset.)
The following describes how to set the variables PATH and
LD_LIBRARY_PATH to be carried out as non-superuser, for users of bash as well as csh. (NOTE: Users of cygwin
should be using bash
and not csh.) The default installation directories will be used in this
discussion, and should be replaced by the actual installation
directories if different.
csh
For csh users, the PATH and LD_LIBRARY_PATH variables are
space-separated lists of directories. Edit the ~/.cshrc file by appending the
following lines (if .cshrc does not exist in your home directory then
you will have to create it.):
NOTES:
For bash users
$ dos2unix ~/.bashrc
$ source ~/.bashrcFor csh users
$ source ~/.cshrc
Once the installation directories have been added to the system's PATH
and LD_LIBRARY_PATH variables, 'snark05', 'snark05Experimenter', 'snark05GetUserAlg', 'snark05GetExperimenter', and 'snark05GetExamples' can each be invoked from
anywhere in the system simply by typing at the command prompt:
As mentioned above, SNARK05 installation relies on the GNU version of the 'tar' archiving utility. To determine whether or not your computer's default 'tar' is the GNU version (as opposed to some native version), type the following at the command prompt:
$ tar --version
The output will indicate which version of 'tar' you are using. If it is indeed GNU 'tar', then it will give you output like the following:"tar (GNU tar) 1.13.25 Copyright © 2001 Free Software Foundation, Inc. ..."
If it is not the GNU version, it is still possible that your machine has the GNU version installed. For example, on some machines, GNU 'tar' can be found at '/usr/local/bin/tar', while native 'tar' is located at '/usr/bin/tar'. You may want to use your computer's search command ('locate', 'find', etc.) to find all installed 'tar' executables, and then invoke each one with the '--version' option (as illustrated above) to determine whether or not it is GNU.
If GNU 'tar' does not exist on your machine, then you can obtain it from http://www.gnu.org/software/tar/tar.html. Instructions for downloading and installing the utility can be found on that site.
It is possible that, during the SNARK05 installation process, you will need the GNU 'gzip'/'gunzip' utility. If this is the case, and if neither 'gzip' nor 'gunzip' seem to exist on your machine, then you can obtain them from http://www.gnu.org/software/gzip/gzip.html. Instructions for downloading and installing the utility can be found on that site.
For more information about SNARK05 and its installation, please
refer to the files README and INSTALL, both located in '/tmp/snark05' (in case you have
expanded the tarballs in some different location then you should look
at the appropriate place).