【问题标题】:make error while building GNU Octave from sources从源代码构建 GNU Octave 时出错
【发布时间】:2020-04-26 15:35:45
【问题描述】:
mkdir .build                            && \
cd    .build                            && \
./../configure --prefix=$HOME/my_octave && \ [1]
make -j2                                && \ [2]
make check                              && \
make install

在运行时 make -j2 我得到的错误是

error: print: error opening file 'extended.tex'
error: called from    print>latex_standalone at line 1029 column 5
    __opengl_print__ at line 214 column 5    
print at line 759 column 16    plotimages at line 109 column 7  
GEN      doc/interpreter/gplot.pdfMakefile:27911: recipe for target `'doc/interpreter/extended.pdf' failedmake[2]: *** [doc/interpreter/extended.pdf] Error `1make[2]: *** Waiting for unfinished jobs....make[2]: Leaving directory `'/home/bhanu/octave/.build'Makefile:26305: recipe for target 'all-recursive' failedmake[1]: *** `[all-recursive] Error 1make[1]: Leaving directory '/home/bhanu/octave/.build'Makefile:9916: 


recipe for target 'all' failedmake: *** [all] Error 2

有人可以帮我解决错误吗?我在 Ubuntu 18.04 系统上运行它。

【问题讨论】:

  • 你先添加依赖了吗? (例如 sudo apt build-dep octave)。另外,您要构建哪个八度音阶?我在我的 Makefile 中没有看到与“extended.tex”类似的行...

标签: makefile octave gnu tex


【解决方案1】:

有时构建过程会尝试重新构建所有文档。 我正在从源代码octave-5.2.0.tar.lz 文件和 通常的解决方法就是

touch AUTHORS BUGS INSTALL.OCTAVE

configure 和第一个make 之间 构建树。

在构建阶段结束时,我只有两个 PDF

./doc/interpreter/octave.pdf
./doc/liboctave/liboctave.pdf

【讨论】:

    【解决方案2】:

    像这样创建名为“extended.tex”的文件:

    touch doc/interpreter/extended.tex
    

    您必须在 octave/.build/ 目录中执行此操作。

    对以后出现的任何类似错误执行此操作。它以这种方式对我有用。

    【讨论】:

    • 这听起来很可疑。我可以相信构建以这种方式成功完成,但如果它完全正确,我会感到惊讶。关于有问题的特定文件,我猜想以这种方式解决错误会导致错误构建的文档。
    • 我最好的猜测是 octave 不完全支持您尝试执行的源外构建。如果源内构建成功,那么这将是我最信任的解决方案。即跳过mkdircd命令,直接在源目录下运行./configure和所有make命令。
    • Octave 支持树外构建。
    猜你喜欢
    • 1970-01-01
    • 2016-04-13
    • 2015-10-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多