Get your compilers ready
- Install XCode from Apple App Store
- Install command-line tools through XCode (see Preferences menu, note that the command-line tools are shipped with recent versions of XCode automatically)
- Install gfortran for Mac OS X from https://gcc.gnu.org/wiki/GFortranBinaries#MacOS
Get the XBeach dependencies ready
- Install MacPorts from http://www.macports.org/install.php
- Install packages using MacPorts
- Go to Terminal
Run "sudo port install subversion autoconf automake libtool libtool pkg-config netcdf netcdf-fortran pkg-config"
Notetip title scsdscdscdssdc Why so much? You'll need subversion to download the XBeach source code, although you could download the source code as a ZIP file from the http://xbeach.org website. But that is not cool. Then you need autoconf, automake, libtool and pkg-config to prepare the compilation for your system. In theory you can do without it, but nobody knows how. Finally you'll need the netcdf and netcdf-fortran packages to be able to compile XBeach with the self-explanatory netCDF output format rather than the default Fortran binary output. This is optional, but advisable for most applications.cdscdscdscdsc
- Give your password if requested
- Install the mako Python package using easy_install (or pip)
- Go to Terminal
- Run "sudo easy_install mako"
- Register at http://xbeach.org (upper-right corner)
- Create a directory to store the XBeach source code
- Download XBeach using subversion
- Go to Terminal
- Go to the newly created directory using "cd"
- Run "svn co https://svn.oss.deltares.nl/repos/xbeach/trunk/"
- Give your username and password from the XBeach website if requested
- Compile XBeach
- Go to Terminal
- Navigate to the "trunk" subdirectory using "cd trunk"
- Run “./autogen.sh”
- Run "./configure --with-netcdf"
- Run "make"
- The XBeach executable will be in the "dist" or "src/xbeach" subdirectory