Changes between Version 6 and Version 7 of InstallLinux


Ignore:
Timestamp:
Apr 16, 2010 6:52:29 PM (11 years ago)
Author:
toby
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • InstallLinux

    v6 v7  
    11= Installing GSAS & EXPGUI on Linux =
     2
     3There are two ways provided here to install GSAS & EXPGUI. The first is preferred since is downloads directly from a subversion repository. In this method the distribution .tar file does not need to change when the program is updated. Instead, the latest version of the programs are downloaded from a server when the program is installed (an internet connection is obviously required). Subsequently, if there are updates to GSAS or EXPGUI, an update can be made where only the modified or added files are upgraded. This update step can be done using the File/Update... menu option in EXPGUI or by executing the bootstrap.py file in the GSAS directory. However, these methods require ~double the space needed by GSAS & EXPGUI. For users who need to install GSAS & EXPGUI on systems where an Internet connection to the server is not possible or where space usage is critical, an alternate .tar file is also provided containing all GSAS & EXPGUI files, but this requires that upgrades be performed by downloading and installing the all GSAS & EXPGUI files from a future distribution.
    24
    35There are so many flavors and releases of Linux in use, it is hard to prepare a installer that works on all platforms. Some testing has been done with Fedora Core 10 & 12. Please send feedback on experience with other systems to mailto:toby@anl.gov
     
    57== Prerequisites ==
    68
    7 '''Python''': the python interpreter is required to run the install script. This I believe is found on all modern linuxes as part of the basic install.
     9'''Python''': the python interpreter is required to run the self-installer install script. This I believe is found on all modern linuxes as part of the basic install.
    810
    9 '''Subversion''': the subversion (also called svn) is required to use this install and update management mechanism. This is a common package, but usually is not installed by default. The presence of this can be tested by typing `which svn`. To load the package use `yum install subversion` (works on Redhat).
     11 * '''Subversion''': the subversion (also called svn) is required to use self-installer as well. This is the version management mechanism. This is a common package, but usually is not installed by default. The presence of this can be tested by typing `which svn`. On RedHat, to load the package use `yum install subversion`.
    1012
    11 '''tcsh''': this shell is needed to run the GSAS script. If you will only use EXPGUI, this is not needed. It does not seem to be loaded by default. The presence of this can be tested by typing `ls /bin/tcsh`. To load the package use `yum install tcsh` (works on Redhat).
     13 * '''tcsh''': this shell is needed to run the GSAS script. If you will only use EXPGUI, this is not needed. It does not seem to be loaded by default. The presence of this can be tested by typing `ls /bin/tcsh`. To load the package on RedHat, use `yum install tcsh`.
    1214
    13 '''Tcl/Tk & BLT''': EXPGUI requires the Tcl/Tk interpreter to run. In addition, the BLT graphics package is required for plots (EXPGUI may run without this). It is possible to load Tcl/Tk and BLT on most versions of Linux, but there seems to be problems running BLT under Tcl/Tk 8.5. There is also a version of Tcl/Tk that is included with the GSAS/EXPGUI distribution (`.../gsas/exe/ncnrpack`), but this has problems on some platforms.
     15 * '''Tcl/Tk & BLT''': EXPGUI requires the Tcl/Tk interpreter to run. In addition, the BLT graphics package is required for plots, such as in program LIVEPLOT (EXPGUI can be run without this). It is possible to load Tcl/Tk and BLT on most versions of Linux, but I have seen bugs with some releases of BLT for Tcl/Tk 8.5. This GSAS/EXPGUI distribution comes with a version of Tcl/Tk (file `.../gsas/exe/ncnrpack`), but this has problems on some platforms:
    1416
    15   Fedora core 10: the `.../gsas/exe/ncnrpack` image fails, but the blt.i386 (2.4-28.z.fc10) package works fine.
     17    * Fedora core 10: the `.../gsas/exe/ncnrpack` image fails, but the blt.i386 (2.4-28.z.fc10) package works fine.
    1618
    17   Fedora core 12: the initial yum-loaded version of BLT failed. Be sure to upgrade to blt.i686 (2.4-'''32'''.z.fc12 or later); the `.../gsas/exe/ncnrpack` also image works fine, but has less attractive fonts.
     19    * Fedora core 12: the initial yum-loaded version of BLT failed. Be sure to upgrade to blt.i686 (2.4-'''32'''.z.fc12 or later); the `.../gsas/exe/ncnrpack` also image works fine on FC12, but has less attractive fonts.
    1820
    19 == Installation Commands ==
     21 * '''GSAS''': The GSAS image files (in .../gsas/exe) are compiled using g77, which will require a compatibility library to run on many modern Linux versions.
     22
     23== Self-Upgrading GSAS & EXPGUI Installation Commands ==
     24
    2025The following four commands can be used to create a GSAS installation directory and install GSAS & EXPGUI in that area:
    2126
    2227 * mkdir ~/gsas
    2328 * cd ~/gsas
    24  * curl http://11bm.xor.aps.anl.gov/downloads/gsas/svnload/gsassvnlinux.tar.gz | tar xvzf -
     29 * curl http://11bm.xor.aps.anl.gov/downloads/gsas/linux/gsas+expgui_linux.tar.gz | tar xvzf -
    2530 * python bootstrap.py
    2631There are many other ways, using GUI tools, to accomplish the same tasks. The gist is to download http://11bm.xor.aps.anl.gov/downloads/gsas/svnload/gsassvnlinux.tar.gz and expand that into the location where GSAS and EXPGUI will be installed and to then run the bootstrap.py file contained in that directory.
    2732
    28 It should be noted that GSAS and EXPGUI desktop shortcuts are created for Gnome. I am not sure what other mechanisms are available for app integration on KDE, etc., but am happy to get input.
     33It should be noted that GSAS and EXPGUI desktop shortcuts are created for Gnome using the distributed Tcl/Tk version. I am not sure what other mechanisms are available for app integration on KDE, etc., but am happy to get input.
    2934
    3035== Upgrades ==
     
    3540
    3641Note that if you make any modifications to any files distributed as part of GSAS or EXPGUI, these files may not be upgraded, should the changes be in the same regions as upgrades made by Bob or myself. If you are in the practice of modifying the programs, you should learn to use svn and do your upgrades by hand.
     42
     43== Non-Upgrading GSAS & EXPGUI Installation Commands ==
     44
     45  Users without network access, or who do not want to install subversion can use this method to install GSAS & EXPGUI. If this is used, the software cannot fetch the latest upgrades from the server. The following three commands can be used to create a GSAS installation directory and install GSAS & EXPGUI in that area:
     46
     47 * mkdir ~/gsas
     48 * cd ~/gsas
     49 * curl http://11bm.xor.aps.anl.gov/downloads/gsas/svnload/gsassvnlinux.tar.gz | tar xvzf -
     50
     51There are many other ways, using GUI tools, to accomplish the same tasks. The gist is to download http://11bm.xor.aps.anl.gov/downloads/gsas/svnload/gsassvnlinux.tar.gz and expand that into the location where GSAS and EXPGUI will be installed.
     52
     53You are on your own to create shortcuts.