Version or building for Apple M1 Pro (ARM-based)

137 views
Skip to first unread message

Terry Healy

unread,
Sep 19, 2022, 11:45:23 AM9/19/22
to torch7
Hello-

Recently got a new MacBook Pro with an ARM chip and I'm trying to install Torch. Regular install gave me these errors: 

Prefix set to /Users/thealy/torch/install
Installing Lua version: LUAJIT21
xcrun: error: unable to load libxcrun (dlopen(/Library/Developer/CommandLineTools/usr/lib/libxcrun.dylib, 0x0005): tried: '/Library/Developer/CommandLineTools/usr/lib/libxcrun.dylib' (mach-o file, but is an incompatible architecture (have (x86_64), need (arm64e)))).
error: install_name_tool: can't open file: /Users/thealy/torch/install/lib/libluajit.dylib (No such file or directory)
./install.sh: line 107: /Users/thealy/torch/install/bin/luarocks: No such file or directory
Installing common Lua packages
./install.sh: line 111: /Users/thealy/torch/install/bin/luarocks: No such file or directory

Is there either an alternate location that I can download from, or is it possible to build from source? 

Any suggestions much appreciated.

-Terry
Reply all
Reply to author
Forward
0 new messages