小编Leo*_*ins的帖子

在Ubuntu中安装Torch时CMake错误

我正在尝试在PC(Ubuntu)中安装Torch。我遵循Torch网站中描述的步骤。但是,当我跑步时

$./install.sh
Run Code Online (Sandbox Code Playgroud)

我得到了错误:

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
CUDA_cublas_device_LIBRARY (ADVANCED)
    linked by target "THC" in directory /home/leonardo/torch/extra/cutorch/lib/THC
Run Code Online (Sandbox Code Playgroud)

因此,我尝试分析CMake日志,并且出现以下错误:

/home/leonardo/torch/extra/cutorch/build/CMakeFiles/CMakeTmp/src.c:5:20: error: ‘luaL_setfuncs’ undeclared (first use in this function); did you mean ‘lua_setfenv’?
   long i = sizeof(&luaL_setfuncs);
                    ^~~~~~~~~~~~~
                    lua_setfenv
/home/leonardo/torch/extra/cutorch/build/CMakeFiles/CMakeTmp/src.c:5:20: note: each undeclared identifier is reported only once for each function it appears in
CMakeFiles/cmTC_0eb19.dir/build.make:65: …
Run Code Online (Sandbox Code Playgroud)

linux install cmake torch

6
推荐指数
2
解决办法
4906
查看次数

标签 统计

cmake ×1

install ×1

linux ×1

torch ×1