【问题标题】:C compiler cannot create executables error 77 [closed]C 编译器无法创建可执行文件错误 77 [关闭]
【发布时间】:2016-08-02 13:12:51
【问题描述】:

当我编译 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 并通过测试运行进行了检查。

【问题讨论】:

  • 你能分享一下'config.log'的内容吗?

标签: c makefile


【解决方案1】:

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

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

FSF 的配置过程用于简化安装 PROJ.4 系统。

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

./configure

如果需要其他路径前缀,则执行:

./configure --prefix=/my/path

无论哪种情况,前缀路径的目录都必须存在并且是 可由安装程序写入。

执行configure后,执行:

make install

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

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

您也可以尝试不带任何选项的普通配置,看看配置脚本是否成功完成

cd proj && ./configure

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2013-09-24
    • 2012-05-08
    • 1970-01-01
    • 2021-06-16
    • 2021-04-23
    • 2019-02-03
    相关资源
    最近更新 更多