【问题标题】:Node.js and Travis CI: can't find lua.h when installing node-lua packageNode.js 和 Travis CI:安装 node-lua 包时找不到 lua.h
【发布时间】:2018-09-17 10:55:29
【问题描述】:

我已经尝试了大约一周左右的时间来弄清楚如何让这个 Travis CI 构建通过。

我正在使用名为 node-lua 的包(这是我自己的分支,希望其他分支可能包含修复程序)作为更新脚本的一部分。

脚本的每次运行都会导致相同的错误,尽管查看了使用 lua 和 other issues on the web 的其他 repos,我仍然不知道如何让这个构建通过。

这里是一些 travis ci 的输出,完整的日志可以在 here 找到,这是一个问题的 PR 是 here

make: Entering directory `/home/travis/build/South-Paw/warframe-item-list/node_modules/node-lua-updated/build'
  CXX(target) Release/obj.target/nodelua/src/utils.o
In file included from ../src/utils.cc:2:0:
../src/utils.h:8:17: fatal error: lua.h: No such file or directory
 #include <lua.h>
                 ^
compilation terminated.
make: *** [Release/obj.target/nodelua/src/utils.o] Error 1

我完全不知所措,对此几乎束手无策 - 有人请把我从这种痛苦中解救出来,即使它是如此痛苦显而易见......

【问题讨论】:

    标签: node.js github build lua travis-ci


    【解决方案1】:

    万一以后有人遇到这个问题,PR 解决了这个问题。

    https://github.com/South-Paw/warframe-item-list/pull/41/files

    【讨论】:

      猜你喜欢
      • 2021-07-07
      • 1970-01-01
      • 2014-04-21
      • 2016-05-03
      • 2015-10-30
      • 2013-05-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多