Error installing Torch on Mac OS 10.13.3

74 views
Skip to first unread message

Bryan C

unread,
Mar 26, 2018, 10:06:10 AM3/26/18
to torch7
Hi all --

I'm been trying to install this for a couple days now and can't seem to figure out what the problem is. I thought at first my xcode might have been outdated so I updated everything to the latest version of OS X and Xcode.

I'm currently running 10.13.3 with Xcode 9.2

When I run, ./install.sh I get this result:

Prefix set to /Users/bryanc/torch/install
Installing Lua version: LUAJIT21
ld: warning: ignoring file /opt/local/lib/libreadline.dylib, missing required architecture x86_64 in file /opt/local/lib/libreadline.dylib (2 slices)
Undefined symbols for architecture x86_64:
  "_add_history", referenced from:
      _dotty in luajit.c.o
  "_read_history", referenced from:
      _dotty in luajit.c.o
  "_readline", referenced from:
      _pushline in luajit.c.o
  "_rl_attempted_completion_function", referenced from:
      _dotty in luajit.c.o
  "_rl_completer_quote_characters", referenced from:
      _dotty in luajit.c.o
  "_rl_completer_word_break_characters", referenced from:
      _dotty in luajit.c.o
  "_rl_completion_suppress_append", referenced from:
      _lua_rl_complete in luajit.c.o
  "_rl_initialize", referenced from:
      _dotty in luajit.c.o
  "_rl_readline_name", referenced from:
      _dotty in luajit.c.o
  "_stifle_history", referenced from:
      _dotty in luajit.c.o
  "_using_history", referenced from:
      _dotty in luajit.c.o
  "_write_history", referenced from:
      _dotty in luajit.c.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [exe/luajit-rocks/luajit-2.1/luajit] Error 1
make[1]: *** [exe/luajit-rocks/luajit-2.1/CMakeFiles/luajit.dir/all] Error 2
make: *** [all] Error 2
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: can't open file: /Users/bryanc/torch/install/lib/libluajit.dylib (No such file or directory)
./install.sh: line 107: /Users/bryanc/torch/install/bin/luarocks: No such file or directory
Installing common Lua packages
./install.sh: line 111: /Users/bryanc/torch/install/bin/luarocks: No such file or directory


Any help would love wonderful. Thanks!
Reply all
Reply to author
Forward
0 new messages