Debian Codegraph @

install/index.html

raw
1 <html>
2
3 <head>
4 <title>
5 Garlic Installation
6 </title>
7 </head>
8
9 <h1 align=center>
10
11 Garlic Installation
12
13 </h1>
14
15 <hr size="3">
16
17 <font size="-1" color="red">
18 garlic,
19 free molecular viewer and editor,
20 free molecular visualization program,
21 protein structure, DNA structure, PDB,
22 molecular rendering, biological macromolecule,
23 Unix, Linux, free software download, open source software,
24 Damir Zucic.
25 </font>
26
27 <hr size="3">
28
29 <b>
30 <font color="red">
31 Package maintainers, please read
32 </font>
33 <a href="../config/important_files.html">
34 this text
35 </a>
36 <font color="red">
37 first!
38 </font>
39 </b>
40
41 <hr size="3">
42
43 Garlic is the most portable molecular viewer/editor in the Unix world,
44 because the only libraries required by this program are the standard C library
45 (libc), the standard math library (libm) and the standard X library (libX11).
46 All other molecular visualization programs require some additional libraries.
47 <br><br>
48
49 Before starting the installation, you might be interested to check the
50 <a href="../techinfo/index.html">
51 technical requirements
52 </a>
53 . Most contemporary Unix and Unix-like systems (like Linux) meet these
54 requirements without need to change the configuration, so you can skip this
55 text if you are impatient.
56 <br><br>
57
58 If you have Apple McIntosh running Xtools from Tenon, please read
59 <a href="macosx.html">
60 these hints
61 </a>
62 , contributed by Chris from Macinchem.
63 <br><br>
64
65 To compile and install garlic, follow these instructions:
66 <br><br>
67
68
69 <table border=2 cellspacing=2 cellpading=0>
70
71 <td align="center">
72
73 (1)
74
75 </td>
76
77 <td align="left">
78
79 Put garlic package (garlic-1.6.tar.gz) into some empty directory.
80
81 </td>
82
83 <tr>
84
85 <td align="center">
86
87 (2)
88
89 </td>
90
91 <td align="left">
92
93 Uncompress and unpack the package:
94 <br>
95
96 <font color="red">
97
98 gzip -d garlic-1.6.tar.gz
99 <br>
100 tar xf garlic-1.6.tar
101
102 </font>
103
104 <tr>
105
106 <td align="right">
107
108 (3)
109
110 </td>
111
112 <td align="left">
113
114 Change your working directory:
115 <br>
116
117
118 <font color="red">
119
120 cd garlic-1.6
121
122 </font>
123
124 <tr>
125
126 <td align="right">
127
128 (4)
129
130 </td>
131
132 <td align="left">
133
134 Check which C compiler is available on your system.
135 <br>
136 If you don't know how to find this information, try this:
137 <br>
138
139
140 <font color="red">
141
142 man -k compiler
143 <br>
144
145 </font>
146
147
148 to obtain the list of available compilers.
149
150
151 <tr>
152
153 <td align="right">
154
155 (5)
156
157 </td>
158
159 <td align="left">
160
161 If gcc (GNU C) compiler is not available on your system,
162 <br>
163 use your favorite editor to edit Makefile. Replace gcc in:
164 <br>
165
166
167 <font color=MAGENTA>
168
169 CC = gcc
170 <br>
171
172 </font>
173
174
175 line with the name of your compiler (this may be cc, for example).
176 <br>
177 If gcc is available on your system, do not change the CC line.
178
179
180 <tr>
181
182 <td align="right">
183
184 (6)
185
186 </td>
187
188 <td align="left">
189
190 Find a directory which contains the Xlib library. Try this:
191 <br>
192
193
194 <font color="red">
195
196 cd /
197 <br>
198 find . -name libX11\*
199 <br>
200
201 </font>
202
203
204 Check where is the file libX11.so (sharable library - prefered)
205 <br>
206 or libX11.a (static library - reserve option).
207 <br>
208 If your directory is different from /usr/X11R6/lib, modify the line:
209 <br>
210
211
212 <font color=MAGENTA>
213
214 LIBPATH = -L/usr/X11R6/lib
215 <br>
216
217 </font>
218
219
220 in Makefile. For example, if libX11.so is stored in /usr/shlib
221 <br>
222 directory on your system, the LIBPATH should be changed to:
223 <br>
224 LIBPATH = -L/usr/shlib
225
226
227 <tr>
228
229 <td align="right">
230
231 (7)
232
233 </td>
234
235 <td align="left">
236
237 Compile the package - just type:
238 <br>
239
240
241 <font color="red">
242
243 make
244 <br>
245
246 </font>
247
248
249 and wait, it will take some time.
250
251
252 <tr>
253
254 <td align="right">
255
256 (8)
257
258 </td>
259
260 <td align="left">
261
262 If everything worked fine, copy the executable to a choosen directory.
263 <br>
264 /usr/local/bin may be a good choice. This job should be done by root
265 <br>
266 (system administrator):
267 <br>
268
269
270 <font color="red">
271
272 cp garlic /usr/local/bin
273 <br>
274
275 </font>
276
277
278 If you don't have root privileges, ask your local administrator to install
279 <br>
280 garlic, or just leave it in one of your directories.
281
282
283 <tr>
284
285 <td align="right">
286
287 (9)
288
289 </td>
290
291 <td align="left">
292
293 Now the .garlicrc configuration file and the file which contains the
294 <br>
295 template residues should be copied to a directory where these files
296 <br>
297 will be accessible to everyone. If this is not done, garlic will work
298 <br>
299 anyway, using hard-coded default configuration, but you will be unable
300 <br>
301 to replace residues and to create peptides.
302 <br>
303 The recommended directory is /usr/share/garlic (since January 2006).
304 <br>
305 This directory and two default files should be should be prepared by
306 <br>
307 the system administrator or by the "sudoer":
308 <br>
309
310
311 <font color="red">
312
313 mkdir /usr/share/garlic
314 <br>
315 cp .garlicrc /usr/share/garlic
316 <br>
317 cp residues.pdb /usr/share/garlic
318 <br>
319
320 </font>
321
322 <tr>
323
324 <td align="right">
325
326 (10)
327
328 </td>
329
330 <td align="left">
331
332 It may be good idea to copy the configuration file to your home directory
333 <br>
334 or to the subdirectory garlic of your home directory. The same may be
335 <br>
336 done with the file residues.pdb. If you do this, you will be able to
337 <br>
338 personalize your garlic sessions, because your private files will override
339 <br>
340 the system-wide defaults. Of course, you don't need root privileges
341 <br>
342 to do this:
343 <br>
344
345
346 <font color="red">
347
348 cp .garlicrc $HOME
349 <br>
350 cp residues.pdb $HOME
351 <br>
352
353 </font>
354
355
356 or:
357 <br>
358
359
360 <font color="red">
361
362 mkdir $HOME/garlic
363 <br>
364 cp .garlicrc $HOME/garlic
365 <br>
366 cp residues.pdb $HOME/garlic
367 <br>
368
369 </font>
370
371 <tr>
372
373 <td align="center">
374
375 (11)
376
377 </td>
378
379 <td align="left">
380
381 It is recommended to set the environment variable MOL_PATH, so garlic
382 <br>
383 will search all directories listed in this variable to find the specified
384 <br>
385 file. Click
386 <a href="mol_path.html">
387 here
388 </a>
389 for detailed instructions.
390
391
392 <tr>
393
394 <td align="right">
395
396 (12)
397
398 </td>
399
400 <td align="left">
401
402 Clean up the mess (sources and .o files). Be sure to leave all .pdb files
403 <br>
404 for later practice. Leave also the files with the extension .script, these
405 <br>
406 are some garlic tutorial scripts.
407
408
409 </table>
410
411
412 <br>
413 If garlic refuses to work because it fails to get the TrueColor visual,
414 try to execute
415 <br>
416 <font color="red">
417 xdpyinfo
418 </font>
419 and
420 <font color="red">
421 xwininfo
422 </font>
423 (click into the root window); check the list of supported visuals
424 <br>
425 and the current color depth.
426 Choose the color depth for which the TrueColor visual
427 <br>
428 is available. If you have the SGI Octane workstation, please read
429 <a href="octane.html">
430 this text
431 </a>
432 ,
433 <br>
434 contributed by Randal R. Ketchem. If you have IBM RS6000 with AIX,
435 read
436 <a href="rs6000.html">
437 this
438 </a>
439 <br>
440 hint, contributed by Nicolas Ferre.
441 <br><br>
442
443
444
445 The list of sites with proteins, nucleic acids and hetero compounds is
446 <a href="../data/index.html">
447 here
448 </a>
449 .
450 <br><br>
451
452
453
454 If you can't compile, install or run garlic, write to me (Damir Zucic),
455 <br>
456 my address is
457 <a href="mailto:[email protected]">
458 [email protected]
459 </a>
460 .
461
462
463 <hr size="3">
464
465 </html>
466
467