Hi I am currently trying to install Rhdf5lib on R 4.1.0 on ubuntu, but it occurs a fatal error of compilation : iostream.h: No such file or directory, I do not know how to solve it.
BiocManager::install("Rhdf5lib",force=TRUE)
#error and warning messages:
H5DataSpace.cpp:15:10: fatal error: iostream.h: No such file or directory
15 | #include <iostream.h>
| ^~~~~~~~~~~~
compilation terminated.
make[3]: *** [Makefile:1035: H5DataSpace.lo] Error 1
make[3]: Leaving directory '/tmp/Rtmp3a5w9o/R.INSTALLfdf43ea004b/Rhdf5lib/src/hdf5/c++/src'
make[2]: *** [Makefile:1525: lib] Error 1
make[2]: Leaving directory '/tmp/Rtmp3a5w9o/R.INSTALLfdf43ea004b/Rhdf5lib/src/hdf5/c++/src'
make[1]: *** [Makefile:1261: lib] Error 1
make[1]: Leaving directory '/tmp/Rtmp3a5w9o/R.INSTALLfdf43ea004b/Rhdf5lib/src/hdf5/c++'
make: *** [Makefile:1100: lib] Error 1
configure: error: "Failed to compiled the HDF5 library"
I hope someone can help me and thanks a lot!
It is likely that you need to install the libraries on your Ubuntu OS outside R, via:
Note: use
sudo
if requiredThank you for your reply, but this seems to not work for me, do I need to install hdf5 on my Ubuntu?
No you don't need to install HDF5 via Ubuntu. The Rhdf5lib package is essentially doing this, and is designed to provide a consistent version of HDF5 to R no matter what operating system someone is using.