1 | <HTML> |
---|
2 | <HEAD> |
---|
3 | <META NAME="Author" CONTENT="Brian H. Toby"> |
---|
4 | <TITLE>UNIX Installation notes for EXPGUI</TITLE> |
---|
5 | </HEAD> |
---|
6 | <BODY BGCOLOR="#FFFFFF"> |
---|
7 | <A HREF=http://www.ncnr.nist.gov> |
---|
8 | <IMG SRC="http://www.ncnr.nist.gov/images/ncnrtrans.gif" |
---|
9 | alt="Link to NIST Center for Neutron Research home page" |
---|
10 | ALIGN=RIGHT></A> |
---|
11 | <A HREF=http://www.nist.gov> |
---|
12 | <IMG SRC="http://www.ncnr.nist.gov/images/webidblue_2lineright.gif" |
---|
13 | alt="Link to National Institute of Standards & Technology home page" |
---|
14 | ALIGN=LEFT></A> |
---|
15 | <CENTER> |
---|
16 | <A Href="http://www.ncnr.nist.gov/programs/crystallography/software/tclpkgs.html"> |
---|
17 | <IMG SRC="tcltklogo100.gif" |
---|
18 | alt="Link to Tcl/Tk information"> |
---|
19 | </CENTER></A> |
---|
20 | <br clear=all> |
---|
21 | |
---|
22 | <CENTER> |
---|
23 | <HR noshade width="75%" size="2" align="center"> |
---|
24 | <H1> |
---|
25 | UNIX Installation notes for |
---|
26 | <A HREF="expgui.html"> |
---|
27 | EXPGUI |
---|
28 | </A> |
---|
29 | </H1> |
---|
30 | <HR noshade width="75%" size="2" align="center"> |
---|
31 | </CENTER> |
---|
32 | Note that root access is not required to load GSAS, Tcl/Tk and |
---|
33 | <A HREF="expgui.html">EXPGUI</A>. |
---|
34 | |
---|
35 | <H2>0. Prerequisites</H2> |
---|
36 | |
---|
37 | I will assume that you already have the Tcl/Tk package loaded on your computer. If this |
---|
38 | is not true, please see |
---|
39 | <A HREF="http://www.ncnr.nist.gov/programs/crystallography/software/tclpkgs.html"> |
---|
40 | http://www.ncnr.nist.gov/programs/crystallography/software/tclpkgs.html |
---|
41 | </A> for installation instructions. Please note that EXPGUI seems to run very |
---|
42 | slowly in Tcl/Tk version 8.1, but OK in 8.0 and 8.2. |
---|
43 | Also see <a href="#testtcltk">below</a> on how to test if Tcl/Tk is properly |
---|
44 | installed. |
---|
45 | <P> |
---|
46 | Likewise, I will assume you have also loaded the appropriate GSAS release, if not see |
---|
47 | <A HREF="http://www.ncnr.nist.gov/programs/crystallography/software/unixgsas.html"> |
---|
48 | http://www.ncnr.nist.gov/programs/crystallography/software/unixgsas.html |
---|
49 | </A> for installation instructions. |
---|
50 | |
---|
51 | <P>More information about EXPGUI, including information on how it |
---|
52 | can be customized, can be found on web pages <A HREF="expgui.html">expgui.html</A> |
---|
53 | and <A HREF="expgui_cfg.html">expgui_cfg.html</A>, found in the gsas/expgui/doc directory. |
---|
54 | |
---|
55 | <H2> |
---|
56 | 1. EXPGUI Downloading</H2> |
---|
57 | download file |
---|
58 | <A HREF="ftp://ftp.ncnr.nist.gov/pub/cryst/gsas/expgui.tar.gz"> |
---|
59 | ftp://ftp.ncnr.nist.gov/pub/cryst/gsas/expgui.tar.gz</A> (~300 K) |
---|
60 | by shift-clicking on the previous link. |
---|
61 | <P> |
---|
62 | If you want to try the latest release (which may not have gotten |
---|
63 | a lot of testing, but probably has new bug fixes and capabilities) shift-click |
---|
64 | on <A HREF="ftp://ftp.ncnr.nist.gov/pub/cryst/gsas/expgui_ALPHA.tar.gz"> |
---|
65 | ftp://ftp.ncnr.nist.gov/pub/cryst/gsas/expgui_ALPHA.tar.gz</A> |
---|
66 | <P> |
---|
67 | If you are using an older version of GSAS (before April, 2000) you may |
---|
68 | want to download the TCLDUMP program to speed and enhance liveplot and the |
---|
69 | EXPTOOL program which allows EXPGUI to add phases, histograms and atoms |
---|
70 | to .EXP files. More recent versions of GSAS include these programs in the |
---|
71 | distributions. |
---|
72 | <UL> |
---|
73 | <LI>LINUX: <BR> |
---|
74 | <A HREF="ftp://ftp.ncnr.nist.gov/pub/cryst/gsas/exe_linux/tcldump.tar.gz"> |
---|
75 | ftp://ftp.ncnr.nist.gov/pub/cryst/gsas/exe_linux/tcldump.tar.gz</A> (~65 K) |
---|
76 | <BR> |
---|
77 | <A HREF="ftp://ftp.ncnr.nist.gov/pub/cryst/gsas/exe_linux/exptool.tar.gz"> |
---|
78 | ftp://ftp.ncnr.nist.gov/pub/cryst/gsas/exe_linux/exptool.tar.gz</A> (~292 K) |
---|
79 | </LI><P> |
---|
80 | or |
---|
81 | <P> |
---|
82 | <LI>Silicon Graphics: <BR> |
---|
83 | <A HREF="ftp://ftp.ncnr.nist.gov/pub/cryst/gsas/exe_sgi/tcldump.tar.gz"> |
---|
84 | ftp://ftp.ncnr.nist.gov/pub/cryst/gsas/exe_sgi/tcldump.tar.gz</A> (~45 K) |
---|
85 | <BR> |
---|
86 | <A HREF="ftp://ftp.ncnr.nist.gov/pub/cryst/gsas/exe_sgi/exptool.tar.gz"> |
---|
87 | ftp://ftp.ncnr.nist.gov/pub/cryst/gsas/exe_sgi/exptool.tar.gz</A> (~377 K) |
---|
88 | </UL>Transfer the files by shift-clicking on the appropriate links. |
---|
89 | <H2> |
---|
90 | 2. EXPGUI Installation</H2> |
---|
91 | A few short steps are needed to load EXPGUI on your computer. |
---|
92 | <H3> |
---|
93 | 2.1 Create a directory and restore the files</H3> |
---|
94 | The EXPGUI scripts are set up to be run from a <B>subdirectory in the main GSAS |
---|
95 | directory</B>, by convention I assume the directory name <tt>expgui</tt>, but this is |
---|
96 | not required. Thus, if you have located the GSAS package in |
---|
97 | <TT>/usr/local/gsas</TT> (so that there is a directory |
---|
98 | <TT>/usr/local/gsas/exe</TT>, <TT>/usr/local/gsas/data</TT>, ...) |
---|
99 | I assume you will put |
---|
100 | these files in <TT>/usr/local/gsas/expgui</TT> but any subdirectory, |
---|
101 | such as <TT>/usr/local/gsas/tcl</TT> will work fine. |
---|
102 | Change the subsequent commands if GSAS is located somewhere |
---|
103 | other than <TT>/usr/local/gsas</TT>. |
---|
104 | |
---|
105 | <PRE> |
---|
106 | cd /usr/local/gsas |
---|
107 | mkdir expgui |
---|
108 | cd expgui |
---|
109 | gunzip < [/path/]expgui.tar.gz | tar xvf - |
---|
110 | </PRE> |
---|
111 | <P>When restoring the GSAS files from the tar file, |
---|
112 | note that <TT>[/path/]</TT> in the example above indicates the location |
---|
113 | where you downloaded the tar file in section 2, above. |
---|
114 | |
---|
115 | <H3> |
---|
116 | 2.2 Installing a shortcut to EXPGUI</H3> |
---|
117 | While it is possible to invoke EXPGUI by typing |
---|
118 | <PRE> |
---|
119 | wish /usr/local/gsas/expgui/expgui |
---|
120 | </PRE> |
---|
121 | or |
---|
122 | <PRE> |
---|
123 | /home/toby/mywish/wish /home/toby/mygsas/expgui/expgui |
---|
124 | </PRE> |
---|
125 | or whatever, you will likely want to create an easier command to type. |
---|
126 | Below are three ways to do this. Note that only one is needed. Do not use all |
---|
127 | three. |
---|
128 | |
---|
129 | <em>Also, note that in the commands below, |
---|
130 | </em><TT>^D</TT><em> means control-D.</em> |
---|
131 | |
---|
132 | |
---|
133 | <UL><H4> |
---|
134 | 2.2a Installing a shortcut to EXPGUI in .cshrc</H4> |
---|
135 | <P>To use EXPGUI, you probably need to create an easy way to access it. |
---|
136 | One way to do this is to add an alias to your ~/.cshrc file: |
---|
137 | <PRE> |
---|
138 | cat >> ~/.cshrc |
---|
139 | alias expgui "wish /usr/local/gsas/expgui/expgui" |
---|
140 | ^D |
---|
141 | </PRE> |
---|
142 | <H4> |
---|
143 | 2.2b Installing EXPGUI in the path</H4> |
---|
144 | <P> |
---|
145 | Another way to simplify access to EXPGUI |
---|
146 | is to create a file which will execute the GUI script from |
---|
147 | a command in your system's path, for example <TT>/usr/bin</TT>. |
---|
148 | <PRE> |
---|
149 | cat > /usr/bin/expgui |
---|
150 | wish /usr/local/gsas/expgui/expgui |
---|
151 | ^D |
---|
152 | chmod +x /usr/bin/expgui |
---|
153 | </PRE> |
---|
154 | <I>Note that this step (2.2b) is incompatible with the one below (2.2c).</I> |
---|
155 | <H4> |
---|
156 | 2.2c Linking EXPGUI in the path</H4> |
---|
157 | <P> |
---|
158 | Another way to simplify access to EXPGUI |
---|
159 | is to create a link in your system's path to the GUI script. |
---|
160 | Note that you may need to modify the first line of |
---|
161 | <TT>/usr/local/gsas/expgui/expgui</TT>, if wish is located somewhere |
---|
162 | other than <TT>/usr/local/bin/wish</TT>. |
---|
163 | |
---|
164 | <PRE> |
---|
165 | chmod +x /usr/local/gsas/expgui/expgui |
---|
166 | ln -s /usr/local/gsas/expgui/expgui /usr/bin/expgui |
---|
167 | </PRE> |
---|
168 | <I>Note that this step (2.2c) is incompatible with the one above (2.2b).</I> |
---|
169 | </UL> |
---|
170 | <H3> |
---|
171 | 2.3 Installing TCLDUMP</H3> |
---|
172 | If not already present, the TCLDUMP program should be located with all of the GSAS executable files, for example in /usr/local/gsas/exe/. |
---|
173 | <PRE> |
---|
174 | cd /usr/local/gsas/exe |
---|
175 | gunzip < [/path/]tcldump.tar.gz | tar xvf - |
---|
176 | </PRE> |
---|
177 | |
---|
178 | <H3> |
---|
179 | 2.4 Installing EXPTOOL</H3> |
---|
180 | If not already present, the EXPTOOL program should be located with all of the GSAS executable files, |
---|
181 | for example in /usr/local/gsas/exe/. |
---|
182 | <PRE> |
---|
183 | cd /usr/local/gsas/exe |
---|
184 | gunzip < [/path/]exptool.tar.gz | tar xvf - |
---|
185 | </PRE> |
---|
186 | |
---|
187 | <a name="testtcltk"></a><H3> |
---|
188 | Is Tcl/Tk installed already?</H3> |
---|
189 | To test if Tcl/Tk is installed correctly on your system |
---|
190 | do the following commands. Commands are in <tt>typewriter</tt> font, computer responses are in <I>italics</I> and comments are in this font but are <U>underlined</U> comments. |
---|
191 | <UL> |
---|
192 | <TABLE> |
---|
193 | <TR><TD><tt>[tammy@beryl tammy]$ wish</tt></TD> |
---|
194 | <TD><U>(note a window is created)</U></TD></TR> |
---|
195 | <TR><TD><tt><I>%</I> set tcl_version</TD></TR> |
---|
196 | <TR><TD><tt><I>8.0</I></tt></TD> |
---|
197 | <TD><U>(8.0 is the Tcl/Tk version number. EXPGUI requires 8.0 or higher)</U></TD></TR> |
---|
198 | <TR><TD><tt><I>%</I> package require BLT</tt></TD></TR> |
---|
199 | <TR><TD><tt><I>2.4</I></tt></TD> |
---|
200 | <TD><U>(2.4 is the BLT package version number. |
---|
201 | EXPGUI requires 2.3 or higher. |
---|
202 | If you get "can't find package BLT" then |
---|
203 | BLT is not installed [properly] on your system)</U></TD></TR> |
---|
204 | <TR><TD><tt><I>%</I> blt::graph .g</tt></TD></TR> |
---|
205 | <TR><TD><tt><I>.g</I></tt></TD> |
---|
206 | <TD><U>(nothing happens. You should not get an error message here.)</U></TD></TR> |
---|
207 | <TR><TD><tt><I>%</I> pack .g</tt></TD> |
---|
208 | <TD><U>(now a graph is displayed)</U></TD></TR> |
---|
209 | <TR><TD><tt><I>%</I> Blt_ZoomStack .g</tt></TD> |
---|
210 | <TD><U>(if error message: invalid command name "Blt_ZoomStack" appears |
---|
211 | there is a problem with your BLT installation, see below.)</U></TD></TR> |
---|
212 | </TABLE> |
---|
213 | There is a common problem with the pkg_Index.tcl file in BLT that makes |
---|
214 | the Blt_ZoomStack command inaccessible, see my updated copy |
---|
215 | <A HREF="ftp://ftp.ncnr.nist.gov/pub/cryst/tcltk/BLT2.4_pkgIndex.tcl"> |
---|
216 | ftp://ftp.ncnr.nist.gov/pub/cryst/tcltk/BLT2.4_pkgIndex.tcl |
---|
217 | </A> for an example that works. Also see the |
---|
218 | <A HREF="http://www.ncnr.nist.gov/programs/crystallography/software/tclpkgs82linux.html"> |
---|
219 | Compiling Tcl/Tk 8.2.3 & packages for Linux</A> example of how to install. |
---|
220 | </UL> |
---|
221 | <hr> |
---|
222 | <A Href="http://www.ncnr.nist.gov/programs/crystallography/software/gsas.html"> |
---|
223 | GSAS</A> |
---|
224 | is written by Allen C. Larson and <A HREF="http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://lansce.lanl.gov/lujan/staff12/vondreele.htm"> |
---|
225 | Robert B. Von Dreele</A>, MS-H805, |
---|
226 | Los Alamos National Laboratory, Los Alamos, NM 87545. Problems, questions |
---|
227 | or kudos concerning GSAS should be sent to Robert B. Von Dreele at |
---|
228 | <A HREF="MAILTO:vondreele@lanl.gov">vondreele@lanl.gov</A> |
---|
229 | <P>GSAS is Copyright, 1984-1997, The Regents of the University of California. |
---|
230 | The GSAS software was produced under a U.S. Government contract (W-7405-ENG-36) |
---|
231 | by the Los Alamos National Laboratory, which is operated by the University |
---|
232 | of California for the U.S. Department of Energy. The U.S. Government is |
---|
233 | licensed to use, reproduce, and distribute this software. Permission is |
---|
234 | granted to the public to copy and use this software without charge, provided |
---|
235 | that this notice and any statement of authorship are reproduced on all |
---|
236 | copies. Neither the Government nor the University makes any warranty, express |
---|
237 | or implied, or assumes any liability or responsibility for the use of this |
---|
238 | software. |
---|
239 | <P>EXPGUI is written by Brian H. Toby of the NIST Center for Neutron Research, |
---|
240 | <A HREF="MAILTO:Brian.Toby@NIST.GOV">Brian.Toby@NIST.GOV</A> |
---|
241 | with help from Jonathan Wasserman. |
---|
242 | |
---|
243 | <P>EXPGUI is not subject to copyright. Have fun with it. |
---|
244 | |
---|
245 | <p>Neither the U.S. Government nor any author makes any warranty, |
---|
246 | expressed or implied, or assumes any liability or responsibility |
---|
247 | for the use of this information or the software described |
---|
248 | here. Brand names cited here are used for |
---|
249 | identification purposes and do not consitute an endorsement by NIST. |
---|
250 | |
---|
251 | <p><a href="http://www.ncnr.nist.gov/staff/toby/">Brian Toby</a> (<a href="mailto:brian.toby@nist.gov">Brian.Toby@NIST.GOV</a>) |
---|
252 | <br> |
---|
253 | $Revision: 357 $ $Date: 2009-12-04 23:04:47 +0000 (Fri, 04 Dec 2009) $ |
---|
254 | </body> |
---|
255 | </html> |
---|