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 | |
---|
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 | <P> |
---|
44 | Likewise, I will assume you have also loaded the appropriate GSAS release, if not see |
---|
45 | <A HREF="http://www.ncnr.nist.gov/programs/crystallography/software/unixgsas.html"> |
---|
46 | http://www.ncnr.nist.gov/programs/crystallography/software/unixgsas.html |
---|
47 | </A> for installation instructions. |
---|
48 | |
---|
49 | <P>More information about EXPGUI, including information on how it |
---|
50 | can be customized, can be found on web pages <A HREF="expgui.html">expgui.html</A> |
---|
51 | and <A HREF="expgui_cfg.html">expgui_cfg.html</A>, found in the gsas/expgui/doc directory. |
---|
52 | |
---|
53 | <H2> |
---|
54 | 1. EXPGUI Downloading</H2> |
---|
55 | download file |
---|
56 | <A HREF="ftp://ftp.ncnr.nist.gov/pub/cryst/gsas/expgui.tar.gz"> |
---|
57 | ftp://ftp.ncnr.nist.gov/pub/cryst/gsas/expgui.tar.gz</A> (~300 K) |
---|
58 | by shift-clicking on the previous link. |
---|
59 | <P> |
---|
60 | If you want to try the latest release (which may not have gotten |
---|
61 | a lot of testing, but probably has new bug fixes and capabilities) shift-click |
---|
62 | on <A HREF="ftp://ftp.ncnr.nist.gov/pub/cryst/gsas/expgui_ALPHA.tar.gz"> |
---|
63 | ftp://ftp.ncnr.nist.gov/pub/cryst/gsas/expgui_ALPHA.tar.gz</A> |
---|
64 | <P> |
---|
65 | If you are using an older version of GSAS (before April, 2000) you may |
---|
66 | want to download the TCLDUMP program to speed and enhance liveplot and the |
---|
67 | EXPTOOL program which allows EXPGUI to add phases, histograms and atoms |
---|
68 | to .EXP files. More recent versions of GSAS include these programs in the |
---|
69 | distributions. |
---|
70 | <UL> |
---|
71 | <LI>LINUX: <BR> |
---|
72 | <A HREF="ftp://ftp.ncnr.nist.gov/pub/cryst/gsas/exe_linux/tcldump.tar.gz"> |
---|
73 | ftp://ftp.ncnr.nist.gov/pub/cryst/gsas/exe_linux/tcldump.tar.gz</A> (~65 K) |
---|
74 | <BR> |
---|
75 | <A HREF="ftp://ftp.ncnr.nist.gov/pub/cryst/gsas/exe_linux/exptool.tar.gz"> |
---|
76 | ftp://ftp.ncnr.nist.gov/pub/cryst/gsas/exe_linux/exptool.tar.gz</A> (~292 K) |
---|
77 | </LI><P> |
---|
78 | or |
---|
79 | <P> |
---|
80 | <LI>Silicon Graphics: <BR> |
---|
81 | <A HREF="ftp://ftp.ncnr.nist.gov/pub/cryst/gsas/exe_sgi/tcldump.tar.gz"> |
---|
82 | ftp://ftp.ncnr.nist.gov/pub/cryst/gsas/exe_sgi/tcldump.tar.gz</A> (~45 K) |
---|
83 | <BR> |
---|
84 | <A HREF="ftp://ftp.ncnr.nist.gov/pub/cryst/gsas/exe_sgi/exptool.tar.gz"> |
---|
85 | ftp://ftp.ncnr.nist.gov/pub/cryst/gsas/exe_sgi/exptool.tar.gz</A> (~377 K) |
---|
86 | </UL>Transfer the files by shift-clicking on the appropriate links. |
---|
87 | <H2> |
---|
88 | 2. EXPGUI Installation</H2> |
---|
89 | A few short steps are needed to load EXPGUI on your computer. |
---|
90 | <H4> |
---|
91 | 2.1 Create a directory and restore the files</H4> |
---|
92 | The EXPGUI scripts are set up to be run from a <B>subdirectory in the main GSAS |
---|
93 | directory</B>, by convention I assume the directory name <tt>expgui</tt>, but this is |
---|
94 | not required. Thus, if you have located the GSAS package in |
---|
95 | <TT>/usr/local/gsas</TT> (so that there is a directory |
---|
96 | <TT>/usr/local/gsas/exe</TT>, <TT>/usr/local/gsas/data</TT>, ...) |
---|
97 | I assume you will put |
---|
98 | these files in <TT>/usr/local/gsas/expgui</TT> but any subdirectory, |
---|
99 | such as <TT>/usr/local/gsas/tcl</TT> will work fine. |
---|
100 | Change the subsequent commands if GSAS is located somewhere |
---|
101 | other than <TT>/usr/local/gsas</TT>. |
---|
102 | |
---|
103 | <PRE> |
---|
104 | cd /usr/local/gsas |
---|
105 | mkdir expgui |
---|
106 | cd expgui |
---|
107 | gunzip < [/path/]expgui.tar.gz | tar xvf - |
---|
108 | </PRE> |
---|
109 | <P>When restoring the GSAS files from the tar file, |
---|
110 | note that <TT>[/path/]</TT> in the example above indicates the location |
---|
111 | where you downloaded the tar file in section 2, above. |
---|
112 | |
---|
113 | <H4> |
---|
114 | 2.2a Installing a shortcut to EXPGUI in .cshrc</H4> |
---|
115 | <P>To use EXPGUI, you probably need to create an easy way to access it. |
---|
116 | One way to do this is to add an alias to your ~/.cshrc file: |
---|
117 | <PRE> |
---|
118 | cat >> ~/.cshrc |
---|
119 | alias expgui "wish /usr/local/gsas/expgui/expgui" |
---|
120 | ^D |
---|
121 | </PRE> |
---|
122 | <H4> |
---|
123 | 2.2b Installing EXPGUI in the path</H4> |
---|
124 | <P> |
---|
125 | Another way to simplify access to EXPGUI |
---|
126 | is to create a file which will execute the GUI script from |
---|
127 | a command in your system's path, for example <TT>/usr/bin</TT>. |
---|
128 | <PRE> |
---|
129 | cat > /usr/bin/expgui |
---|
130 | wish /usr/local/gsas/expgui/expgui |
---|
131 | ^D |
---|
132 | chmod +x /usr/bin/expgui |
---|
133 | </PRE> |
---|
134 | <H4> |
---|
135 | 2.2c Linking EXPGUI in the path</H4> |
---|
136 | <P> |
---|
137 | Another way to simplify access to EXPGUI |
---|
138 | is to create a link in your system's path to the GUI script. |
---|
139 | Note that you may need to modify the first line of |
---|
140 | <TT>/usr/local/gsas/expgui/expgui</TT>, if wish is located somewhere |
---|
141 | other than <TT>/usr/local/bin/wish</TT>. |
---|
142 | |
---|
143 | <PRE> |
---|
144 | chmod +x /usr/local/gsas/expgui/expgui |
---|
145 | ln -s /usr/local/gsas/expgui/expgui /usr/bin/expgui |
---|
146 | </PRE> |
---|
147 | |
---|
148 | <em>Note that in the above commands </em><TT>^D</TT><em> means control-D.</em> |
---|
149 | |
---|
150 | <H4> |
---|
151 | 2.3 Installing TCLDUMP</H4> |
---|
152 | If not already present, the TCLDUMP program should be located with all of the GSAS executable files, for example in /usr/local/gsas/exe/. |
---|
153 | <PRE> |
---|
154 | cd /usr/local/gsas/exe |
---|
155 | gunzip < [/path/]tcldump.tar.gz | tar xvf - |
---|
156 | </PRE> |
---|
157 | |
---|
158 | <H4> |
---|
159 | 2.4 Installing EXPTOOL</H4> |
---|
160 | If not already present, the EXPTOOL program should be located with all of the GSAS executable files, |
---|
161 | for example in /usr/local/gsas/exe/. |
---|
162 | <PRE> |
---|
163 | cd /usr/local/gsas/exe |
---|
164 | gunzip < [/path/]exptool.tar.gz | tar xvf - |
---|
165 | </PRE> |
---|
166 | |
---|
167 | <hr> |
---|
168 | <A Href="http://www.ncnr.nist.gov/programs/crystallography/software/gsas.html"> |
---|
169 | GSAS</A> |
---|
170 | 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"> |
---|
171 | Robert B. Von Dreele</A>, MS-H805, |
---|
172 | Los Alamos National Laboratory, Los Alamos, NM 87545. Problems, questions |
---|
173 | or kudos concerning GSAS should be sent to Robert B. Von Dreele at |
---|
174 | <A HREF="MAILTO:vondreele@lanl.gov">vondreele@lanl.gov</A> |
---|
175 | <P>GSAS is Copyright, 1984-1997, The Regents of the University of California. |
---|
176 | The GSAS software was produced under a U.S. Government contract (W-7405-ENG-36) |
---|
177 | by the Los Alamos National Laboratory, which is operated by the University |
---|
178 | of California for the U.S. Department of Energy. The U.S. Government is |
---|
179 | licensed to use, reproduce, and distribute this software. Permission is |
---|
180 | granted to the public to copy and use this software without charge, provided |
---|
181 | that this notice and any statement of authorship are reproduced on all |
---|
182 | copies. Neither the Government nor the University makes any warranty, express |
---|
183 | or implied, or assumes any liability or responsibility for the use of this |
---|
184 | software. |
---|
185 | <P>EXPGUI is written by Brian H. Toby of the NIST Center for Neutron Research, |
---|
186 | <A HREF="MAILTO:Brian.Toby@NIST.GOV">Brian.Toby@NIST.GOV</A> |
---|
187 | with help from Jonathan Wasserman. |
---|
188 | |
---|
189 | <P>EXPGUI is not subject to copyright. Have fun with it. |
---|
190 | |
---|
191 | <p>Neither the U.S. Government nor any author makes any warranty, |
---|
192 | expressed or implied, or assumes any liability or responsibility |
---|
193 | for the use of this information or the software described |
---|
194 | here. Brand names cited here are used for |
---|
195 | identification purposes and do not consitute an endorsement by NIST. |
---|
196 | |
---|
197 | <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>) |
---|
198 | <br> |
---|
199 | $Revision: 242 $ $Date: 2009-12-04 23:02:46 +0000 (Fri, 04 Dec 2009) $ |
---|
200 | </body> |
---|
201 | </html> |
---|