[问题]安装软件问题( g77 )----已解决

为当前最终发行版之前的所有版本提供支持
回复
头像
yjcong
帖子: 2470
注册时间: 2006-02-28 3:11
送出感谢: 0
接收感谢: 0

[问题]安装软件问题( g77 )----已解决

#1

帖子 yjcong » 2007-01-07 0:01

学习之用, 要装个叫omega的软件, 先装了g77, 但 ./configure时遇到下面的问题, 我看不懂, 什么叫“cannot create executalbe”, 我该如何解决这个问题??先谢谢大家。


checking for mawk... mawk
checking for ranlib... ranlib
checking whether ln -s works... yes
checking for g77... g77
checking whether the Fortran 77 compiler (g77 ) works... no
configure: error: installation or configuration problem: Fortran 77 compiler cannot create executables.
上次由 yjcong 在 2007-01-07 2:16,总共编辑 1 次。
头像
yjcong
帖子: 2470
注册时间: 2006-02-28 3:11
送出感谢: 0
接收感谢: 0

#2

帖子 yjcong » 2007-01-07 1:35

我在config.log 里发现了下面的 文字, 我应该怎么办???

configure:640: checking for mawk
configure:672: checking for ranlib
configure:700: checking whether ln -s works
configure:726: checking for g77
configure:759: checking whether the Fortran 77 compiler (g77 ) works
configure:772: g77 -o conftest conftest.f 1>&5
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
configure: failed program was:

program conftest
end
头像
yjcong
帖子: 2470
注册时间: 2006-02-28 3:11
送出感谢: 0
接收感谢: 0

#3

帖子 yjcong » 2007-01-07 2:17

http://anaaman.blogspot.com/2006/01/crt ... le-or.html
里找到的 ,

While using gcc on a newly installed system you may get:
/usr/bin/ld: crt1.o: No such file: No such file or directory

This is a common problem, but with a simple solution.

On debian:
apt-get install libc6-dev

On Fedora:

$ locate crt1.o
/usr/lib/crt1.o


$ rpm -qf /usr/lib/crt1.o
glibc-devel-X.X.X-XX


Then install the package glibc-devel-X.X.X-XX using yum, rpm, etc
回复

回到 “老旧版本支持”