我是Linux的新手,我正在尝试在Centos 7上构建hdf5。我也在使用gfortran编译器。我已经安装了mpi,zlib和szip软件包。但是,当我尝试配置hdf5时,即使没有启用它,它也会显示此错误,这似乎与C编译器有关。我正在处理以下日志:
[root@DUIP69765 hdf5-1.8.20]# LDFLAGS="-L/opt/mpich_gfor/lib -L/usr/local/lib" FCFLAGS="-I/opt/mpich_gfor/include -I/usr/local/lib/include" ./configure --prefix=/opt/hdf5_gfor --enable-shared --enable-hl --enable-fortran --enable-parallel --with-szlib=usr/local/lib/include
checking for a BSD-compatible install... /bin/install -c checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking shell variables initial values... done
checking if basename works... yes
checking if xargs works... yes
checking for cached host... none
checking for config x86_64-unknown-linux-gnu... no
checking for config x86_64-unknown-linux-gnu... no
checking for config unknown-linux-gnu... no
checking for config unknown-linux-gnu... no
checking for config x86_64-linux-gnu... no
checking for config x86_64-linux-gnu... no
checking for config x86_64-unknown... no
checking for config linux-gnu... found
checking for config ./config/site-specific/host-DUIP69765... no
checking for gcc... mpicc
checking whether the C compiler works... no
configure: error: in `/opt/hdf5-1.8.20':
configure: error: C compiler cannot create executables
See `config.log' for more details