Octave make command fails with “Cannot open file debug.h”

别说谁变了你拦得住时间么 提交于 2020-01-17 08:04:46

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/8073199/octave-make-command-fails-with-cannot-open-file-debug-h

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!