Hi,
I'm a HDF5 newbie. I was trying to compile a simple script in C from the
tutorials.
Accidentally, I have a Python Anaconda distribution. Here it's what I get:
jacopo@jacopo-laptop:~/Documenti/Project_Chronos/iSeeChange$ h5cc -o
h5_crtdat h5_crtdat.c
/home/jacopo/anaconda/bin/h5cc: 1: eval: gcc44: not found
My gcc version is 4.8.2
Looking for a quick fix, and trying to avoid doing things I wasn't sure
about, I downloaded the HDF5 latest version from ftp://ftp.hdfgroup.org/H
DF5/current/src/.
I went through all steps of the installation process. After running
./configure, I typed
$ make
Here's what I get, after a long list of warnings:
err_compat.c: In function ‘test_error2’:
err_compat.c:396:5: error: too many arguments to function ‘H5Eset_auto1’
if(H5Eset_auto(H5E_DEFAULT, NULL, NULL)<0)
^
In file included from ../src/hdf5.h:28:0,
from h5test.h:25,
from err_compat.c:22:
../src/H5Epublic.h:216:15: note: declared here
H5_DLL herr_t H5Eset_auto1(H5E_auto1_t func, void *client_data);
^
make[1]: *** [err_compat.o] Error 1
make[1]: Leaving directory `/home/jacopo/hdf5-1.8.14/test'
make: *** [all-recursive] Error 1
What would be the best thing do?
Thank you very much.
Cheers,
Jacopo
Hi Jacopo,
Could you try installing the gcc from anaconda? If it does not work, try
updating you anaconda distribution and reinstalling gcc and hdf5.
I don't use conda but from your error messages, it seems that gcc 4.4 is
requested by the hdf5 install of anaconda but it is not available in anaconda
according to binstar.org
If you prefer to compile from sources, I would suggest that you uninstall
anaconda's hdf5 first.
Regards,
Pierre
···
On Mon, Apr 20, 2015 at 08:26:41PM +0200, Jacopo Durandi wrote:
Hi,
I'm a HDF5 newbie. I was trying to compile a simple script in C from the
tutorials.
Accidentally, I have a Python Anaconda distribution. Here it's what I get:
jacopo@jacopo-laptop:~/Documenti/Project_Chronos/iSeeChange$ h5cc -o
h5_crtdat h5_crtdat.c
/home/jacopo/anaconda/bin/h5cc: 1: eval: gcc44: not found
My gcc version is 4.8.2
Looking for a quick fix, and trying to avoid doing things I wasn't sure
about, I downloaded the HDF5 latest version from ftp://ftp.hdfgroup.org/H
DF5/current/src/.
I went through all steps of the installation process. After running
./configure, I typed
$ make
Here's what I get, after a long list of warnings:
err_compat.c: In function ‘test_error2’:
err_compat.c:396:5: error: too many arguments to function ‘H5Eset_auto1’
if(H5Eset_auto(H5E_DEFAULT, NULL, NULL)<0)
^
In file included from ../src/hdf5.h:28:0,
from h5test.h:25,
from err_compat.c:22:
../src/H5Epublic.h:216:15: note: declared here
H5_DLL herr_t H5Eset_auto1(H5E_auto1_t func, void *client_data);
^
make[1]: *** [err_compat.o] Error 1
make[1]: Leaving directory `/home/jacopo/hdf5-1.8.14/test'
make: *** [all-recursive] Error 1
What would be the best thing do?
Thank you very much.
Cheers,
Jacopo