How to install torch7-cutorch
I want to install torch7-cutorch https://aur.archlinux.org/packages/torch7-cutorch-git/
when I run makepkg -si I get
$ makepkg -si
==> Making package: torch7-cutorch-git r1026.5e9d86c-5 (Thu 16 Sep 2021 22:25:43)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Updating torch7-cutorch-git git repo...
Fetching origin
-> Found THCAtomics.cuh.patch
==> Validating source files with sha512sums...
torch7-cutorch-git ... Skipped
THCAtomics.cuh.patch ... Passed
==> Extracting sources...
-> Creating working copy of torch7-cutorch-git git repo...
Reset branch 'makepkg'
==> Starting prepare()...
patching file lib/THC/THCAtomics.cuh
Hunk #2 succeeded at 118 with fuzz 2.
==> Starting pkgver()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
CMake Warning (dev) in CMakeLists.txt:
No project() command is present. The top-level CMakeLists.txt file must
contain a literal, direct call to the project() command. Add a line of
code such as
project(ProjectName)
near the top of the file, but after cmake_minimum_required().
CMake is pretending there is a "project(Project)" command on the first
line.
This warning is for project developers. Use -Wno-dev to suppress it.
-- The C compiler identification is unknown
CMake Error in CMakeLists.txt:
The CMAKE_C_COMPILER:
gcc-8
is not a full path and was not found in the PATH.
Tell CMake where to find the compiler by setting either the environment
variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
the compiler, or to the compiler name if it is in the PATH.
-- Configuring incomplete, errors occurred!
See also "/home/huy/Downloads/waifu2x-git/torch7-cutorch-git/src/torch7-cutorch-git/CMakeFiles/CMakeOutput.log".
See also "/home/huy/Downloads/waifu2x-git/torch7-cutorch-git/src/torch7-cutorch-git/CMakeFiles/CMakeError.log".
==> ERROR: A failure occurred in build().
Aborting...
How can I resolve this?
About this post
- Posted
- Archived
- Score
- 1 · 57% up
- Kind
- Text
- ID
- pplda9
1 comment
It seems that you need
gcc8to build that package for some reason