C编译器无法创建可执行文件错误77



当我编译makefile时,此错误显示为

root@akshay-HP-ENVY-m6-Notebook-PC:/home/akshay/Downloads/FVCOM3.2.2/FVCOM_source/libs# make
for item in proj        julian      fproj   ; do (./untar.sh $item ) || exit 1; done
cd proj && ./configure CC=icc CFLAGS=-O3 CXX=icc CXXFLAGS=-O3 F77=ifort FFLAGS=-O3 --prefix=/home/akshay/Downloads/FVCOM3.2.2/FVCOM_source/libs/install
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... icc
checking for C compiler default output file name... configure: error: C 
compiler cannot create executables
See `config.log' for more details.
make: *** [all] Error 77

如何解决此问题。我已经安装了icc,并通过测试运行进行了检查。

当make试图运行libs/proj/configure时,似乎出现了问题。

您应该按照libs/proj/README文件中的安装说明进行操作,该文件中写道:

FSF的配置程序用于简化PROJ.4系统。

已安装文件的默认目标路径前缀为/usr/local。安装脚本的结果将被放入子目录bin、include、lib、man/man1和man/man3。如果默认路径前缀正确,然后执行:

./configure

如果需要另一个路径前缀,则执行:

./configure --prefix=/my/path

在任何一种情况下,前缀路径的目录都必须存在并且可由安装程序写入。

执行配置后,执行:

make install

如有必要,安装目标将创建所有必需的子目录。

确保前缀路径(在您的情况下为/home/akshay/Downloads/FVCOM3.2.2/FVCOM_source/libs/install)存在并且可写。

你也可以尝试一个没有任何选项的简单配置,看看配置脚本是否成功完成

cd proj && ./configure

最新更新