컴파일 도중 오류가 납니다.

shiningstarz의 이미지

grib_api-1.9.16 프로그램을 깔고 있습니다.

컴파일을 하던 도중, 다음과 같은 에러가 났습니다.
configure: error: C compiler cannot create executables

./configure CC=pgcc F77=pgf90 FC=pgf90 --prefix=$GRIB_API_PATH --with-fortranlibdir=$PGI/linux86-64/7.1-6/lib --with-fortranlibs="-lpgf90 –lpgc" --with-netcdf=$NETCDF3_ROOT --with-jasper=$JASPER_PATH --with-png-support --with-openjpeg=$JPEG_PATH CFLAGS="-I$PNG_INC" LDFLAGS="-L$PNG_LIB" LIBS="-Jpng"

컴파일 옵션은 다음과 같이 주었습니다.

흠.. 머가 문제인걸까요 ㅜㅜ