Changeset 548
- Timestamp:
- Dec 4, 2009 5:08:01 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/expgui_Unix_readme.html
- Property rcs:date changed from 2001/12/19 18:55:42 to 2002/01/23 19:59:22
- Property rcs:lines changed from +39 -27 to +60 -41
- Property rcs:rev changed from 1.15 to 1.16
r514 r548 34 34 </H1></CENTER> 35 35 Note that root access is not required to load GSAS, Tcl/Tk and 36 <A HREF="expgui.html">EXPGUI</A>. 37 38 <H2>0. Prerequisites</H2> 36 <A HREF="expgui.html">EXPGUI</A>, unless the files will be put in 37 a central location (such as /usr/local) or you will use the RPM package. 38 39 <H2>0. A one-step process for Linux</H2> 40 Many Linux releases incorporate a package-loading program called RPM. 41 The RPM package file loads, <A Href="http://www.ncnr.nist.gov/programs/crystallography/software/gsas.html">GSAS</A> and 42 <A Href="http://www.ncnr.nist.gov/xtal/software/expgui"> 43 EXPGUI</A>, as well as checks that your Linux system has been configured 44 properly to run these programs (for example, has Tcl/Tk and BLT loaded). 45 The most recent <font face="courier">GSAS-EXPGUI-yyyy.mm.dd-x.i386.rpm</font> 46 file 47 (where yyyy, mm & dd are year, month and day) 48 can be found in directory 49 <a href="ftp://ftp.ncnr.nist.gov/pub/cryst/gsas"> 50 ftp://ftp.ncnr.nist.gov/pub/cryst/gsas</a> or a CCP14 mirror site. 51 See the 52 <A Href="http://www.ncnr.nist.gov/xtal/software/installGSASrpm.html">RPM instructions</a> 53 for details on how to load this package, 54 rather than the following paragraphs. 55 56 <H2>1. Prerequisites</H2> 39 57 40 58 I will assume that you already have the Tcl/Tk package loaded on your computer. If this … … 60 78 61 79 <H2> 62 1. EXPGUI Downloading</H2>80 2. EXPGUI Downloading</H2> 63 81 download file 64 82 <A HREF="ftp://ftp.ncnr.nist.gov/pub/cryst/gsas/expgui.tar.gz"> … … 86 104 </UL>Transfer the appropriate file by shift-clicking on the appropriate link. 87 105 <H2> 88 2. EXPGUI Installation</H2>106 3. EXPGUI Installation</H2> 89 107 A few short steps are needed to load EXPGUI on your computer. 90 108 <H3> 91 109 2.1 Create a directory and restore the files</H3> 92 110 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 111 directory</B>, by convention I assume the directory name 112 <font face="courier">expgui</font>, but this is 94 113 not required. Thus, if you have located the GSAS package in 95 < TT>/usr/local/gsas</TT> (so that there is a directory96 < TT>/usr/local/gsas/exe</TT>, <TT>/usr/local/gsas/data</TT>, ...)114 <FONT FACE="COURIER">/usr/local/gsas</FONT> (so that there is a directory 115 <FONT FACE="COURIER">/usr/local/gsas/exe</FONT>, <FONT FACE="COURIER">/usr/local/gsas/data</FONT>, ...) 97 116 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.117 these files in <FONT FACE="COURIER">/usr/local/gsas/expgui</FONT> but any subdirectory, 118 such as <FONT FACE="COURIER">/usr/local/gsas/tcl</FONT> will work fine. 100 119 Change the subsequent commands if GSAS is located somewhere 101 other than < TT>/usr/local/gsas</TT>.102 103 < PRE>120 other than <FONT FACE="COURIER">/usr/local/gsas</FONT>. 121 122 <FONT FACE="COURIER"><PRE> 104 123 cd /usr/local/gsas 105 124 mkdir expgui 106 125 cd expgui 107 126 gunzip < [/path/]expgui.tar.gz | tar xvf - 108 </PRE> 127 </PRE></FONT> 109 128 <P>When restoring the GSAS files from the tar file, 110 note that < TT>[/path/]</TT> in the example above indicates the location129 note that <FONT FACE="COURIER">[/path/]</FONT> in the example above indicates the location 111 130 where you downloaded the tar file in section 2, above. 112 131 … … 114 133 2.2 Installing a shortcut to EXPGUI</H3> 115 134 While it is possible to invoke EXPGUI by typing 116 < PRE>135 <FONT FACE="COURIER"><PRE> 117 136 wish /usr/local/gsas/expgui/expgui 118 </PRE> 137 </PRE></FONT> 119 138 or 120 < PRE>139 <FONT FACE="COURIER"><PRE> 121 140 /home/toby/mywish/wish /home/toby/mygsas/expgui/expgui 122 </PRE> 141 </PRE></FONT> 123 142 or whatever, you will likely want to create an easier command to type. 124 143 Below are three ways to do this. Note that only one is needed. Do not use all … … 126 145 127 146 <em>Also, note that in the commands below, 128 </em>< TT>^D</TT><em> means control-D.</em>147 </em><FONT FACE="COURIER">^D</FONT><em> means control-D.</em> 129 148 130 149 … … 133 152 <P>To use EXPGUI, you probably need to create an easy way to access it. 134 153 One way to do this is to add an alias to your ~/.cshrc file: 135 < PRE>154 <FONT FACE="COURIER"><PRE> 136 155 cat >> ~/.cshrc 137 156 alias expgui "wish /usr/local/gsas/expgui/expgui" 138 157 ^D 139 </PRE> 158 </PRE></FONT> 140 159 <H4> 141 160 2.2b Installing EXPGUI in the path</H4> … … 143 162 Another way to simplify access to EXPGUI 144 163 is to create a file which will execute the GUI script from 145 a command in your system's path, for example < TT>/usr/bin</TT>.146 < PRE>164 a command in your system's path, for example <FONT FACE="COURIER">/usr/bin</FONT>. 165 <FONT FACE="COURIER"><PRE> 147 166 cat > /usr/bin/expgui 148 167 wish /usr/local/gsas/expgui/expgui 149 168 ^D 150 169 chmod +x /usr/bin/expgui 151 </PRE> 170 </PRE></FONT> 152 171 <I>Note that this step (2.2b) is incompatible with the one below (2.2c).</I> 153 172 <H4> … … 157 176 is to create a link in your system's path to the GUI script. 158 177 Note that you may need to modify the first line of 159 < TT>/usr/local/gsas/expgui/expgui</TT>, if wish is located somewhere160 other than < TT>/usr/local/bin/wish</TT>.161 162 < PRE>178 <FONT FACE="COURIER">/usr/local/gsas/expgui/expgui</FONT>, if wish is located somewhere 179 other than <FONT FACE="COURIER">/usr/local/bin/wish</FONT>. 180 181 <FONT FACE="COURIER"><PRE> 163 182 chmod +x /usr/local/gsas/expgui/expgui 164 183 ln -s /usr/local/gsas/expgui/expgui /usr/bin/expgui 165 </PRE> 184 </PRE></FONT> 166 185 <I>Note that this step (2.2c) is incompatible with the one above (2.2b).</I> 167 186 </UL> … … 172 191 directory with the GSAS executable files, 173 192 for example in /usr/local/gsas/exe/. 174 < PRE>193 <FONT FACE="COURIER"><PRE> 175 194 cd /usr/local/gsas/exe 176 195 gunzip < [/path/]exptool.tar.gz | tar xvf - 177 </PRE> 196 </PRE></FONT> 178 197 179 198 <a name="testtcltk"></a><H2> 180 199 Is Tcl/Tk installed already?</H2> 181 200 To test if Tcl/Tk is installed correctly on your system 182 do the following commands. (Commands you type are in this < tt>typewriter</tt>183 font, computer responses are this < tt><I>italic font</I></tt>.201 do the following commands. (Commands you type are in this <font face="courier">typewriter</font> 202 font, computer responses are this <font face="courier"><I>italic font</I></font>. 184 203 My comments are provided in this text font and are <U>underlined</U>). 185 204 <UL> 186 205 <TABLE> 187 <TR><TD>< tt>[tammy@beryl tammy]$ wish</tt></TD>206 <TR><TD><font face="courier">[tammy@beryl tammy]$ wish</font></TD> 188 207 <TD><U>(note a window is created)</U></TD></TR> 189 <TR><TD>< tt><I>%</I> set tcl_version</TD></TR>190 <TR><TD>< tt><I>8.0</I></tt></TD>208 <TR><TD><font face="courier"><I>%</I> set tcl_version</font></TD></TR> 209 <TR><TD><font face="courier"><I>8.0</I></font></TD> 191 210 <TD><U>(8.0 is the Tcl/Tk version number. EXPGUI requires 8.0 or higher)</U></TD></TR> 192 <TR><TD>< tt><I>%</I> package require BLT</tt></TD></TR>193 <TR><TD>< tt><I>2.4</I></tt></TD>211 <TR><TD><font face="courier"><I>%</I> package require BLT</font></TD></TR> 212 <TR><TD><font face="courier"><I>2.4</I></font></TD> 194 213 <TD><U>(2.4 is the BLT package version number. 195 214 EXPGUI requires 2.3 or higher. 196 215 If you get "can't find package BLT" then 197 216 BLT is not installed [properly] on your system)</U></TD></TR> 198 <TR><TD>< tt><I>%</I> blt::graph .g</tt></TD></TR>199 <TR><TD>< tt><I>.g</I></tt></TD>217 <TR><TD><font face="courier"><I>%</I> blt::graph .g</font></TD></TR> 218 <TR><TD><font face="courier"><I>.g</I></font></TD> 200 219 <TD><U>(nothing happens. You should not get an error message here.)</U></TD></TR> 201 <TR><TD>< tt><I>%</I> pack .g</tt></TD>220 <TR><TD><font face="courier"><I>%</I> pack .g</font></TD> 202 221 <TD><U>(now a graph is displayed)</U></TD></TR> 203 <TR><TD>< tt><I>%</I> Blt_ZoomStack .g</tt></TD>222 <TR><TD><font face="courier"><I>%</I> Blt_ZoomStack .g</font></TD> 204 223 <TD><U>(if error message: invalid command name "Blt_ZoomStack" appears 205 224 there is a problem with your BLT installation, see below.)</U></TD></TR>
Note: See TracChangeset
for help on using the changeset viewer.