~ubuntu-branches/ubuntu/breezy/garlic/breezy

« back to all changes in this revision

Viewing changes to INSTALL

  • Committer: Bazaar Package Importer
  • Author(s): zhaoway
  • Date: 2001-04-24 07:09:13 UTC
  • Revision ID: james.westby@ubuntu.com-20010424070913-uzpupnwdfhmliebz
Tags: upstream-1.1
ImportĀ upstreamĀ versionĀ 1.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
                            Garlic Installation
 
2
 
 
3
----------------------------------------------------------------------------
 
4
garlic, free molecular visualization program, protein structure, DNA
 
5
structure, PDB, molecular rendering, biological macromolecule, unix, linux,
 
6
free software download, open source software, Damir Zucic.
 
7
----------------------------------------------------------------------------
 
8
Garlic is the most portable molecular visualization program in the unix
 
9
world, because the only libraries required by this program are the standard
 
10
C library (libc), the standard math library (libm) and the standard X
 
11
library (libX11). All other molecular visualization programs require some
 
12
additional libraries.
 
13
 
 
14
Before starting the installation, you might be interested to check the
 
15
technical requirements . Most contemporary unix and unix-like systems (like
 
16
linux) meet these requirements without need to change the configuration, so
 
17
you can skip this text if you are impatient.
 
18
 
 
19
To compile and install garlic, follow these instructions:
 
20
 
 
21
  (1)  Put garlic package (garlic-1.1.tar.gz) into some empty directory.
 
22
       Uncompress and unpack the package:
 
23
  (2)  gzip -d garlic-1.1.tar.gz
 
24
       tar xf garlic-1.1.tar
 
25
  (3)  Change your working directory:
 
26
       cd garlic-1.1
 
27
       Check which C compiler is available on your system.
 
28
  (4)  If you don't know how to find this information, try this:
 
29
       man -k compiler
 
30
       to obtain the list of available compilers.
 
31
       If gcc (GNU C) compiler is not available on your system,
 
32
       use your favorite editor to edit Makefile. Replace gcc in:
 
33
  (5)  CC = gcc
 
34
       line with the name of your compiler (this may be cc, for example).
 
35
       If gcc is available on your system, do not change the CC line.
 
36
       Find a directory which contains the Xlib library. Try this:
 
37
       cd /
 
38
       find . -name libX11\*
 
39
       Check where is the file libX11.so (sharable library - prefered)
 
40
       or libX11.a (static library - reserve option).
 
41
  (6)  If your directory is different from /usr/X11R6/lib, modify the line:
 
42
 
 
43
       LIBPATH = -L/usr/X11R6/lib
 
44
       in Makefile. For example, if libX11.so is stored in /usr/shlib
 
45
       directory on your system, the LIBPATH should be changed to:
 
46
       LIBPATH = -L/usr/shlib
 
47
       Compile the package - just type:
 
48
  (7)  make
 
49
       and wait some time.
 
50
       If everything worked fine, copy the executable to a choosen
 
51
       directory.
 
52
       /usr/local/bin may be a good choice. This job should be done by root
 
53
 
 
54
  (8)  (system administrator):
 
55
       cp garlic /usr/local/bin
 
56
       If you don't have root privileges, ask your local administrator to
 
57
       install
 
58
       garlic, or just leave it in one of your directories.
 
59
       Now the .garlicrc configuration file should be copyed to a directory
 
60
 
 
61
       where it will be accessible to everyone as the public configuration
 
62
       script. If this is not done, garlic will work anyway, using
 
63
       hard-coded
 
64
  (9)  defaults. The recommended directory is /usr/local/lib/garlic
 
65
       but if /usr/local/lib does not exist on your system, /usr/lib/garlic
 
66
 
 
67
       may be used. This should be done by root (system administrator):
 
68
       mkdir /usr/local/lib/garlic
 
69
       cp .garlicrc /usr/local/lib/garlic
 
70
       It may be good idea to copy the configuration file to your home
 
71
       directory.
 
72
       If you do this, you can personalize your garlic sessions, because
 
73
 (10)  your
 
74
       private configuration file overrides the system-wide defaults.
 
75
       Of course, you don't need root privileges for this:
 
76
       cp .garlicrc $HOME
 
77
       It is recommended to set the environment variable MOL_PATH, so
 
78
       garlic
 
79
 (11)  will search all directories listed in this variable to find the
 
80
       specified
 
81
       file. Click here for detailed instructions.
 
82
       Clean up the mess (sources and .o files). Be sure to leave
 
83
 (12)  trp.pdb for later practice (this is the only PDB file
 
84
       included in the original garlic package). Do not delete files
 
85
       with extension .script (tutorial scripts).
 
86
 
 
87
If garlic refuses to work because it fails to get the TrueColor visual,
 
88
try to execute xdpyinfo and xwininfo (click into root window);
 
89
check the list of supported visuals and the current color depth.
 
90
Choose the color depth for which the TrueColor visual is available!
 
91
 
 
92
Protein and DNA coordinates may be found at The Protein Data Bank .
 
93
 
 
94
If you can't compile, install or run garlic, write to me (Damir Zucic),
 
95
my address is zucic@pref.etfos.hr .
 
96
------------------------------------------------------------------------
 
97