Octave for Debian systems: Difference between revisions

Jump to navigation Jump to search
→‎HDF5: simplify new bits added about old hdf5 problems
(some more help for compiling with openMPI-HDF5)
(→‎HDF5: simplify new bits added about old hdf5 problems)
Line 309: Line 309:
  HDF5 library not found.  Octave will not be able to save or load HDF5 data files.
  HDF5 library not found.  Octave will not be able to save or load HDF5 data files.


The problem is that there are multiple versions of the hdf5 package.  Octave was written with the serial version in mind but it is likely to work with the others (OpenMPI and Mpich). Due to the naming scheme done in Debian, it is required to specify the location of the libraries.  See bug {{bug|38928}} for details (starting with comment #19) but basically, use the following when running configure:
The problem is that there are multiple versions of the hdf5 package.  Octave was written with the serial version in mind but it is likely to work with the others (OpenMPI and Mpich). Due to the naming scheme done in Debian, it may be required to specify the location of the libraries.  See bug {{bug|38928}} for details (starting with comment #19) but basically, use the following when running configure:


   ./configure --with-hdf5-includedir=/usr/include/hdf5/serial --with-hdf5-libdir=/usr/lib/x86_64-linux-gnu/hdf5/serial
   ./configure --with-hdf5-includedir=/usr/include/hdf5/serial --with-hdf5-libdir=/usr/lib/x86_64-linux-gnu/hdf5/serial


For compiling with libhdf5-openmpi-7:amd64 and libhdf5-openmpi-dev on Ubuntu 14.10, the following works:
On older versions of Debian and Ubuntu, where only one flavor of the HDF5 library could be installed at a time, you may need to build Octave against one of the MPI-enabled flavors. On these older systems, configuring Octave like this may work:


   export CPPFLAGS="-I/usr/include/mpi -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX"
   ./configure CPPFLAGS="-I/usr/include/mpi -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX"
  ./configure --prefix=$HOME/opt/
  make
  make install
 
cf http://octave.1599824.n4.nabble.com/Error-installing-package-on-classdef-tip-td4658542.html
 
However, hdf5 functions have not been implemented yet (as of Octave 4.0.3).
A patch is available here, but still needs testing: https://savannah.gnu.org/patch/?8607


[[Category:Building]]
[[Category:Building]]
[[Category:Installation]]
[[Category:Installation]]
[[Category:Debian]]
[[Category:Debian]]
296

edits

Navigation menu