Octave for Debian systems: Difference between revisions

→‎HDF5: remove duplicated reference to issue with different solution. Favour use of --with-hdf5 flags
No edit summary
(→‎HDF5: remove duplicated reference to issue with different solution. Favour use of --with-hdf5 flags)
Line 304: Line 304:
  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 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 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:
 
./configure CPPFLAGS=-I/usr/include/hdf5/serial LDFLAGS=-L/usr/lib/$(dpkg-architecture -qDEB_HOST_MULTIARCH)/hdf5/serial
 
Another issue you may have on Debian systems, even when using the correct hdf5 libraries, is that they are installed in a non-standard location which is not found by configure. This will result in the following warning after running configure:
 
  WARNING: HDF5 library not found. Octave will not be able to save or load HDF5 data files.
 
To avoid this you can manually specify the hdf5 locations in the following way:


   ./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
Further information can be found in [https://savannah.gnu.org/bugs/?38928 this bug discussion] starting with comment #19.


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