1 | <HTML> |
---|
2 | <HEAD> |
---|
3 | <TITLE>UNIX Installation notes for EXPGUI</TITLE> |
---|
4 | <meta name="keywords" content="crystallography, Rietveld, diffraction, |
---|
5 | GSAS, EXPGUI, Windows"> |
---|
6 | </HEAD> |
---|
7 | <style> |
---|
8 | A:link {text-decoration:none} |
---|
9 | A:vlink {text-decoration:none} |
---|
10 | </style> |
---|
11 | |
---|
12 | <BODY BGCOLOR="#FFFFFF" |
---|
13 | topmargin="0" leftmargin="0" marginwidth="0" marginheight="0" |
---|
14 | text="#000000" link="#0033ff" vlink="#0033ff" alink="#0033ff"> |
---|
15 | |
---|
16 | <? |
---|
17 | include("/var/www/include/navigation.inc"); |
---|
18 | include("/var/www/include/utility.inc"); |
---|
19 | ?> |
---|
20 | <blockquote><font face="arial, helvetica, sans-serif"> |
---|
21 | |
---|
22 | <TABLE BORDER BGCOLOR="#FFFF40" ALIGN=RIGHT> |
---|
23 | <TR><TH><A Href="expgui.html">EXPGUI home</A> |
---|
24 | </TH></TR></TABLE><BR CLEAR=ALL> |
---|
25 | |
---|
26 | <CENTER><H1> |
---|
27 | <HR noshade width="75%" size="2" align="center"> |
---|
28 | UNIX Installation notes for |
---|
29 | <A HREF="expgui.html"> |
---|
30 | EXPGUI |
---|
31 | </A> |
---|
32 | <HR noshade width="75%" size="2" align="center"> |
---|
33 | </H1></CENTER> |
---|
34 | Note that root access is not required to load GSAS, Tcl/Tk and |
---|
35 | <A HREF="expgui.html">EXPGUI</A>, unless the files will be put in |
---|
36 | a central location (such as /usr/local) or you will use the RPM package. |
---|
37 | |
---|
38 | <H2>0. A one-step process for Linux</H2> |
---|
39 | Many Linux releases incorporate a package-loading program called RPM. |
---|
40 | The RPM package file loads, <A Href="http://www.ncnr.nist.gov/programs/crystallography/software/gsas.html">GSAS</A> and |
---|
41 | <A Href="http://www.ncnr.nist.gov/xtal/software/expgui"> |
---|
42 | EXPGUI</A>, as well as checks that your Linux system has been configured |
---|
43 | properly to run these programs (for example, has Tcl/Tk and BLT loaded). |
---|
44 | The most recent <font face="courier">GSAS-EXPGUI-yyyy.mm.dd-x.i386.rpm</font> |
---|
45 | file |
---|
46 | (where yyyy, mm & dd are year, month and day) |
---|
47 | can be found in directory |
---|
48 | <a href="ftp://ftp.ncnr.nist.gov/pub/cryst/gsas"> |
---|
49 | ftp://ftp.ncnr.nist.gov/pub/cryst/gsas</a> or a CCP14 mirror site. |
---|
50 | See the |
---|
51 | <A Href="http://www.ncnr.nist.gov/xtal/software/installGSASrpm.html">RPM instructions</a> |
---|
52 | for details on how to load this package, |
---|
53 | rather than the following paragraphs. |
---|
54 | |
---|
55 | <H2>1. Prerequisites</H2> |
---|
56 | |
---|
57 | I will assume that you already have the Tcl/Tk package loaded on your computer. If this |
---|
58 | is not true, please see |
---|
59 | <A HREF="http://www.ncnr.nist.gov/programs/crystallography/software/tclpkgs.html"> |
---|
60 | http://www.ncnr.nist.gov/programs/crystallography/software/tclpkgs.html |
---|
61 | </A> for installation instructions. Please note that EXPGUI seems to run very |
---|
62 | slowly in Tcl/Tk version 8.1, but OK in 8.0 and 8.2. |
---|
63 | Also see <a href="#testtcltk">below</a> on how to test if Tcl/Tk is properly |
---|
64 | installed. |
---|
65 | <P> |
---|
66 | Likewise, I will assume you have also loaded the appropriate GSAS release, if not see |
---|
67 | <A HREF="http://www.ncnr.nist.gov/programs/crystallography/software/unixgsas.html"> |
---|
68 | http://www.ncnr.nist.gov/programs/crystallography/software/unixgsas.html |
---|
69 | </A> for installation instructions. The current versions of EXPGUI must be |
---|
70 | used with GSAS versions released on or after April, 2001. |
---|
71 | <I>EXPGUI v. 1.40 and later are not compatible with earlier Unix versions of |
---|
72 | GSAS -- as the file formats have changed.</I> |
---|
73 | |
---|
74 | <P>More information about EXPGUI, including information on how it |
---|
75 | can be customized, can be found on web pages <A HREF="expgui.html">expgui.html</A> |
---|
76 | and <A HREF="expgui_cfg.html">expgui_cfg.html</A>, found in the gsas/expgui/doc directory. |
---|
77 | |
---|
78 | <H2> |
---|
79 | 2. EXPGUI Downloading</H2> |
---|
80 | download file |
---|
81 | <A HREF="ftp://ftp.ncnr.nist.gov/pub/cryst/gsas/expgui.tar.gz"> |
---|
82 | ftp://ftp.ncnr.nist.gov/pub/cryst/gsas/expgui.tar.gz</A> (~300 K) |
---|
83 | by shift-clicking on the previous link. |
---|
84 | <P> |
---|
85 | If you want to try the latest release (which may not have gotten |
---|
86 | a lot of testing, but probably has new bug fixes and capabilities) shift-click |
---|
87 | on <A HREF="ftp://ftp.ncnr.nist.gov/pub/cryst/gsas/expgui_ALPHA.tar.gz"> |
---|
88 | ftp://ftp.ncnr.nist.gov/pub/cryst/gsas/expgui_ALPHA.tar.gz</A> |
---|
89 | P> |
---|
90 | If you have a version of GSAS from September 2001, or earlier and wish |
---|
91 | to set up dummy histograms from EXPEDT, you will need to |
---|
92 | update the EXPTOOL program using one of the following files: |
---|
93 | <UL> |
---|
94 | <LI>LINUX: <BR> |
---|
95 | <A HREF="ftp://ftp.ncnr.nist.gov/pub/cryst/gsas/exe_linux/exptool.tar.gz"> |
---|
96 | ftp://ftp.ncnr.nist.gov/pub/cryst/gsas/exe_linux/exptool.tar.gz</A> (~0.3 Mb) |
---|
97 | </LI><P> |
---|
98 | or |
---|
99 | <P> |
---|
100 | <LI>Silicon Graphics: <BR> |
---|
101 | <A HREF="ftp://ftp.ncnr.nist.gov/pub/cryst/gsas/exe_sgi/exptool.tar.gz"> |
---|
102 | ftp://ftp.ncnr.nist.gov/pub/cryst/gsas/exe_sgi/exptool.tar.gz</A> (~0.4 Mb) |
---|
103 | </UL>Transfer the appropriate file by shift-clicking on the appropriate link. |
---|
104 | <H2> |
---|
105 | 3. EXPGUI Installation</H2> |
---|
106 | A few short steps are needed to load EXPGUI on your computer. |
---|
107 | <H3> |
---|
108 | 2.1 Create a directory and restore the files</H3> |
---|
109 | The EXPGUI scripts are set up to be run from a <B>subdirectory in the main GSAS |
---|
110 | directory</B>, by convention I assume the directory name |
---|
111 | <font face="courier">expgui</font>, but this is |
---|
112 | not required. Thus, if you have located the GSAS package in |
---|
113 | <FONT FACE="COURIER">/usr/local/gsas</FONT> (so that there is a directory |
---|
114 | <FONT FACE="COURIER">/usr/local/gsas/exe</FONT>, <FONT FACE="COURIER">/usr/local/gsas/data</FONT>, ...) |
---|
115 | I assume you will put |
---|
116 | these files in <FONT FACE="COURIER">/usr/local/gsas/expgui</FONT> but any subdirectory, |
---|
117 | such as <FONT FACE="COURIER">/usr/local/gsas/tcl</FONT> will work fine. |
---|
118 | Change the subsequent commands if GSAS is located somewhere |
---|
119 | other than <FONT FACE="COURIER">/usr/local/gsas</FONT>. |
---|
120 | |
---|
121 | <FONT FACE="COURIER"><PRE> |
---|
122 | cd /usr/local/gsas |
---|
123 | mkdir expgui |
---|
124 | cd expgui |
---|
125 | gunzip < [/path/]expgui.tar.gz | tar xvf - |
---|
126 | </PRE></FONT> |
---|
127 | <P>When restoring the GSAS files from the tar file, |
---|
128 | note that <FONT FACE="COURIER">[/path/]</FONT> in the example above indicates the location |
---|
129 | where you downloaded the tar file in section 2, above. |
---|
130 | |
---|
131 | <H3> |
---|
132 | 2.2 Installing a shortcut to EXPGUI</H3> |
---|
133 | While it is possible to invoke EXPGUI by typing |
---|
134 | <FONT FACE="COURIER"><PRE> |
---|
135 | wish /usr/local/gsas/expgui/expgui |
---|
136 | </PRE></FONT> |
---|
137 | or |
---|
138 | <FONT FACE="COURIER"><PRE> |
---|
139 | /home/toby/mywish/wish /home/toby/mygsas/expgui/expgui |
---|
140 | </PRE></FONT> |
---|
141 | or whatever, you will likely want to create an easier command to type. |
---|
142 | Below are three ways to do this. Note that only one is needed. Do not use all |
---|
143 | three. |
---|
144 | |
---|
145 | <em>Also, note that in the commands below, |
---|
146 | </em><FONT FACE="COURIER">^D</FONT><em> means control-D.</em> |
---|
147 | |
---|
148 | |
---|
149 | <UL><H4> |
---|
150 | 2.2a Installing a shortcut to EXPGUI in .cshrc</H4> |
---|
151 | <P>To use EXPGUI, you probably need to create an easy way to access it. |
---|
152 | One way to do this is to add an alias to your ~/.cshrc file: |
---|
153 | <FONT FACE="COURIER"><PRE> |
---|
154 | cat >> ~/.cshrc |
---|
155 | alias expgui "wish /usr/local/gsas/expgui/expgui" |
---|
156 | ^D |
---|
157 | </PRE></FONT> |
---|
158 | <H4> |
---|
159 | 2.2b Installing EXPGUI in the path</H4> |
---|
160 | <P> |
---|
161 | Another way to simplify access to EXPGUI |
---|
162 | is to create a file which will execute the GUI script from |
---|
163 | a command in your system's path, for example <FONT FACE="COURIER">/usr/bin</FONT>. |
---|
164 | <FONT FACE="COURIER"><PRE> |
---|
165 | cat > /usr/bin/expgui |
---|
166 | wish /usr/local/gsas/expgui/expgui |
---|
167 | ^D |
---|
168 | chmod +x /usr/bin/expgui |
---|
169 | </PRE></FONT> |
---|
170 | <I>Note that this step (2.2b) is incompatible with the one below (2.2c).</I> |
---|
171 | <H4> |
---|
172 | 2.2c Linking EXPGUI in the path</H4> |
---|
173 | <P> |
---|
174 | Another way to simplify access to EXPGUI |
---|
175 | is to create a link in your system's path to the GUI script. |
---|
176 | Note that you may need to modify the first line of |
---|
177 | <FONT FACE="COURIER">/usr/local/gsas/expgui/expgui</FONT>, if wish is located somewhere |
---|
178 | other than <FONT FACE="COURIER">/usr/local/bin/wish</FONT>. |
---|
179 | |
---|
180 | <FONT FACE="COURIER"><PRE> |
---|
181 | chmod +x /usr/local/gsas/expgui/expgui |
---|
182 | ln -s /usr/local/gsas/expgui/expgui /usr/bin/expgui |
---|
183 | </PRE></FONT> |
---|
184 | <I>Note that this step (2.2c) is incompatible with the one above (2.2b).</I> |
---|
185 | </UL> |
---|
186 | H3> |
---|
187 | |
---|
188 | 2.3 Installing EXPTOOL</H3> |
---|
189 | If being upgraded, the EXPTOOL program should be placed in the |
---|
190 | directory with the GSAS executable files, |
---|
191 | for example in /usr/local/gsas/exe/. |
---|
192 | <FONT FACE="COURIER"><PRE> |
---|
193 | cd /usr/local/gsas/exe |
---|
194 | gunzip < [/path/]exptool.tar.gz | tar xvf - |
---|
195 | </PRE></FONT> |
---|
196 | |
---|
197 | <a name="testtcltk"></a><H2> |
---|
198 | Is Tcl/Tk installed already?</H2> |
---|
199 | To test if Tcl/Tk is installed correctly on your system |
---|
200 | do the following commands. (Commands you type are in this <font face="courier">typewriter</font> |
---|
201 | font, computer responses are this <font face="courier"><I>italic font</I></font>. |
---|
202 | My comments are provided in this text font and are <U>underlined</U>). |
---|
203 | <UL> |
---|
204 | <TABLE> |
---|
205 | <TR><TD><font face="courier">[tammy@beryl tammy]$ wish</font></TD> |
---|
206 | <TD><U>(note a window is created)</U></TD></TR> |
---|
207 | <TR><TD><font face="courier"><I>%</I> set tcl_version</font></TD></TR> |
---|
208 | <TR><TD><font face="courier"><I>8.0</I></font></TD> |
---|
209 | <TD><U>(8.0 is the Tcl/Tk version number. EXPGUI requires 8.0 or higher)</U></TD></TR> |
---|
210 | <TR><TD><font face="courier"><I>%</I> package require BLT</font></TD></TR> |
---|
211 | <TR><TD><font face="courier"><I>2.4</I></font></TD> |
---|
212 | <TD><U>(2.4 is the BLT package version number. |
---|
213 | EXPGUI requires 2.3 or higher. |
---|
214 | If you get "can't find package BLT" then |
---|
215 | BLT is not installed [properly] on your system)</U></TD></TR> |
---|
216 | <TR><TD><font face="courier"><I>%</I> blt::graph .g</font></TD></TR> |
---|
217 | <TR><TD><font face="courier"><I>.g</I></font></TD> |
---|
218 | <TD><U>(nothing happens. You should not get an error message here.)</U></TD></TR> |
---|
219 | <TR><TD><font face="courier"><I>%</I> pack .g</font></TD> |
---|
220 | <TD><U>(now a graph is displayed)</U></TD></TR> |
---|
221 | <TR><TD><font face="courier"><I>%</I> Blt_ZoomStack .g</font></TD> |
---|
222 | <TD><U>(if error message: invalid command name "Blt_ZoomStack" appears |
---|
223 | there is a problem with your BLT installation, see below.)</U></TD></TR> |
---|
224 | </TABLE> |
---|
225 | There is a common problem with the pkg_Index.tcl file in BLT that makes |
---|
226 | the Blt_ZoomStack command inaccessible, see my updated copy |
---|
227 | <A HREF="ftp://ftp.ncnr.nist.gov/pub/cryst/tcltk/BLT2.4_pkgIndex.tcl"> |
---|
228 | ftp://ftp.ncnr.nist.gov/pub/cryst/tcltk/BLT2.4_pkgIndex.tcl |
---|
229 | </A> for an example that works. Also see the |
---|
230 | <A HREF="http://www.ncnr.nist.gov/programs/crystallography/software/tclpkgs82linux.html"> |
---|
231 | Compiling Tcl/Tk 8.2.3 & packages for Linux</A> example of how to install. |
---|
232 | </UL> |
---|
233 | <P><H2> |
---|
234 | Acknowledgements</H2> |
---|
235 | <A Href="http://www.ncnr.nist.gov/programs/crystallography/software/gsas.html"> |
---|
236 | GSAS</A> |
---|
237 | 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"> |
---|
238 | Robert B. Von Dreele</A>, MS-H805, |
---|
239 | Los Alamos National Laboratory, Los Alamos, NM 87545. Problems, questions |
---|
240 | or kudos concerning GSAS should be sent to Robert B. Von Dreele at |
---|
241 | <A HREF="MAILTO:vondreele@lanl.gov">vondreele@lanl.gov</A> |
---|
242 | |
---|
243 | <P>EXPGUI is written by Brian H. Toby of the NIST Center for Neutron Research, |
---|
244 | <A HREF="MAILTO:Brian.Toby@NIST.GOV">Brian.Toby@NIST.GOV</A> |
---|
245 | with help from Jonathan Wasserman. |
---|
246 | <P> |
---|
247 | <hr><blockquote> |
---|
248 | GSAS is Copyright, 1984-1997, The Regents of the University of California. |
---|
249 | The GSAS software was produced under a U.S. Government contract (W-7405-ENG-36) |
---|
250 | by the Los Alamos National Laboratory, which is operated by the University |
---|
251 | of California for the U.S. Department of Energy. The U.S. Government is |
---|
252 | licensed to use, reproduce, and distribute this software. Permission is |
---|
253 | granted to the public to copy and use this software without charge, provided |
---|
254 | that this notice and any statement of authorship are reproduced on all |
---|
255 | copies. Neither the Government nor the University makes any warranty, express |
---|
256 | or implied, or assumes any liability or responsibility for the use of this |
---|
257 | software. |
---|
258 | |
---|
259 | <P>EXPGUI is not subject to copyright. Have fun with it. |
---|
260 | |
---|
261 | <p>Neither the U.S. Government nor any author makes any warranty, |
---|
262 | expressed or implied, or assumes any liability or responsibility |
---|
263 | for the use of this information or the software described |
---|
264 | here. Brand names cited here are used for |
---|
265 | identification purposes and do not consitute an endorsement by NIST. |
---|
266 | </blockquote> |
---|
267 | <hr> |
---|
268 | <TABLE BORDER BGCOLOR="#FFFF40" ALIGN=RIGHT> |
---|
269 | <TR><TH><A Href="expgui.html">EXPGUI home</A> |
---|
270 | </TH></TR></TABLE> |
---|
271 | |
---|
272 | <P><font size=-1><A HREF="MAILTO:crystal@NIST.gov?subject=WWW page <?=$PHP_SELF?>">Comments, corrections or questions: crystal@NIST.gov</A></font><BR> |
---|
273 | <font size=-1><? lastmod(); ?> </font> |
---|
274 | <br> |
---|
275 | $Revision: 576 $ $Date: 2009-12-04 23:08:29 +0000 (Fri, 04 Dec 2009) $ |
---|
276 | </blockquote> |
---|
277 | </body> |
---|
278 | </html> |
---|