Nuclear Data Section (NDS) Department of Nuclear Sciences and Applications International Atomic Energy Agency (IAEA) Vienna International Centre, P.O. Box 100, A-1400 Vienna, Austria Tel:(+43 1) 2600-21717; Fax:(+43 1) 26007 WORKING MATERIALS TO FOLLOW THE IAEA EMPIRE WORKSHOP DECEMBER 2013 https://www-nds.iaea.org/index-meeting-crp/EmpireWorkshop2013/ "EMPIRE-3.2.3 for Linux and MacOSX" Prepared by Viktor Zerkin, IAEA-NDS, 2013-2023 Last modified: 2023-06-21 by V.Zerkin _______________________________________________________________________________ CONTENT The distribution includes source for Linux/MacOSX: 1) Empire-3.2.3 package: https://www-nds.iaea.org/empire/index.html - Empire-3.2.3 (Malta), source code, Rev.5495 (2023-06-21) - XC4 data from EXFOR (as of 2023-06-16) 2) Installation scripts - bash scripts to prepare and run Empire package (V.Zerkin, 2023-06-19) _______________________________________________________________________________ LICENSES For third party software, please see the README, "license.terms" files that come in the associated directories. _______________________________________________________________________________ SETUP SYSTEM ENVIRONMENT The package requires the following system components to be installed |||| || || || ||| ||||| || || || || || || || || || || |||| || || || || || || || || | || || || || || |||| ||||||| |||| || || ||| || || || Linux* 1) X11 terminal: $ sudo apt install xterm 2) gfortran: $ sudo apt install gfortran 3) dos2unix: $ sudo apt install dos2unix 4) Postscript viewer: $ sudo apt install gv 5) Python (2.7.*) $ sudo apt install python test Python: $ python --version Python 2.7.16 6) Tcl/Tk and extensions: $ sudo apt install tk $ sudo apt install itcl3 $ sudo apt install itk3 $ sudo apt install iwidgets4 7) If you have version of Python 3.x and higher install python-2.7 and make it default: $ sudo apt install python2.7 $ sudo update-alternatives --install /usr/bin/python python /usr/bin/python2.7 1 *Examples of installation commands are given for Ubuntu-20,-22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |\ /| /||\ /||\ ||\ /|| /||\ /||\ || || || || ||\|/|| || // \| || || \\ ||\|/|| /|||| || || || \\ || V || || || || || || \\ || || || || || /| || || || || || || \||/\\ \||/ \||/ \||/ MacOS* 1) X-Windows X11: XQuartz-2.8.1.dmg from https://www.xquartz.org/ 2) gfortran: https://gcc.gnu.org/wiki/GFortranBinaries#MacOS technical details: https://gcc.gnu.org/wiki/GFortranBinariesMacOS or using Homebrew: $ gcc --version this will start --> install Xcode.app if you do not have it installed $ brew install gfortran test gfortran: $ gfortran --version GNU Fortran (Homebrew GCC 11.2.0_1) 11.1.0 3) dos2unix: $ brew install dos2unix 4) Postscript: $ brew install ghostscript Note. ps2pdf works; gv, ghostview - not 5) Python and Tcl/Tk. Working versions: Python-2.7 and Tcl/Tk-8.5 *MacOS BigSur comes with Tcl/Tk and Python-2.7 pre-installed test Tcl/Tk: $ wish % info patchlevel 8.5.9 % exit test Python: $ python --version Python 2.7.16 $ 5a) Python-3.x pre-installed. Set Python-2.7 local environment: $ brew install pyenv $ pyenv install 2.7.16 ...wait... Installed Python-2.7.16 to /Users/viktor/.pyenv/versions/2.7.16 $ pyenv local 2.7.16 test Python: $ python --version Python 2.7.16 5b) MacOS with Tcl/Tk incompatible with Empire-2.3.3 Set Tcl/Tk-8.5 Binary (prepared by V.Zerkin, IAEA-NDS, 2023) $ unzip TclTk4Mac2Empire202305ZV.zip Select one of the following version and uncompress it: $ tar xvzf Tcl-BigSurIntel-20230524-x86_64-apple-darwin20.tar.gz $ tar xvzf Tcl-VenturaM1-20230524-arm64-apple-darwin22.tar.gz $ tar xvzf Tcl-VenturaIntel-20230526-x86_64-apple-darwin22.tar.gz As result, you will have dir Tcl/ with the package which will be called from $ ./run-empire.sh _______________________________________________________________________________ EMPIRE INSTALLATION* 1) Download file "Empire323zv2src.tar.gz" from Internet: https://www-nds.iaea.org/cdroms/#EMPIRE-3.2.3src 2) Uncompress "Empire323zv2src.tar.gz" to HD disk, e.g. $ tar xvzf Empire323zv2src.tar.gz (required free space on HD disk: ~2Gb) 3) Goto package directory: $ cd ~/Empire323zv2src 4) Compile Empire: $ ./make-all.sh 4a) Compile Empire on Linux: $ ./make-linux.sh 4b) Compile Empire on Mac CPU:i386(x86_64), gfortran:10.2.0 $ ./make-mac-x86.sh 4c) Compile Empire on Mac CPU:M1(arm64), gfortran:11.1.0 $ ./make-mac-m1.sh 5) Recompile Empire package: $ ./make-lin.sh clean $ ./make-lin.sh or under Empire/GUI Tcl/Tk: [Source] -> [Make all] 6) Make Empire running faster: $ ./speed1up.sh 7) Start Empire: $ ./run-empire.sh - You should see popup-window with Empire-GUI, select input file and start your work (default example: pd105.inp) - if you have problems starting ZVView, download version for your platform from http://www-nds.iaea.org/public/zvview - when you start plotting with ZVView on MacOS BigSur you will be asked to confirm running unknown program, so, you can unblock it by "System Preferences" --> "Security & Privacy" --> "Allow Apps" --> "Allow Anyway" *** This may also happened when you use "Tcl/Tk-8.5-Binary" *** If you do not have option "Allow Anyway" use command line: $ sudo spctl --master-disable *** After you run Empire, ZVView and Tcl/Tk OK, you can *** enable this type of Security by command: $ sudo spctl --master-enable Important! You can install the package in any directory, but please, do NOT use blank (space) symbol neither in your directory names nor in your files and project names. *Please, report difficulties with installation to V.Zerkin@iaea.org _______________________________________________________________________________ INITIAL SETUP 1) By default, working directory is defined as ~/wrk In order to change this edit "run-empire.sh" modifying "~/wrk" 2) When running first time, script run-empire.sh will copy file EMPIRE-3.2.3\test-cases\pd105.inp to working directory. This file can be used as input file for testing setup of Empire package. _______________________________________________________________________________ WORK ON YOUR EMPIRE PROJECT See short description of EMPIRE package in EMPIRE-3.2.3/README.TXT, documentation and manual in EMPIRE-3.2.3/doc/. You can send your feedback, suggestions, wishes to EMPIRE to R.CapoteNoy@iaea.org, mwherman@lanl.gov _______________________________________________________________________________ ALL PRODUCTS ON THIS DVD-ROM ARE PROVIDED IN GOOD FAITH AND WITHOUT A WARRANTY OF ANY KIND.