在ubuntu里面安装软件执行./configure时出现问题。Fortran 77 compiler cannot create executables

徐小浩 2021-10-21 16:37:36

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for g77... g77
checking whether the Fortran 77 compiler works... no
configure: error: in `/usr/local/fomosto-qseis':
configure: error: Fortran 77 compiler cannot create executables
See `config.log' for more details


config.log文件如下

configure:1821: checking for a BSD-compatible install
configure:1889: result: /usr/bin/install -c
configure:1900: checking whether build environment is sane
configure:1955: result: yes
configure:2106: checking for a thread-safe mkdir -p
configure:2145: result: /bin/mkdir -p
configure:2152: checking for gawk
configure:2182: result: no
configure:2152: checking for mawk
configure:2168: found /usr/bin/mawk
configure:2179: result: mawk
configure:2190: checking whether make sets $(MAKE)
configure:2212: result: yes
configure:2241: checking whether make supports nested variables
configure:2258: result: yes
configure:2437: checking for g77
configure:2453: found /usr/bin/g77
configure:2464: result: g77
configure:2490: checking for Fortran 77 compiler version
configure:2499: g77 --version >&5
GNU Fortran (GCC) 3.4.6 (Ubuntu 3.4.6-6ubuntu5)
Copyright (C) 2006 Free Software Foundation, Inc.

GNU Fortran comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of GNU Fortran
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING
or type the command `info -f g77 Copying'.
configure:2510: $? = 0
configure:2499: g77 -v >&5
Reading specs from /usr/lib/gcc/x86_64-linux-gnu/3.4.6/specs
Configured with: ../src/configure -v --enable-languages=c,c++,f77,pascal --prefix=/usr --libexecdir=/usr/lib --with-gxx-include-dir=/usr/include/c++/3.4 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --program-suffix=-3.4 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug x86_64-linux-gnu
Thread model: posix
gcc version 3.4.6 (Ubuntu 3.4.6-6ubuntu5)
configure:2510: $? = 0
configure:2499: g77 -V >&5
g77: `-V' option must have argument
configure:2510: $? = 1
configure:2499: g77 -qversion >&5
g77: unrecognized option `-qversion'
g77: no input files
configure:2510: $? = 1
configure:2525: checking whether the Fortran 77 compiler works
configure:2547: g77   conftest.f  >&5
/usr/bin/ld: cannot find crt1.o: No such file or directory
/usr/bin/ld: cannot find crti.o: No such file or directory
collect2: ld returned 1 exit status
configure:2551: $? = 1
configure:2589: result: no
configure: failed program was:
|       program main

|       end
configure:2594: error: in `/usr/local/fomosto-qseis':
configure:2596: error: Fortran 77 compiler cannot create executables
See `config.log' for more details

...全文
3039 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
chenweicug_12 2022-03-17
  • 打赏
  • 举报
回复

这个就是得告诉你用的fotran 编译器是用哪个,改正方法为 ./configure F77=gfortran

徐小浩 2021-10-21
  • 打赏
  • 举报
回复

求大神帮助

19,614

社区成员

发帖
与我相关
我的任务
社区描述
系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
社区管理员
  • 系统维护与使用区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧