While MOAB can be built without these libraries, we strongly recommend getting at least HDF5.
- Netcdf:Â If you’d like to read Exodus files with MOAB, and to run MOAB’s ‘make check’, you’ll needÂ Â Netcdf. If it’s netcdf version 4 or greater, we recommend building without HDF5 (i.e. don’t use –enable-netcdf-4 configure option). We require building the c++ interface (–enable-cxx configure option)
- HDF5:Â If you want to save/restore data from MOAB, you’ll needÂ Â HDF5. If you plan to build MOAB with parallel support, use the –enable-parallel configure option. If you plan to build both serial and parallel MOAB, also build a serial version of HDF5 and store it separately from the parallel HDF5 build.
Building from sources
- Grab the code straight from the repository usingÂ git, by running ‘git clone firstname.lastname@example.org:fathomteam/moab.git’. Or, download one of the release versions (latest).
- Run ‘autoreconf -fi’ in the main source directory. NOTE: MOAB relies on the autotools (autoconf, libtool, automake) that come with most LINUX/UNIX distributions. If they’re not part of your OS, or you’re getting mysterious autotools errors, you might want to try downloading/building more recent versions of those packages then trying again. On windows, try running cmake (though this is only indirectly supported, meaning it may not be up to date).
- In the top-level source directory, run the configure script, with the various options you want. To get a list of options, run ./configure –help.
- Run make, then make install. This will install the MOAB include files, libraries, and binaries in include/, lib/, and bin/ subdirectories below the prefix directory input to the configure script (which is /usr/local by default – change with the –prefix= flag to configure.).
Now you should have MOAB and its dependencies configured and built to be linked against your example sources.Â For building Moab along with the packages it depends on see:Â Building MOAB with prerequisits and running simple benchmarks.
If you have problems running ‘autoreconf -fi’ or suspect that the build system is broken due to improperly installed versions of the GNU autotools then see:Â AutoToolsIssues.
When using –with-cgm option and CGM is build using –with-cubit option you might encounter segmentation fault and *** glibc detected *** errors. SeeÂ thisÂ link for details.