Octave make 命令失败并显示“无法打开文件 debug.h”

发布于 2024-12-15 05:22:20 字数 1643 浏览 2 评论 0原文

我尝试在 AMD64 机器上的 Kubuntu 10.04 LTS 上编译 Octave 3.4.3,但 make 失败并出现以下错误

/bin/bash ../libtool  --tag=F77   --mode=compile f77  -O -c -o arpack/src/libcruft_la-cgetv0.lo `test -f 'arpack/src/cgetv0.f' || echo './'`arpack/src/cgetv0.f
libtool: compile:  f77 -O -c arpack/src/cgetv0.f  -fPIC -o arpack/src/.libs/libcruft_la-cgetv0.o
   cgetv0:
Cannot open file debug.h
/usr/bin/f77: aborting compilation
make[2]: *** [arpack/src/libcruft_la-cgetv0.lo] Error 1
make[2]: Leaving directory `/home/andrew/Documents/my_source_makes/octave-3.4.3/libcruft'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/andrew/Documents/my_source_makes/octave-3.4.3'
make: *** [all] Error 2 

假设相关(?) debug.h 文件(octave-3.4 的内容)可能有问题。 3/libcruft/arpack/src/debug.h

c
c\SCCS Information: @(#)
c FILE: debug.h   SID: 2.3   DATE OF SID: 11/16/95   RELEASE: 2
c
c     %---------------------------------%
c     | See debug.doc for documentation |
c     %---------------------------------%
      integer  logfil, ndigit, mgetv0,
     &         msaupd, msaup2, msaitr, mseigt, msapps, msgets, mseupd,
     &         mnaupd, mnaup2, mnaitr, mneigh, mnapps, mngets, mneupd,
     &         mcaupd, mcaup2, mcaitr, mceigh, mcapps, mcgets, mceupd
      common /debug/
     &         logfil, ndigit, mgetv0,
     &         msaupd, msaup2, msaitr, mseigt, msapps, msgets, mseupd,
     &         mnaupd, mnaup2, mnaitr, mneigh, mnapps, mngets, mneupd,
     &         mcaupd, mcaup2, mcaitr, mceigh, mcapps, mcgets, mceupd 

我真的不明白这些,所以有人能指出为什么 make 失败以及我能做些什么来修复它吗?

I have tried to compile Octave 3.4.3 on Kubuntu 10.04 LTS on an AMD64 machine but make fails with the following error

/bin/bash ../libtool  --tag=F77   --mode=compile f77  -O -c -o arpack/src/libcruft_la-cgetv0.lo `test -f 'arpack/src/cgetv0.f' || echo './'`arpack/src/cgetv0.f
libtool: compile:  f77 -O -c arpack/src/cgetv0.f  -fPIC -o arpack/src/.libs/libcruft_la-cgetv0.o
   cgetv0:
Cannot open file debug.h
/usr/bin/f77: aborting compilation
make[2]: *** [arpack/src/libcruft_la-cgetv0.lo] Error 1
make[2]: Leaving directory `/home/andrew/Documents/my_source_makes/octave-3.4.3/libcruft'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/andrew/Documents/my_source_makes/octave-3.4.3'
make: *** [all] Error 2 

On the assumption that something might be wrong with the relevant(?) debug.h file, the contents of octave-3.4.3/libcruft/arpack/src/debug.h are

c
c\SCCS Information: @(#)
c FILE: debug.h   SID: 2.3   DATE OF SID: 11/16/95   RELEASE: 2
c
c     %---------------------------------%
c     | See debug.doc for documentation |
c     %---------------------------------%
      integer  logfil, ndigit, mgetv0,
     &         msaupd, msaup2, msaitr, mseigt, msapps, msgets, mseupd,
     &         mnaupd, mnaup2, mnaitr, mneigh, mnapps, mngets, mneupd,
     &         mcaupd, mcaup2, mcaitr, mceigh, mcapps, mcgets, mceupd
      common /debug/
     &         logfil, ndigit, mgetv0,
     &         msaupd, msaup2, msaitr, mseigt, msapps, msgets, mseupd,
     &         mnaupd, mnaup2, mnaitr, mneigh, mnapps, mngets, mneupd,
     &         mcaupd, mcaup2, mcaitr, mceigh, mcapps, mcgets, mceupd 

I don't really understand any of this so can anyone point out why make is failing and what I can do to fix it?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

断肠人 2024-12-22 05:22:20

请参阅 http://linuxpixies.blogspot.com /2011/05/building-octave-34-on-debian-sid.html

我认为这应该可以解决你的问题。

好吧,我想我的答案很容易适应 ubuntu。

因此,我添加了更多信息:

aptitude build-dep Octave2.9 应该汇集所有依赖项。请确保您的sources.list 中启用了UNIVERSE 存储库。
您需要安装 gcc-4.3 和 gfortran-4.3。

我希望这有帮助。

Please see http://linuxpixies.blogspot.com/2011/05/building-octave-34-on-debian-sid.html.

I think this should solve your problem.

OK, I thought my answer would be easily adapted to ubuntu.

So, I adding more info:

aptitude build-dep octave2.9 should pool all dependecies. Please make sure you have the UNIVERSE repos enabled in your sources.list.
Than you need to install gcc-4.3 and gfortran-4.3.

I hope this helps.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文