torch / distro

Torch installation in a self-contained folder
BSD 3-Clause "New" or "Revised" License
555 stars 481 forks source link

./install.sh fails in Mac OS Monterey 12.5 ( M1 Pro ) #301

Open kaustav1996 opened 2 years ago

kaustav1996 commented 2 years ago

Here is what I am getting when I run ./install.sh

./install.sh                     ✔  178  14:01:31
Prefix set to /Users/kaustav1996/torch/install
Installing Lua version: LUAJIT21
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.

CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

CMake Deprecation Warning at exe/luajit-rocks/CMakeLists.txt:9 (CMAKE_MINIMUM_REQUIRED):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

CMake Deprecation Warning at exe/luajit-rocks/CMakeLists.txt:10 (CMAKE_POLICY):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

CMake Deprecation Warning at exe/luajit-rocks/luarocks/CMakeLists.txt:3 (CMAKE_MINIMUM_REQUIRED):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

CMake Deprecation Warning at exe/luajit-rocks/luarocks/CMakeLists.txt:4 (CMAKE_POLICY):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

ld: warning: Linking with PIE, -image_base will be ignored
/bin/sh: line 1: 88808 Killed: 9               ./minilua /Users/kaustav1996/torch/exe/luajit-rocks/luajit-2.1/dynasm/dynasm.lua -D P64 -D FFI -D DUALNUM -D FPU -D HFABI -o /Users/kaustav1996/torch/build/exe/luajit-rocks/luajit-2.1/buildvm_arch.h /Users/kaustav1996/torch/exe/luajit-rocks/luajit-2.1/src/vm_arm64.dasc
make[2]: *** [exe/luajit-rocks/luajit-2.1/buildvm_arch.h] Error 137
make[1]: *** [exe/luajit-rocks/luajit-2.1/CMakeFiles/buildvm.dir/all] Error 2
make: *** [all] Error 2
error: /Library/Developer/CommandLineTools/usr/bin/install_name_tool: can't open file: /Users/kaustav1996/torch/install/lib/libluajit.dylib (No such file or directory)
./install.sh: line 107: /Users/kaustav1996/torch/install/bin/luarocks: No such file or directory
Installing common Lua packages
./install.sh: line 111: /Users/kaustav1996/torch/install/bin/luarocks: No such file or directory
gesijia174 commented 1 year ago

I have the same issue. Have you resolved yet?

hariv24 commented 5 months ago

I have the same issue. Have you resolved yet?

I too have the same problem, did you find a solution ?