1 | <HTML> |
---|
2 | <HEAD> |
---|
3 | <TITLE>Windows 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 | Windows installation notes for |
---|
29 | <A HREF="expgui.html">EXPGUI</A> |
---|
30 | <HR noshade width="75%" size="2" align="center"> |
---|
31 | </H1></CENTER> |
---|
32 | |
---|
33 | <EM>These notes describe how GSAS & EXPGUI are installed |
---|
34 | using separate distribution files for GSAS, EXPGUI and Tcl/Tk. |
---|
35 | This is not the easiest way to go. Unless you really want to |
---|
36 | know the OS-specific details about EXPGUI |
---|
37 | on windows, please see the |
---|
38 | <A HREF="expgui_Win_readme.html"> |
---|
39 | "Installating and Updating EXPGUI (& GSAS) on Windows"</A> web page, |
---|
40 | as that discusses a much simpler approach. |
---|
41 | <P> |
---|
42 | These notes are not completely up to date. |
---|
43 | Nonetheless, please report problems, including improvements on |
---|
44 | these instructions to |
---|
45 | <A HREF="mailto:brian.toby@nist.gov">Brian Toby</A>. |
---|
46 | Otherwise, Windows-specific issues are unlikely to be addressed or repaired. |
---|
47 | </EM> |
---|
48 | |
---|
49 | <H2>The old, multistep, process for loading GSAS and EXPGUI</H2> |
---|
50 | If for some reason you want to install GSAS and EXPGUI from the |
---|
51 | component distributions (which are sometimes more recent than the |
---|
52 | single-step file, described above), you can follow the steps listed |
---|
53 | below. |
---|
54 | <P><B>1. Download the following files:</B> |
---|
55 | <UL> |
---|
56 | <I>(Shift-click on the links below to download the files)</I> |
---|
57 | <P> |
---|
58 | <LI>Get |
---|
59 | <A Href="http://www.ncnr.nist.gov/programs/crystallography/software/gsas.html"> |
---|
60 | GSAS</A> from one of the following sites: |
---|
61 | <DL><P> |
---|
62 | <DT>UK<DD> |
---|
63 | |
---|
64 | <A HREF="http://www.nist.gov/cgi-bin/exit_nist.cgi? |
---|
65 | url=http://www.ccp14.ac.uk/ccp/ccp14/ftp-mirror/gsas/public/gsas/windows/gsaskit.exe"> |
---|
66 | http://www.ccp14.ac.uk/ccp/ccp14/ftp-mirror/gsas/public/gsas/windows/gsaskit.exe</A> |
---|
67 | or<BR> |
---|
68 | <A HREF="http://www.nist.gov/cgi-bin/exit_nist.cgi?url= |
---|
69 | ftp://ftp.ccp14.ac.uk/ccp14/ftp-mirror/gsas/public/gsas/windows/gsaskit.exe">ftp://ftp.ccp14.ac.uk/ccp14/ftp-mirror/gsas/public/gsas/windows/gsaskit.exe</A> |
---|
70 | |
---|
71 | <DT>USA<DD> |
---|
72 | <A HREF="http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://www.semo.edu/ccp/ccp14/ftp-mirror/gsas/public/gsas/windows/gsaskit.exe">http://www.semo.edu/ccp/ccp14/ftp-mirror/gsas/public/gsas/windows/gsaskit.exe</A> |
---|
73 | |
---|
74 | <DT>Canada<DD> |
---|
75 | <A HREF="http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://ccp14.sims.nrc.ca/ccp/ccp14/ftp-mirror/gsas/public/gsas/windows/gsaskit.exe">http://ccp14.sims.nrc.ca/ccp/ccp14/ftp-mirror/gsas/public/gsas/windows/gsaskit.exe</A> |
---|
76 | |
---|
77 | <DT>Australia<DD> |
---|
78 | <A HREF="http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://ccp14.minerals.csiro.au/ccp/ccp14/ftp-mirror/gsas/public/gsas/windows/gsaskit.exe">http://ccp14.minerals.csiro.au/ccp/ccp14/ftp-mirror/gsas/public/gsas/windows/gsaskit.exe</A> |
---|
79 | </DL> |
---|
80 | |
---|
81 | <P>be sure to read |
---|
82 | <A HREF="http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://www.ccp14.ac.uk/ccp/ccp14/ftp-mirror/gsas/public/gsas/windows/readme.txt">http://www.ccp14.ac.uk/ccp/ccp14/ftp-mirror/gsas/public/gsas/windows/readme.txt</A> |
---|
83 | <P> |
---|
84 | <P><LI>Get a |
---|
85 | <A Href="http://www.ncnr.nist.gov/programs/crystallography/software/tclpkgs.html"> |
---|
86 | Tcl/Tk</A> distribution<BR> |
---|
87 | I have been using a quite old version (Tcl/Tk v8.2) |
---|
88 | as EXPGUI needed the Winexec package |
---|
89 | <a href="#Winexec">see note 1 below</a>) on Win-95/-98/-ME until version |
---|
90 | 1.73 of EXPGUI. |
---|
91 | <BR> |
---|
92 | <A HREF="ftp://ftp.ncnr.nist.gov/pub/cryst/tcltk/tcltk82blt24qwinexec0601.exe"> |
---|
93 | ftp://ftp.ncnr.nist.gov/pub/cryst/tcltk/tcltk82blt24qwinexec0601.exe</A> |
---|
94 | (2686464 bytes) until very recently. This verion has some problems with Windows |
---|
95 | XP. The single-file self installer now contains a newer release of Tcl/Tk as a |
---|
96 | starkit that contains the |
---|
97 | <A HREF="http://sourceforge.net/projects/tomasoft">Winutils</A> |
---|
98 | package which can subsitute |
---|
99 | for Winexec. This version can be downloaded as |
---|
100 | <A HREF="ftp://ftp.ncnr.nist.gov/pub/cryst/tcltk/tcl84winstarkit.zip"> |
---|
101 | ftp://ftp.ncnr.nist.gov/pub/cryst/tcltk/tcl84winstarkit.zip</A>. |
---|
102 | <P> |
---|
103 | <LI>The |
---|
104 | <A HREF="expgui.html">EXPGUI</A> code<BR> |
---|
105 | The absolute latest release (which may not have gotten |
---|
106 | a lot of testing, but probably has new capabilities and bug fixes) |
---|
107 | is distributed as |
---|
108 | <A HREF="ftp://ftp.ncnr.nist.gov/pub/cryst/gsas/expgui_alpha.zip"> |
---|
109 | ftp://ftp.ncnr.nist.gov/pub/cryst/gsas/expgui_alpha.zip</A><BR> |
---|
110 | You will need an unzip program, such as WinZip or pkZip, to use this file. |
---|
111 | <P> |
---|
112 | You can put these .EXE (and .ZIP) files anywhere on your computer, but make a note of the |
---|
113 | locations for steps 2, 3 and 5, below. |
---|
114 | </UL> |
---|
115 | <P><B>2. Unpack the distributions</B> |
---|
116 | <UL>Use a DOS window to run gsaskit.exe |
---|
117 | and an unzip program (for example Winzip) to unpack Tcl/Tk and EXPGUI. |
---|
118 | For newer versions of Windows, the .zip files can be viewed as |
---|
119 | folders. |
---|
120 | <FONT FACE="COURIER"><PRE> |
---|
121 | mkdir c:\gsas |
---|
122 | chdir c:\gsas |
---|
123 | c:\temp\gsaskit.exe -d |
---|
124 | </PRE></FONT> |
---|
125 | |
---|
126 | <P> |
---|
127 | The previous steps cause the files to be unpacked. The suggested |
---|
128 | locations for installation are: |
---|
129 | <FONT FACE="COURIER"><PRE> |
---|
130 | gsaskit.exe c:\gsas |
---|
131 | EXPGUI c:\gsas\expgui |
---|
132 | Tcl/Tk c:\tcl |
---|
133 | </PRE></FONT> |
---|
134 | |
---|
135 | <P>These files can be located on other disks and in directories with |
---|
136 | other names, but the EXPGUI files |
---|
137 | <I><U>must</U></I> be located in a subdirectory of the GSAS files and |
---|
138 | each directory name should not have a space in the name |
---|
139 | so location |
---|
140 | <font face="courier">Z:\i\think\this\will\work\gsas</font> should be OK, |
---|
141 | as should |
---|
142 | <font face="courier">C:\longwindows\namesarenotgood\fordos</font> |
---|
143 | but you may have trouble with<BR> |
---|
144 | <font face="courier">C:\Program Files\names with spaces\make problems</font> |
---|
145 | probably will break drag-and-drop -- at least for EXPGUI -- on older |
---|
146 | versions of Windows. |
---|
147 | If these files will be located on a fileserver, the file server |
---|
148 | must be mapped as a disk drive (must be assigned a name |
---|
149 | such as F:). But note, installing GSAS on a file server does not |
---|
150 | fully install |
---|
151 | GSAS on each PC that accesses the file server, since short-cuts and |
---|
152 | environment changes are needed. |
---|
153 | </UL> |
---|
154 | <P><B>3. Create a shortcut:</B> |
---|
155 | <UL> |
---|
156 | <LI> |
---|
157 | On a blank part of the Windows desktop, click the <I><U>right</U></I> mouse |
---|
158 | button and then select NEW and then shortcut and click with the <I><U>left</U></I> |
---|
159 | mouse button.</LI> |
---|
160 | |
---|
161 | <LI> |
---|
162 | provide command</LI> |
---|
163 | |
---|
164 | <UL><FONT FACE="COURIER">c:\tcl\bin\wish82.exe c:\gsas\expgui\expgui</FONT></UL> |
---|
165 | </UL> |
---|
166 | |
---|
167 | <UL>(modify previous paths, if you have located the files in different places)</UL> |
---|
168 | |
---|
169 | <UL> |
---|
170 | <LI> |
---|
171 | click on NEXT with the <I><U>left</U></I> mouse button.</LI> |
---|
172 | |
---|
173 | <LI> |
---|
174 | Enter name EXPGUI</LI> |
---|
175 | |
---|
176 | <LI> |
---|
177 | click on FINISH with the <I><U>left</U></I> mouse button.</LI> |
---|
178 | </UL> |
---|
179 | |
---|
180 | <UL>You may want to modify the shortcut by modifying the properties to |
---|
181 | change the icon or the default properties.</UL> |
---|
182 | <B>4. Delete the downloaded files to save space (optional)</B> |
---|
183 | |
---|
184 | <P>More information about EXPGUI, including information on how it |
---|
185 | can be customized, can be found on web pages <A HREF="expgui.html">expgui.html</A> |
---|
186 | and <A HREF="expgui_cfg.html">expgui_cfg.html</A>, |
---|
187 | found in the \gsas\expgui\doc directory. |
---|
188 | <BR> |
---|
189 | <H2> |
---|
190 | <a name="Winexec"></a>Questions</H2> |
---|
191 | 1. Can I use a different version of Tcl/Tk than the one here? |
---|
192 | <UL>Yes -- but: you will need both Tcl/Tk and the Winexec package (see |
---|
193 | http://www.du.edu/~mschwart/tcl-tk.htm) |
---|
194 | or the package |
---|
195 | <A HREF="http://sourceforge.net/projects/tomasoft">Winutils</A> |
---|
196 | (<A HREF="http://cvs.sourceforge.net/viewcvs.py/*checkout*/tomasoft/winutils/winutils.html?rev=1.15">documentation</A>) |
---|
197 | for the GUI to work |
---|
198 | with Windows-95, -98 and -me. Further, |
---|
199 | several utility routines (for example, liveplot and widplt) |
---|
200 | require the BLT package to be properly configured as a loadable |
---|
201 | package to run. If you care what vintage of Tcl/Tk you are using, you are |
---|
202 | obviously a "power user" so take a look at the pkgIndex.tcl files and fix |
---|
203 | your version, if you get an error about loading Blt_ZoomStack. |
---|
204 | Please note that EXPGUI seems to run very |
---|
205 | slowly in Tcl/Tk version 8.1, but OK in 8.0 and 8.2. |
---|
206 | <BR> </UL> |
---|
207 | 2. Do I need to modify the PATH, etc in my AUTOEXEC.BAT file or in my Start/Settings/... menus? |
---|
208 | <UL>Only if you will use the PC-GSAS program as well as EXPGUI. |
---|
209 | If so, do follow the steps in the |
---|
210 | <A HREF="http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://www.ccp14.ac.uk/ccp/ccp14/ftp-mirror/gsas/public/gsas/windows/readme.txt"> |
---|
211 | GSAS readme file</A>) |
---|
212 | <P> |
---|
213 | Note, to add more environment space in Win95/98, add the following line to the |
---|
214 | CONFIG.SYS file in the root directory |
---|
215 | <FONT FACE="COURIER"><PRE> |
---|
216 | SHELL=C:\WINDOWS\COMMAND.COM /P /E:4096 |
---|
217 | </PRE></FONT> |
---|
218 | add the following line to the SYSTEM.INI file (in c:\windows) under |
---|
219 | the heading [NonWindowsApp] |
---|
220 | <FONT FACE="COURIER"><PRE> |
---|
221 | |
---|
222 | CommandEnvSize=2424 |
---|
223 | </PRE></FONT> |
---|
224 | (thanks to Louis Farrugia [louis@chem.gla.ac.uk] for this). |
---|
225 | |
---|
226 | </UL> |
---|
227 | 3. What versions of Windows can I use? |
---|
228 | <UL>As far as I am aware, EXPGUI will run under all releases of Windows from |
---|
229 | -95 through -XP, but it is not tested here on most of those platforms. |
---|
230 | I depend on feedback from users to tell me of OS conflicts, but none have |
---|
231 | been reported. |
---|
232 | </UL> |
---|
233 | 4. EXPGUI seems pretty slow, or is it my imagination? |
---|
234 | <UL> |
---|
235 | Well, actually the problem is Windows. EXPGUI is pretty zippy in LINUX, |
---|
236 | but some operations |
---|
237 | (reading a histogram in liveplot for example) can take 3-5 times |
---|
238 | longer in Windows than in UNIX on the exact same hardware. |
---|
239 | By all means, take this up with the folks in Redmond, WA. |
---|
240 | |
---|
241 | </UL> |
---|
242 | 5. When I run one of the GSAS graphics programs (POWPLOT, RAWPLOT,...) the |
---|
243 | program starts, and I can answer questions, but when it comes to the part |
---|
244 | of the program that should display a plot, I get no plot (and possibly |
---|
245 | the DOS window disappears without a trace.) |
---|
246 | <UL> |
---|
247 | There are two problems I know of that can cause graphics errors: |
---|
248 | One is that the graphics package (PGPLOT) cannot find the PGPLOT_FONT |
---|
249 | environment variable (that points to file GRFONT.DAT). EXPGUI does this |
---|
250 | for you and warns if it can't find this file, so the likely reason is |
---|
251 | that you are out of environment space (see 2, above). |
---|
252 | <P> |
---|
253 | The other appears to be a graphics mode problem. Not all modes work |
---|
254 | on all machines. Try mode A. If you still have problems, see if it is an |
---|
255 | EXPGUI problem: Try using a plotting program |
---|
256 | (RAWPLOT is a good choice) from PC-GSAS or GSAS.BAT. If the plotting |
---|
257 | program does not work there either, first check PGPLOT_FONT is defined |
---|
258 | (by opening a DOS box and type SET, also see question 2, above.) |
---|
259 | If the plotting program runs in PC-GSAS or GSAS.BAT but not EXPGUI, you have a |
---|
260 | real EXPGUI bug and should bug me. |
---|
261 | |
---|
262 | </UL> |
---|
263 | <a name="NetPath"></a> |
---|
264 | 6. Can GSAS and EXPGUI be located on a shared network drive? |
---|
265 | <UL> |
---|
266 | Yes. With earlier versions of GSAS path had to be mapped to a |
---|
267 | "logical drive." (e.g. F:). In the current versions of GSAS, this does not |
---|
268 | seem to be needed, but |
---|
269 | EXPGUI will warn you, if you try to do this, since I am not certain |
---|
270 | that this works. |
---|
271 | <P> |
---|
272 | I do not know if GSAS will work properly with |
---|
273 | experiment and data files on a networked drive without mapping the |
---|
274 | path to a "logical drive." |
---|
275 | There are some definite problems in GSAS where directory and file |
---|
276 | names contain |
---|
277 | spaces. EXPGUI should help avoid some of these problems, so if you find |
---|
278 | anything file names that break EXPGUI & GSAS, let me know how to |
---|
279 | duplicate exactly what you are doing. |
---|
280 | </UL> |
---|
281 | |
---|
282 | </UL> |
---|
283 | |
---|
284 | <H2> |
---|
285 | Acknowledgements</H2> |
---|
286 | Thanks to <A HREF="http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://www.xraylith.wisc.edu/~khan/software/tcl/index.html#tcltk-80p2-ming">Mumit |
---|
287 | Khan</A> for help with Tcl/Tk on Windows |
---|
288 | and to <A HREF="http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://www.du.edu/~mschwart/tcl-tk.htm">Michael |
---|
289 | I. Schwartz</A> for the Winexec package, which is needed to allow Tcl/Tk to run |
---|
290 | the GSAS DOS .exe files. |
---|
291 | <P> |
---|
292 | <A Href="http://www.ncnr.nist.gov/programs/crystallography/software/gsas.html"> |
---|
293 | GSAS</A> |
---|
294 | is written by Allen C. Larson and Robert B. Von Dreele, MS-H805, |
---|
295 | Los Alamos National Laboratory, Los Alamos, NM 87545. Problems, questions |
---|
296 | or kudos concerning GSAS should be sent to Robert B. Von Dreele at |
---|
297 | <A HREF="MAILTO:vondreele@anl.gov">vondreele@anl.gov</A> |
---|
298 | <P>EXPGUI is written by Brian H. Toby of the NIST Center for Neutron Research, |
---|
299 | <A HREF="MAILTO:Brian.Toby@NIST.GOV">Brian.Toby@NIST.GOV</A> |
---|
300 | with help from Jonathan Wasserman. |
---|
301 | |
---|
302 | <P> |
---|
303 | <hr><blockquote> |
---|
304 | GSAS is Copyright, 1984-1997, The Regents of the University of California. |
---|
305 | The GSAS software was produced under a U.S. Government contract (W-7405-ENG-36) |
---|
306 | by the Los Alamos National Laboratory, which is operated by the University |
---|
307 | of California for the U.S. Department of Energy. The U.S. Government is |
---|
308 | licensed to use, reproduce, and distribute this software. Permission is |
---|
309 | granted to the public to copy and use this software without charge, provided |
---|
310 | that this notice and any statement of authorship are reproduced on all |
---|
311 | copies. Neither the Government nor the University makes any warranty, express |
---|
312 | or implied, or assumes any liability or responsibility for the use of this |
---|
313 | software. |
---|
314 | |
---|
315 | <P>EXPGUI is not subject to copyright. Have fun with it. |
---|
316 | |
---|
317 | <p>Neither the U.S. Government nor any author makes any warranty, |
---|
318 | expressed or implied, or assumes any liability or responsibility |
---|
319 | for the use of this information or the software described |
---|
320 | here. Brand names cited here are used for |
---|
321 | identification purposes and do not consitute an endorsement by NIST. |
---|
322 | </blockquote> |
---|
323 | <hr> |
---|
324 | <TABLE BORDER BGCOLOR="#FFFF40" ALIGN=RIGHT> |
---|
325 | <TR><TH><A Href="expgui.html">EXPGUI home</A> |
---|
326 | </TH></TR></TABLE> |
---|
327 | |
---|
328 | <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> |
---|
329 | <font size=-1><? lastmod(); ?> </font> |
---|
330 | <br> |
---|
331 | $Revision: 808 $ $Date: 2009-12-04 23:12:24 +0000 (Fri, 04 Dec 2009) $ |
---|
332 | </blockquote> |
---|
333 | </body> |
---|
334 | </html> |
---|