|(1)||Put garlic package (garlic.tar.gz) into some empty directory.|
Uncompress the package:
gzip -d garlic.tar.gz
tar xf garlic.tar
Check which C compiler is available on your system.
If you don't know how to find this information, try this:
man -k compiler
to obtain the list of available compilers.
If gcc (GNU C) compiler is not available on your system,
use your favorite editor to edit Makefile. Replace gcc in:
CC = gcc
line with the name of your compiler (this may be cc, for example).
If gcc is available on your system, do not change the CC line.
Find a directory which contains the Xlib library. Try this:
find . -name libX11\*
Check where is the file libX11.so (sharable library - prefered)
or libX11.a (static library - reserve option).
If your directory is different from /usr/X11R6/lib, modify the line:
LIBPATH = -L/usr/X11R6/lib
in Makefile. For example, if libX11.so is stored in /usr/shlib
directory on your system, the LIBPATH should be changed to:
LIBPATH = -L/usr/shlib
Compile the package - just type:
and wait some time.
If everything worked fine, copy the executable to a choosen directory.
/usr/local/bin may be a good choice. This job should be done by root
cp garlic /usr/local/bin
If you don't have root privileges, ask your local administrator to install
garlic, or just leave it in one of your directories.
Now the .garlicrc configuration file should be copyed to a directory
where it will be accessible to everyone as the public configuration
script. If this is not done, garlic will work anyway, using hard-coded
defaults. The recommended directory is /usr/local/lib/garlic
but if /usr/local/lib does not exist on your system, /usr/lib/garlic
may be used. This should be done by root (system administrator):
cp .garlicrc /usr/local/lib/garlic
It may be good idea to copy the configuration file to your home directory.
If you do this, you can personalize your garlic sessions, because your
private configuration file overrides the system-wide defaults.
Of course, you don't need root privileges for this:
cp .garlicrc $HOME
If you store structures in some reserved directores, you may add this
line into your .login, .tcshrc, .cshrc or some other startup file:
setenv MOL_PATH $HOME/directory1:$HOME/directory2
In this example, PDB files are kept in directory1 and directory2,
and both directories are subdirectories of your home directory.
Clean up the mess (sources and .o files). Be sure to leave
trp.pdb .pdb for later practice (this is the only PDB file
included in the original garlic package). Do not delete files
with extension .script (tutorial scripts).