Installation error with install sys

230 views
Skip to first unread message

Qianbo Yin

unread,
Feb 22, 2020, 12:15:20 PM2/22/20
to torch7
I'm currently running this command in a long installation process
`$PREFIX/bin/luarocks install sys`, where `PREFIX=$PWD/torch`

It is consistently giving me the error:

```
CMake Error at CMakeLists.txt:4 (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/luarocks_sys-1.1-0-8493/sys/build/CMakeFiles/CMakeOutput.log".

Error: Build error: Failed building.
```


I have checked the files and there is a `TorchConfig.cmake` and it's in the following directory:
`tree ./torch/share/cmake/`
```
./torch/share/cmake/
└── torch
    ├── luaTConfig.cmake
    ├── THConfig.cmake
    ├── TorchConfig.cmake
    ├── TorchExports.cmake
    ├── TorchExports-release.cmake
    ├── TorchPackage.cmake
    ├── TorchPathsInit.cmake
    └── TorchWrap.cmake

1 directory, 8 files
```

Is there any way to fix this error?

ConvNetLearner

unread,
Feb 23, 2020, 4:17:47 PM2/23/20
to torch7
The Torch build system isn't written to be done separately. You will have better luck by following the instructions here:


That said, a bigger question is why you are still trying to use Torch instead of pyTorch (https://pytorch.org/)?

Good luck!
Reply all
Reply to author
Forward
0 new messages