![如何修复:配置:错误:C 编译器无法创建可执行文件](https://linux22.com/image/154498/%E5%A6%82%E4%BD%95%E4%BF%AE%E5%A4%8D%EF%BC%9A%E9%85%8D%E7%BD%AE%EF%BC%9A%E9%94%99%E8%AF%AF%EF%BC%9AC%20%E7%BC%96%E8%AF%91%E5%99%A8%E6%97%A0%E6%B3%95%E5%88%9B%E5%BB%BA%E5%8F%AF%E6%89%A7%E8%A1%8C%E6%96%87%E4%BB%B6.png)
如果我不给出卷曲的路径,则不会显示此错误,如果我给出卷曲的路径,则会出现此错误
CPPFLAGS='-I/home/dhanraj/project/netcdf/c/hdf5/include -I/home/dhanraj/project/netcdf/c/zlib/include -I/usr/share/man/man1/curl.1.gz/include' LDFLAGS='-L/home/dhanraj/project/netcdf/c/hdf5/lib -L/home/dhanraj/project/netcdf/c/zlib/lib -L/usr/share/man/man1/curl.1.gz/lib' ./configure CFLAGS="-o3" --prefix=/home/dhanraj/project/netcdf/c/netcdf
configure: netCDF 4.7.0
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
configure: checking user options
checking whether a NCIO_MINBLOCKSIZE was specified... 256
checking for valgrind... no
checking if fsync support is enabled... no
checking if jna bug workaround is enabled... no
checking whether we should build netCDF-4... yes
checking whether we should build with HDF5... yes
checking do we require hdf5 dynamic-loading support... yes
checking whether reading of HDF4 SD files is to be enabled... no
checking whether to fetch some sample HDF4 files from Unidata ftp site to test HDF4 reading (requires wget)... no
checking whether we should attempt to install netcdf-fortran (EXPERIMENTAL)... no
checking whether parallel IO tests should be run... no
checking whether a user specified program to run mpi programs... mpiexec
checking whether a default chunk size in bytes was specified... 4194304
checking whether a maximum per-variable cache size for HDF5 was specified... 67108864
checking whether a number of chunks for the default per-variable cache was specified... 10
checking whether a default file cache size for HDF5 was specified... 4194304
checking whether a default file cache maximum number of elements for HDF5 was specified... 1009
checking whether a default cache preemption for HDF5 was specified... 0.75
checking whether netCDF-4 logging is enabled... no
checking whether nc_set_log_level() function is included (will do nothing unless enable-logging is also used)... yes
checking whether DAP client(s) are to be built... yes
checking whether make supports the include directive... yes (GNU style)
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/home/dhanraj/.local/share/Trash/files/netcdf-c-4.7.0':
configure: error: C compiler cannot create executables
See `config.log' for more details