Installing Bmad on Mac ---------------------- 1) GCC/gfortran: a) Check if version is at least 4.4.4: gfortran --version If not, update from web 2) cmake install: a) Standard mac installation. Use .dmg file 3) plplot install a) Download latest plplot-x.x.x..tar.gz file. b) unpack the file. If doing it by hand the commands are: gunzip plplot-x.x.x.tar.gz tar xf plplot-x.x.x.tar c) cd plplot-x.x.x d) mkdir build_dir e) run cmake: i) Settings: Source code: plplot-x.x.x directory Build the binaryies: plplot-x.x.x/build_dir directory ii) press the "Configure" button and accept the default generator settings. iii) cmake will run and generate configuration settings Changes to the configuration settings: ENABLE_python -> off ENABLE_wxwidgets -> off ENABLE_cxx -> off TEST_DYNDRIVERS -> off iv) Press the "Generate" button. g) Create the plplot library and install it with: i) Go to the build_dir directory. ii) make iii) sudo make install 4) Bmad/tao Install a) Download the latest distribution package. b) Install and follow directions. c) In Tao: Compile with plplot with the command gmake gmake -f M.tao.plplot Needed external packages: 1) GCC (gfortran) 2) cmake (only needed if plplot ito install plplot) 3) plplot 4) readline ----------------------------------------------------------------------------------- Installing GCC (gfortran): gfortran is part of GCC (Gun Compiler Collection). You need at least 4.4.1 for Bmad since earlier versions had bugs that prevented Bmad from running. Installing MacPorts: 1) sudo port install gcc45 2) sudo port install gcc_select 3) rehash 4) gcc_select -l 5) sudo gcc_select mp-gcc45 ----------------------------------------------------------------------------- Installing cmake: On Linux: a) Download cmake. b) cd to cmake directory c) ./bootstrap --prefix=PREFIX d) gmake e) gmake install On Mac: a) Download .dmg file and install ----------------------------------------------------------------------------- Installing plplot: On Linux: 0) Download plplot a) cd plplot directory b) mkdir build_dir c) cd build_dir d) cmake --DCMAKE_INSTALL_PREFIX=PREFIX --CMAKE_BUILD_TYPE=debug e) gmake f) gmake install On Mac: 1) Run cmake: Configure and generate 2) In a Terminal window: a) cd plplot-xxx/build_dir b) make c) sudo make install ----------------------------------------------------------------------------- Installing readline: Same as above. Should not be needed on Mac ----------------------------------------------------------------------------- Installing Bmad distribution 0) Download and follow directions. ----------------------------------------------------------------------------- Tao: gmake gmake -f M.tao.plplot ----------------------------------------------------------------------------- Mac problems: PGPLOT *.s files