Cygwin PETSC生成错误:C编译器不工作

Cygwin PETSC生成错误:C编译器不工作,cygwin,petsc,Cygwin,Petsc,我试图通过调用以下命令在Cygwin终端上安装PETSc ./configure --with-cc='win32fe cl' --with-fc='win32fe ifort' --with-cxx='win32fe cl' --download-fblaslapack 及 它让我想起了下面的错误: C compiler you provided with -with-cc=win32fe cl does not work C compiler you provided with -wit

我试图通过调用以下命令在Cygwin终端上安装PETSc

./configure --with-cc='win32fe cl'  --with-fc='win32fe ifort' --with-cxx='win32fe cl' --download-fblaslapack

它让我想起了下面的错误:

C compiler you provided with -with-cc=win32fe cl does not work
C compiler you provided with -with-cc=cl does not work
我是Unix平台的新手,请在这方面帮助我。

尝试以下方法:

./configure --with-cc="win32fe\ cl"  --with-fc="win32fe\ ifort" --with-cxx="win32fe\ cl" --download-fblaslapack

请注意空格前添加的反斜杠以转义空格。

类似的问题:./configure--with cc=gcc--with cxx=g++--with fc=gfortran--download mpich--download fblaslapack configuration PETSc to compile on on your system TESTING:checkcompiler from config.setCompilers(config/BuildSystem/config/setCompilers.py:620)无法使用给定的选项进行配置(有关详细信息,请参阅CONFIGURE.log):随-with cc=gcc提供的C编译器无法工作。无法使用gcc编译C。但让我向你保证gcc工作正常。它在helloWorld.cpp../configure上测试了AOK——使用cc=gcc——使用cxx=g++——使用fc=gfortran——下载mpich——下载FBLAPACK没有任何空格可以转义,但错误仍然相同。这是一个功能齐全的mingw gcc安装5.3.0。
./configure --with-cc="win32fe\ cl"  --with-fc="win32fe\ ifort" --with-cxx="win32fe\ cl" --download-fblaslapack