# Installation on Cygwin

Note: Bsoft has not been tested extensively on Cygwin for a long time. It is very likely that it will not compile properly, and even if it does, it may not run properly.

Cygwin provides a virtual Linux environment running within Windows NT and is available from the following web site:

http://www.cygwin.com/

Bsoft can be installed within Cygwin in a fashion similar to Linux, but very little testing has been done and some or all of the Bsoft programs may run into problems. The Cygwin installation requires at a minimum certain packages used in Bsoft (it is best to install all packages from the Cygwin site to ensure that all tools are available):

- gcc compilers for C and C++
- X11
- Tcl/Tk

The installation is the same as for Unix in general (see Unix installation). The recommended location for Bsoft is in /usr/local. If you want to install Bsoft in a different location, change the environment variable BSOFT to point to the appropriate directory:

setenv BSOFT /usr/local/bsoft

OR

setenv BSOFT $OTHERPATH/bsoft

Copy the distribution file to the desired directory (e.g., /usr/local) and unpack it as follows (it will unpack into a directory named "bsoft"):

Unzip the distribution file and unpack the tar file:

gunzip bsoft1_6_0 .tgz

tar -xvf bsoft1_6_0 .tar

OR

Unpack the gzipped tar file directly:

tar -xzvf bsoft1_6_0 .tgz

All programs are compiled with the C-shell script "bmake" in the main bsoft directory (the -w option prevents display of warnings):

bmake

## Environment

During compilation the script bmake writes two small files called "bsoft.cshrc" and "bsoft.bashrc" with the required environmental variables. The following Bsoft-specific variables are required:

- BSOFT: The main environmental variable pointing to the Bsoft location (usually /usr/local/bsoft)
- BSOFT32: In cases where both 32 and 64 bit versions of Bsoft is required, this variable points to the 32 bit version directory (usually /usr/local/bsoft32)
- BPARAM: This variable points to a directory in the Bsoft tree that includes parameter files for molecular modeling and filter kernels.

The following general environmental variables need to be modified as well:

- PATH: This points to the executable files (usually /usr/local/bsoft/bin)
- LD_LIBRARY_PATH: This points to the directory with the shared libraries (usually /usr/local/bsoft/lib)

For the bash shell, add the following line to the end of the .bash_profile file:

source /usr/local/bsoft/bsoft.bashrc

For the csh or tcsh, add the following line to the end of the .cshrc or .tcshrc file:

source /usr/local/bsoft/bsoft.cshrc

The statements in the bsoft.* files can also be added directly to the resource files.