gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-11-30 21:08:25 24 4
gpt4 key购买 nike

当我编译 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's configuration procedure is used to ease installation of the PROJ.4 system.

The default destination path prefix for installed files is /usr/local. Results from the installation script will be placed into subdirectories bin, include, lib, man/man1 and man/man3. If this default path prefix is proper, then execute:

./configure

If another path prefix is required, then execute:

./configure --prefix=/my/path

In either case, the directory of the prefix path must exist and be writable by the installer.

After executing configure, execute:

make install

The install target will create, if necessary, all required sub-directories.

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

您还可以尝试不带任何选项的简单配置,并查看配置脚本是否成功完成

cd proj && ./configure

关于C 编译器无法创建可执行文件错误 77,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38721430/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com