Dear all,
I already used HDF5 with the Fortran ifort compiler on a linux system. However, I now installed hdf5.7-gfortran successfully on MAC OS X, Version 10.7.2. using fink. I am also able to compile the example code dsetexample.f90 via
gfortran -o dsetexample dsetexample.f90 -lhdf5 -lhdf5_fortran -I/sw/include -L/sw/lib
(is something missing?)
but I am not able to run it. I get the message below. I would be very very happy for any help. I have no idea how to proceed.
Thanks in advance,
best wishes,
Silke
HDF5-DIAG: Error detected in HDF5 (1.8.8) thread 0:
#000: H5F.c line 1440 in H5Fcreate(): unable to create file
major: File accessability
minor: Unable to open file
#001: H5F.c line 1267 in H5F_open(): unable to open file
major: File accessability
minor: Unable to open file
#002: H5FD.c line 1086 in H5FD_open(): open failed
major: Virtual File Layer
minor: Unable to initialize object
#003: H5FDsec2.c line 362 in H5FD_sec2_open(): unable to open file: name = 'dsetf.h5', errno = 17, error message = 'File exists', flags = 15, o_flags = a02
major: File accessability
minor: Unable to open file
HDF5-DIAG: Error detected in HDF5 (1.8.8) thread 0:
#000: H5D.c line 141 in H5Dcreate2(): not a location ID
major: Invalid arguments to routine
minor: Inappropriate type
#001: H5Gloc.c line 253 in H5G_loc(): invalid object ID
major: Invalid arguments to routine
minor: Bad value
HDF5-DIAG: Error detected in HDF5 (1.8.8) thread 0:
#000: H5D.c line 391 in H5Dclose(): not a dataset
major: Invalid arguments to routine
minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.8.8) thread 0:
#000: H5F.c line 1970 in H5Fclose(): not a file ID
major: Invalid arguments to routine
minor: Inappropriate type
According to the Error message your system can not create the file. Is there a file of the same name that is still open in another application perhaps? Do you have write permissions to what ever directory you are trying to create the file in?
···
___________________________________________________________
Mike Jackson Principal Software Engineer
BlueQuartz Software Dayton, Ohio
mike.jackson@bluequartz.net www.bluequartz.net
On Feb 13, 2012, at 5:17 PM, Silke Trömel wrote:
Dear all,
I already used HDF5 with the Fortran ifort compiler on a linux system. However, I now installed hdf5.7-gfortran successfully on MAC OS X, Version 10.7.2. using fink. I am also able to compile the example code dsetexample.f90 via
gfortran -o dsetexample dsetexample.f90 -lhdf5 -lhdf5_fortran -I/sw/include -L/sw/lib
(is something missing?)
but I am not able to run it. I get the message below. I would be very very happy for any help. I have no idea how to proceed.
Thanks in advance,
best wishes,
Silke
HDF5-DIAG: Error detected in HDF5 (1.8.8) thread 0:
#000: H5F.c line 1440 in H5Fcreate(): unable to create file
major: File accessability
minor: Unable to open file
#001: H5F.c line 1267 in H5F_open(): unable to open file
major: File accessability
minor: Unable to open file
#002: H5FD.c line 1086 in H5FD_open(): open failed
major: Virtual File Layer
minor: Unable to initialize object
#003: H5FDsec2.c line 362 in H5FD_sec2_open(): unable to open file: name = 'dsetf.h5', errno = 17, error message = 'File exists', flags = 15, o_flags = a02
major: File accessability
minor: Unable to open file
HDF5-DIAG: Error detected in HDF5 (1.8.8) thread 0:
#000: H5D.c line 141 in H5Dcreate2(): not a location ID
major: Invalid arguments to routine
minor: Inappropriate type
#001: H5Gloc.c line 253 in H5G_loc(): invalid object ID
major: Invalid arguments to routine
minor: Bad value
HDF5-DIAG: Error detected in HDF5 (1.8.8) thread 0:
#000: H5D.c line 391 in H5Dclose(): not a dataset
major: Invalid arguments to routine
minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.8.8) thread 0:
#000: H5F.c line 1970 in H5Fclose(): not a file ID
major: Invalid arguments to routine
minor: Inappropriate type
_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org