Changeset 813 for trunk/doc/osx.html
- Timestamp:
- Dec 4, 2009 5:12:29 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/osx.html
- Property rcs:date changed from 2004/01/30 00:47:28 to 2004/09/28 22:41:00
- Property rcs:lines changed from +206 -158 to +126 -161
- Property rcs:rev changed from 1.3 to 1.4
r773 r813 31 31 32 32 This page contains information on installing and running GSAS & EXPGUI 33 on Macintosh OS X computers. The software has been built using OS X 10.2. 633 on Macintosh OS X computers. The software has been built using OS X 10.2.8 34 34 and has been installed successfully on 10.2 and 10.3 machines. 35 35 36 36 <h2>Installation</H2> 37 The following summarizes the steps needed to load prerequisite software 38 as well as the GSAS/EXPGUI distribution. 39 I presume that most Mac users will probably have already installed X11 and 40 FINK on their computers. I have very limited experience with this, so please 41 do not contact me for help with steps 1-3. However,42 most OS X books can provide more details beyond what is given here. 37 <IMG SRC="new.gif" HEIGHT=13 WIDTH=36 alt="New!"> 38 Installation has been dramatically simplified. You may still want 39 to install the development environment (XCODE) and Fink, but these are no 40 longer required to install and run GSAS and EXPGUI. GSAS & EXPGUI now contains 41 a copy of the Tcl/Tk package (that includes BLT), so installation of this 42 package is also now optional. 43 43 44 44 <OL> 45 45 <P><LI>Install X11 46 46 <DL><DL><I> 47 This can be done from your OS (Jaguar or Panther) CD-ROM or can be 48 downloaded from 49 <a href="http://www.nist.gov/cgi-bin/exit_nist.cgi?url= 47 Before you can run the GSAS package (or, for that matter, 48 a large number of other Unix-derived graphics applications), 49 you need to load the X Windows system (X11) onto your computer. </I> 50 <P> 51 For 10.2 (Jaguar), this is a bit complex to explain, 52 so you will need to do some searching on the web, find a guru or 53 consult one of the many Mac OS X books that cover this subject. 54 <P> 55 For 10.3 (Panther), Apple bundles a version of X11 with the OS 56 and installing can be 57 very simple. It can be installed directly from CD-ROM #3 of the OS X 58 distribution CD disks. To install X11, insert CDROM #3, then click on the 59 Packages folder and within that folder, click on X11User.pkg. Read the 60 installation screens, click on the "next" button a few times, and 61 X11 is installed. 62 <P> 63 X11 for 10.3 can also be downloaded 64 from Apple 65 (<a href="http://www.nist.gov/cgi-bin/exit_nist.cgi?url= 50 66 http://www.apple.com/macosx/features/x11/download/" 51 >http://www.apple.com/macosx/features/x11/download/ 52 </A>. </I> 53 </DL></DL> 54 55 <P><LI>Install FINK 56 <DL><DL><I> 57 To do this, you will need to install the Development Tools, 58 which are distributed with OS X as well as the FINK package, 59 which can be downloaded from 60 <a href="http://www.nist.gov/cgi-bin/exit_nist.cgi?url= 61 http://fink.sourceforge.net/" 62 >http://fink.sourceforge.net/ 63 </A>. Download the package and then double-click on it. 64 </I> 65 </DL></DL> 66 67 68 <P><LI>Download and install required packages. 69 <DL><DL><I> 70 GSAS requires the "Portable Network Graphics" (libpng3) library. 71 EXPGUI requires the X11 (not Aqua) version of Tcl/Tk package; 72 installation of the BLT add-on for Tcl/Tk is needed for plotting 73 from EXPGUI (for example, <A Href="liveplot.html">LIVEPLOT</A>). 74 There are many ways to install this software. 75 One way is to type in <a href="#FinkAptGet">Fink (apt-get) commands, as 76 described below.</a> 77 A more "Mac-appropriate" approach is to avoid use of the command line 78 completely and with a user-friendly front-end, 79 <a href="#FinkCommander">FinkCommander, also described below.</a></I> 67 >http://www.apple.com/macosx/features/x11/download/</A>). 68 <P> 69 If you have a PowerBook that shipped with 10.3, you may have your 70 OS X distribution on two DVDs, so you don't have CDROM #3. 71 While Apple technical support does not appear to know this 72 (or at least they did not, when I called), 73 you can find the X11 package in a folder hidden on the DVD. 74 Use the finder Go/"Go to folder" (shift-command-G) menu item to open 75 hidden folder <tt>/Volumes/PowerBook Software/System</tt> 76 on the first Powerbook software DVD; 77 then double-click on the <tt>Installation</tt> folder 78 to open it and then open the <tt>Packages</tt> folder. 79 (Yes, you could have typed 80 <tt>/Volumes/PowerBook Software/System/Installation/Packages</tt>, 81 but why buy a Mac if you like to type long names?). 82 Finally, double-click on the X11User.pkg file and X11 is installed. 83 Just like that! 80 84 </DL></DL> 81 85 … … 84 88 <I>Download this file from the NIST website:</I> 85 89 <BR> 86 <a href="ftp://ftp.ncnr.nist.gov/pub/cryst/gsas/osx_gsas kit.dmg">87 ftp://ftp.ncnr.nist.gov/pub/cryst/gsas/osx_gsas kit.dmg</a> (~7Mb)90 <a href="ftp://ftp.ncnr.nist.gov/pub/cryst/gsas/osx_gsasexpgui.dmg"> 91 ftp://ftp.ncnr.nist.gov/pub/cryst/gsas/osx_gsasexpgui.dmg</a> (~13 Mb) 88 92 <BR> 89 93 <I>These files can also be downloaded from the CCP14 mirrors:</I> 90 94 [(<a href="http://www.nist.gov/cgi-bin/exit_nist.cgi?url= 91 http://www.ccp14.ac.uk/ccp/ccp14/ftp-mirror/briantoby/pub/cryst/gsas/osx_gsas kit.dmg"95 http://www.ccp14.ac.uk/ccp/ccp14/ftp-mirror/briantoby/pub/cryst/gsas/osx_gsasexpgui.dmg" 92 96 >UK</a>), 93 97 (<a href="http://www.nist.gov/cgi-bin/exit_nist.cgi?url= 94 http://ccp14.sims.nrc.ca/ccp/ccp14/ftp-mirror/briantoby/pub/cryst/gsas/osx_gsas kit.dmg"98 http://ccp14.sims.nrc.ca/ccp/ccp14/ftp-mirror/briantoby/pub/cryst/gsas/osx_gsasexpgui.dmg" 95 99 >Canada</a>), 96 100 (<a href="http://www.nist.gov/cgi-bin/exit_nist.cgi? 97 url=http://ccp14.semo.edu/ccp/ccp14/ftp-mirror/briantoby/pub/cryst/gsas/osx_gsas kit.dmg"101 url=http://ccp14.semo.edu/ccp/ccp14/ftp-mirror/briantoby/pub/cryst/gsas/osx_gsasexpgui.dmg" 98 102 >US</a>) or 99 103 (<a href="http://www.nist.gov/cgi-bin/exit_nist.cgi?url= 100 http://ccp14.minerals.csiro.au/ccp/ccp14/ftp-mirror/briantoby/pub/cryst/gsas/osx_gsas kit.dmg"104 http://ccp14.minerals.csiro.au/ccp/ccp14/ftp-mirror/briantoby/pub/cryst/gsas/osx_gsasexpgui.dmg" 101 105 >Australia</a>)]. 102 106 <P> 103 107 104 <I>What happens when you download this file depends on your method for105 downloading. Some browsers will automatically perform the next step for106 you:</I>107 <P>108 108 Mount this file by double-clicking on it. This should create a new volume in 109 109 your top-level ("Computer") called "GSASvol"; clicking on this device will open 110 110 a finder window with a single folder ("gsas") present. 111 <P> 111 (<I>Note that some browsers will automatically perform this step for 112 you.</I>) 113 <P> 114 112 115 <I>While you can run GSAS & EXPGUI from this location, you are strongly 113 116 suggested to instead copy the entire package to your computer by dragging the 114 117 gsas folder icon to another finder window, or by clicking on it and using 115 118 Copy and Paste.</I> 116 <P>117 At this point you are able to run EXPGUI using the full command name118 from inside an X11 window -- by typing a command such as this:119 <PRE>120 /MyApps/gsas/expgui/expgui121 </PRE>122 or123 <PRE>124 /sw/bin/wish /MyApps/gsas/expgui/expgui125 </PRE>126 127 128 but this gets old fast -- see the following section for a better way.129 119 </DL></DL> 130 120 131 121 <LI>Install a "shortcut" to launch EXPGUI 132 122 <DL><DL> 133 <I>The following134 instructions describe ways that the EXPGUI program can be integrated135 into the Mac environment.136 </I><P>137 123 <IMG SRC="expgui_osx.jpg" ALT="EXPGUI AppleScript icon" ALIGN="RIGHT"> 138 The OS X version of GSAS & EXPGUI has an EXPGUI AppleScript application139 in the "gsas"folder with the icon shown124 The OS X version of GSAS & EXPGUI has an EXPGUI AppleScript application 125 named <tt>expgui.app</tt> in the gsas folder with the icon shown 140 126 to the right. This AppleScript will start X11, 141 127 if needed and then lauch EXPGUI. (If you have ideas for improving the script, … … 154 140 </UL> 155 141 <P> 156 You may find it convenient to drag the EXPGUI icon to the dock, 142 If you will use GSAS a fair amount, you will likely 143 find it convenient to drag the EXPGUI icon to the dock 157 144 for easy access. 145 <P> 158 146 Note, that this <B><U>EXPGUI app will not 159 work correctly if copied or moved to another folder</U></B> -- instead 160 create an alias (for example using the Finder Command-L key). An alias 161 can be moved where desired -- for example, to 147 work correctly if copied or moved to another folder</U></B> it must be located 148 in the gsas folder along with all the other files and 149 subdirectories needed by GSAS & EXPGUI -- you can instead 150 create an alias (by highlighting the AppleScript icon in the Finder 151 and using the File/"Make alias" menu item or the Command-L shortcut). An alias 152 created in this fashion can be moved wherever desired -- for example, to 162 153 the desktop or to the Application folder. 163 154 </DL></DL> 164 155 165 <LI> Make a command-line "shortcut" to run EXPGUI156 <LI>For Unix power users: Make a command line shortcut (optional) 166 157 <DL><DL> 167 <I> 168 If you are a "Unix enthusiast," you might be interested in setting up 169 command line short-cuts to the gsas script and the EXPGUI program; however, 170 my presumption is that most people buy Mac's to avoid using the command line. 171 Those people who wish to define a command line short-cut should 172 see section 2.2 in the 173 <A Href="expgui_Unix_readme.html">Unix installation notes</A>. 174 </I> 158 <I>People who have not become completely enlighted to the Mac may wish to 159 set up a way to type something (gasp!) in a terminal window that will allow 160 them to start EXPGUI. There are a number of ways this can be done, 161 (see section 2.2 in the 162 <A Href="expgui_Unix_readme.html">Unix installation notes</A>.) 163 Also, on the Mac it is possible to add applications to the X11 Applications 164 menu, by using the Applications/Customize menu option. 165 Note that the command used to start Tcl/Tk and EXPGUI will vary depending 166 on where you installed the package. I install the package in ~/Applications 167 so the command string to start EXPGUI using:</I> 168 <PRE> 169 ~/Applications/gsas/ncnrpack-osx ~/Applications/gsas/expgui/expgui 170 </PRE> 175 171 </DL></DL> 176 172 … … 182 178 EXPGUI will automatically designate the EXPGUI AppleScript 183 179 as the "open with" application for every GSAS experiment (.EXP) file 184 that is read or written by EXPGUI , provided that the Development Tools program185 Rez is found in /Developer/Tools. 186 At the same , EXPGUI will also designatean icon for the .EXP file.187 After this isdone, EXPGUI can be invoked by simply double-clicking on188 a GSAS experiment file .180 that is read or written by EXPGUI. This is done with the 181 Development Tools program Rez, found in /Developer/Tools or in the gsas folder. 182 At the same time, EXPGUI will also set an icon for the .EXP file. 183 After this has been done, EXPGUI can be invoked by simply double-clicking on 184 a GSAS experiment file (.EXP file) icon. 189 185 <P> 190 186 If for some reason you would prefer this not be done … … 204 200 205 201 <HR noshade><HR noshade> 206 <a name="FinkAptGet"></a><h4>Installing software from the command line</H4> 207 With FINK installed, it is possible to download and install binary 208 versions of the required programs by entering the following command 209 in a terminal or xterm window:</I> 210 <PRE> 211 sudo apt-get install tcltk blt libpng3-shlibs 212 </PRE> 213 214 <HR noshade><HR noshade> 215 216 <a name="FinkCommander"></a><h4>Installing software using FinkCommander</H4> 217 <p><em>A second method, which is recommended for everyone other than UNIX 218 gurus, is to use instead the "FinkCommander" application, 219 which is provided in a separate directory 220 (of the same name: see picture below). After installing the fink package 221 ("Fink... Installer.pkg"), 222 launch "FinkCommander". "FinkCommander" 223 which is a 224 GUI interface for fink (that allows you to avoid having to 225 remember these ugly-, long-, obsure and esoteric 226 UNIX-styled commands)</em> 227 <p> 228 In "FinkCommander", with your computer connected to the 229 internet, simply use "Update-all" 230 (in the "Source" menu) 231 the first time you run "FinkCommander", 232 then be patient while Fink tabulates a list of the latest versions of 233 all available OS X software packages. 234 235 <p>Then, in the "binary" menu, select 236 the "blt" package and ask to install it 237 (from a binary distribution) using the "install" command, 238 as shown in the picture below. 239 Since FinkCommander will automatically load the packages required by 240 blt (dependencies), this will also cause Tcl/Tk to be loaded or 241 updated. 242 <P> 243 Repeat this step to install the "libpng3" library. 244 <P> 245 <table width="75%" border="1"> 246 <tr> 247 <td width="55%"> 248 <a href="FinKComImage2.jpg" target="_blank"> 249 <img src="FinKComImage2.jpg" width="400" height="300" border="0"> 250 </a></td> 251 <td width="45%"><p>The "FinkCommander" folder on 252 the desktop (back window) and application (front window) showing 253 the installation of the binary 254 "blt" package. 255 <p>(click to enlarge)</p></td> 256 </tr> 257 </table> 258 <dt></dt> 259 <p><em>Depending on which version of OS X you have, and the 260 versions of the available binary distributions, it is possible that 261 the above may not work. If this occurs, 262 simply repeat the process, but this time use the install command 263 from the source menu. 264 The will achieve the same result, but will take much longer 265 (say 15-45 minutes) as Fink will download and compile the source codes 266 for the various packages.</em> 267 202 <h4>The Tcl/Tk Starkit</H4> 203 <P> 204 The GSAS-EXPGUI distribution now includes a single file version of the 205 entire Tcl/Tk package, as well as a graphics package for Tcl/Tk, called 206 BLT, that is used extensively within EXPGUI. The inclusion of this file 207 within the package simplifies installation considerably. 208 This single 3 Mb file, 209 <tt>gsas/ncnrpack_osx</tt>, contains many other Tcl/Tk packages (that are 210 not used within EXPGUI) and may be of value for use with other applications. 211 Note that the EXPGUI AppleScript will look for Tcl/Tk first as the 212 <tt>ncnrpack_osx</tt> file in the same folder as where the <tt>expgui.app</tt> 213 script is located. If this <tt>ncnrpack_osx</tt> 214 file is deleted, renamed or moved, 215 then the script will look for the standard Tcl/Tk program (<tt>wish</tt>) in the 216 <tt>/sw/bin</tt> directory. 268 217 <HR noshade><HR noshade> 269 218 … … 272 221 you may have a setup problem with X-windows (X11). 273 222 One common reason for this is that X11 must be restarted any time 274 your computer's IP address changes. This can happen when you connect your 275 Mac to a network directly or with a modem. Your IP address can change even 276 while your computer is wired into a network. 223 your computer's hostname changes, which may be caused by starting/stopping 224 networking, dialing in for e-mail or even by a change in 225 IP address initiated by the network DHCP server, if you are hardwired into 226 a network. 277 227 278 228 If exiting and restarting X11 does not address your problem, … … 282 232 One possible problem is the definition for the X11 display (shell 283 233 environment variable DISPLAY). 284 On my machine, this variable is set correctly in an X11 xterm window, but 285 is not set by default within an Aqua terminal window. 286 <P> 287 A quick test for this is to type xclock at the shell prompt: 234 On my machine, this variable seems to be set correctly in X11 xterm windows, 235 but is not set by default within an Aqua terminal window unless 236 you make changes to your shell startup. 237 <P> 238 A quick test for X11 problems is to type xclock at the shell prompt: 288 239 289 240 <PRE> 290 241 bash-2.05a$ xclock 291 242 </PRE> 292 If you get a clock display -- great. If you get the following error message 243 If you get a clock display -- great, X windows is working! 244 <P> 245 If you get the following error message 293 246 the DISPLAY variable is not set: 294 247 <PRE> … … 297 250 </PRE> 298 251 299 If on the other hand, you get this error message, there is a problem300 with Xwindows:252 If on the other hand, you get this error message, there is a 253 security problem with X windows: 301 254 <PRE> 302 255 bash-2.05a$ xclock 303 256 Error: Can't open display: localhost:0.0 304 257 </PRE> 305 258 This will most likely be solved by exiting and restarting X11 (see above). 259 <P> 306 260 You can set the DISPLAY variable in bash/zsh, etc. using: 307 261 <PRE> … … 314 268 [d120234:~] toby% setenv DISPLAY localhost:0.0 315 269 </PRE> 270 (For info on how to do this automatically, see step 2 in 271 <a href="http://www.nist.gov/cgi-bin/exit_nist.cgi?url= 272 http://www.chemistry.ucsc.edu/~wgscott/xtal/page1.html" 273 >http://www.chemistry.ucsc.edu/~wgscott/xtal/page1.html</A>). 316 274 <P><LI> 317 275 A second possible problem relates to the installation of the 318 Tcl/Tk and BLT packages. 319 You can test if Tcl/Tk and the BLT package are installed correctly using the 276 Tcl/Tk and BLT packages. This problem seems unlikely, now that 277 the Tcl/Tk package is included in the distribution, but if you have 278 removed the ncnrpack_osx file from the gsas folder, the expgui.app AppleScript 279 will try to use wish installed in /sw/bin. If you are choosing to do this, 280 you can test if Tcl/Tk and the BLT package are installed correctly using the 320 281 following commands: 321 282 <PRE> … … 338 299 and help with this documentation was provided by 339 300 Francois Farges -- many thanks! 301 <P>Thanks to Paul Kienzle of the 302 <a href="http://www.ncnr.nist.gov/dave/"> 303 NCNR DAVE project</A> for providing the "all in one file" (starkit) 304 version of Tcl/Tk for OS X. 340 305 341 306 <P>GSAS is Copyright, 1984-2000, by
Note: See TracChangeset
for help on using the changeset viewer.