【问题标题】:Missing dependencies lua-cjson >= 2.1.0 for installing fblualib?缺少用于安装 fblualib 的依赖项 lua-cjson >= 2.1.0?
【发布时间】:2017-07-09 19:02:24
【问题描述】:

安装fblualib时遇到如下错误:

Missing dependencies for fbluaunit:
lua-cjson >= 2.1.0

^CWarning: Failed searching manifest: Failed loading manifest: Failed     fetching manifest for http://luarocks.org/repositories/rocks - Error fetching file: Failed downloading http://luarocks.org/repositories/rocks/manifest

Error: Could not satisfy dependency: lua-cjson >= 2.1.0

Missing dependencies for fbluaunit:
lua-cjson >= 2.1.0

^CWarning: Failed searching manifest: Failed loading manifest: Failed fetching manifest for http://luarocks.org/repositories/rocks - Error fetching file: Failed downloading http://luarocks.org/repositories/rocks/manifest

Error: Could not satisfy dependency: lua-cjson >= 2.1.0
    cmake -E make_directory build &&
    cd build &&
    cmake -DROCKS_PREFIX=/usr/local/lib/luarocks/rocks/fbpython/0.1-1 \
          -DROCKS_LUADIR=/usr/local/lib/luarocks/rocks/fbpython/0.1-1/lua \
          -DROCKS_LIBDIR=/usr/local/lib/luarocks/rocks/fbpython/0.1-1/lib \
          .. &&
    make

CMake Error at CMakeLists.txt:25 (FIND_PACKAGE):
  By not providing "FindTorch.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Torch", but
  CMake did not find one.

  Could not find a package configuration file provided by "Torch" with any of
  the following names:

    TorchConfig.cmake
    torch-config.cmake

  Add the installation prefix of "Torch" to CMAKE_PREFIX_PATH or set
  "Torch_DIR" to a directory containing one of the above files.  If     "Torch"
  provides a separate development package or SDK, be sure it has been
  installed.


-- Configuring incomplete, errors occurred!
See also "/tmp/fblualib-build.0APMyV/fblualib/fblualib/python/build/CMakeFiles/CMakeOutput.log".

Error: Build error: Failed building.

我尝试使用我的 luarocks 安装 lua-cjson,安装完成后显示:

lua-cjson 2.1.0-1 is now built and installed in /home/XXXXXXXXX/torch/install/ (license: MIT)

我认为它已安装,但当我再次安装 fblualib 时会导致同样的错误。 如何克服它?提前致谢。

【问题讨论】:

    标签: lua torch


    【解决方案1】:

    据我检查,这是网络故障。设置好网络环境后,一切顺利。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-07-10
      • 1970-01-01
      • 1970-01-01
      • 2022-11-09
      • 2020-11-18
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多