【问题标题】:Error in running Torch/Lua, maybe an installation error运行 Torch/Lua 时出错,可能是安装错误
【发布时间】:2016-01-21 01:49:21
【问题描述】:

我在 http://torch.ch/docs/getting-started.html 之后安装了 Torch。

但是,当我运行诸如“th”之类的东西或任何简单代码时,我收到以下错误消息:

/Users/JianxuChen/torch/install/bin/luajit: ...rs/JianxuChen/torch/install/share/lua/5.1/trepl/init.lua:692: 尝试调用字段 'setheaptracking' (a零值) 堆栈回溯: ...rs/JianxuChen/torch/install/share/lua/5.1/trepl/init.lua:692:在主块中 [C]:在函数“要求”中 ...Chen/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:104:在主块中 [C]: 在 0x01089f8bc0

有没有人遇到过类似的问题,或者知道如何解决?

谢谢!

【问题讨论】:

  • Torch 堆跟踪已经在很久以前引入(参见 this),最近在 trepl 上默认启用(参见 this),所以这很奇怪。是全新安装还是更新?如果你运行pushd ~/torch/pkg/torch/ && git rev-parse HEAD,你会得到什么?
  • @deltheil,我得到了 ~/torch/pkg/torch ~/torch 840e7312e51e3dd6e28583d4020bfe134eadb9cf 错误仍然没有解决。安装过程中会不会出现一些错误?安装过程中生成的日志文件(install.log)附在:drive.google.com/file/d/0BzY6rRCk_ItCLVctN05TeWE5UlE/…
  • 所以你有一个足够新的火炬版本(如果你最近克隆了火炬/发行版,这是正常的)。那就是说您的安装日志不完整:它似乎在lua-cjson 安装后停止(即here)。

标签: lua torch


【解决方案1】:

我遇到了同样的问题并以这种方式解决了。您的手电筒不是最新版本。我所做的不是遵循这个http://torch.ch/docs/getting-started.html。而是下载 https://github.com/torch/distro 并运行 ./install。然后就可以了!

【讨论】:

    猜你喜欢
    • 2022-01-28
    • 2019-03-01
    • 2019-05-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-12-26
    • 1970-01-01
    • 2018-09-03
    相关资源
    最近更新 更多