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