Project

General

Profile

Install SPIDER » History » Version 32

Bradley Kearney, 02/03/2014 01:42 PM

1 1 Neil Voss
h1. Install SPIDER
2
3 12 Neil Voss
h2. Install documentation at wadsworth.org
4
5 27 Amber Herold
The Wadsworth Institute provides "detailed documentation":http://www.wadsworth.org/spider_doc/spider/docs/spider-inst-linux.html on how to install SPIDER on various systems. Below we cover _our way_ to get it working on your system.
6 12 Neil Voss
7 32 Bradley Kearney
h2. Download SPIDER binary "from wadsworth.org":http://www.wadsworth.org/spider_doc/spider/docs/spi-register.html (1 GiB)
8 4 Neil Voss
9 32 Bradley Kearney
bq. Most of our SPIDER scripts were originally designed around SPIDER v14 and v15, but we are diligently working toward compatibility with SPIDER v18. That said you are probably best off using the newest version of SPIDER (v21.13 as of February 2014) and then reporting any bugs to us.
10 1 Neil Voss
11 7 Neil Voss
h2. Extract the archive
12
13 32 Bradley Kearney
<pre>tar -zxvf spiderweb.21.13.tar.gz</pre>
14 1 Neil Voss
15 9 Neil Voss
bq. The archive will create 3 folders: spider, spire, and web. At this time only the *spider* program is used within Appion, you can safely ignore web and spire.
16 8 Neil Voss
17 10 Neil Voss
h2. Install SPIDER
18 1 Neil Voss
19 10 Neil Voss
* Copy the spider folder to global directory:
20
<pre>sudo mv -v spider /usr/local/</pre>
21 1 Neil Voss
22 10 Neil Voss
* Next, you need to determine which version of the spider binary you need to use on your system.
23 11 Neil Voss
<pre>
24
cd /usr/local/spider/bin
25
ls spider*
26
  spider_linux           spider_linux_mp_intel64  spider_linux_mp_opt64  spider_osx_64_pgi
27
  spider_linux_mp_intel  spider_linux_mpi_opt64   spider_osx_32_pgi
28
</pre>
29 10 Neil Voss
30 17 Neil Voss
* From the wadsworth.org site:
31 16 Neil Voss
|_. binary file			|_. system information |
32
| spider_linux			| AMD/Intel 32 (single processor) |
33
| spider_linux_mp_intel		| AMD/Intel 32 (multiple processors) |
34
| spider_linux_mp_opt64		| AMD Opteron 64 (multiple processors) |
35
| spider_linux_mp_intel64	| Intel xeon 64 (multiple processors) |
36
| spider_linux_mpi_opt64	| AMD Opteron 64 (for MPI use) |
37
| spider_osx_32_pgi		| Intel Apple 32 bit (multiple processors) |
38
| spider_osx_64_pgi		| Intel Apple 64 bit (multiple processors) |
39 15 Neil Voss
40 30 Amber Herold
* Additionally you may run the UNIX file command on an individual program to determine its type
41 17 Neil Voss
<pre>
42
file spider_linux_mp_intel64
43 18 Neil Voss
  spider_linux_mp_intel64: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.6.4, 
44
  statically linked, for GNU/Linux 2.6.4, not stripped
45 17 Neil Voss
</pre>
46 10 Neil Voss
47 21 Neil Voss
* If you are unsure, use:
48
** @spider_linux_mp_intel@ for 32bit Intel/AMD systems
49
** @spider_linux_mp_opt64@ for 64bit Intel/AMD systems
50 20 Neil Voss
51 19 Neil Voss
* After you determine which spider to use create a link to that file in /usr/local/bin:
52 23 Neil Voss
<pre>sudo ln -sv /usr/local/spider/bin/spider_xxxxx /usr/local/bin/spider</pre>
53 10 Neil Voss
54
h2. Set environmental variables
55
56
h3. For @BASH@, create an spider.sh and add the following lines:
57
58 1 Neil Voss
<pre>
59 22 Neil Voss
export SPIDERDIR=/usr/local/spider
60
export SPMAN_DIR=${SPIDERDIR}/man/
61
export SPPROC_DIR=${SPIDERDIR}/proc/
62
export SPBIN_DIR=${SPIDERDIR}/bin/
63 29 Neil Voss
export PATH=$PATH:${SPIDERDIR}/bin
64 8 Neil Voss
</pre>
65 1 Neil Voss
66 10 Neil Voss
h3. For @C@ shell, create an spider.csh and add the following lines:
67 1 Neil Voss
68
<pre>
69 22 Neil Voss
setenv SPIDERDIR /usr/local/spider
70
setenv SPMAN_DIR ${SPIDERDIR}/man/
71
setenv SPPROC_DIR ${SPIDERDIR}/proc/
72
setenv SPBIN_DIR ${SPIDERDIR}/bin/
73 29 Neil Voss
setenv PATH $PATH:${SPIDERDIR}/bin
74 8 Neil Voss
</pre>
75
76
h3. And then add it to the global /etc/profile.d/ folder
77
78
<pre>
79 10 Neil Voss
sudo cp -v spider.sh /etc/profile.d/spider.sh
80
sudo chmod 755 /etc/profile.d/spider.sh
81 8 Neil Voss
82 10 Neil Voss
-or-
83
84
sudo cp -v spider.csh /etc/profile.d/spider.csh
85
sudo chmod 755 /etc/profile.d/spider.csh
86 1 Neil Voss
</pre>
87 20 Neil Voss
88
bq. You may need to log out and log back in for these changes to take place.
89
90
h2. Test SPIDER
91 1 Neil Voss
92 23 Neil Voss
* Execute the program:
93 26 Neil Voss
** input:
94
<pre>spider bat/spi</pre>
95
** output:
96
<pre>
97 1 Neil Voss
98 23 Neil Voss
 \__`O O'__/        SPIDER  --  COPYRIGHT
99
 ,__xXXXx___        HEALTH RESEARCH INC., ALBANY, NY.
100
  __xXXXx__
101
 /  /xxx\  \        VERSION:  UNIX  18.10 ISSUED: 03/23/2010
102
   /     \          DATE:     13-MAY-2010    AT  09:32:42
103
104
105 1 Neil Voss
106
 Results file: results.bat.0
107 24 Neil Voss
 Running: spider
108
109 26 Neil Voss
 .OPERATION:</pre>
110
** input:
111
<pre>EN D</pre>
112
** output:
113
<pre> **** SPIDER NORMAL STOP ****</pre>
114 1 Neil Voss
115 28 Amber Herold
______
116 1 Neil Voss
117
[[Install EMAN|< Install EMAN]] | [[Install Xmipp|Install Xmipp >]]
118 28 Amber Herold
119
______