torch $ ./install.sh
Prefix set to /Users/apewu/torch/install
Installing Lua version: LUAJIT21
ld: -pagezero_size option can only be used when linking a main executable
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [exe/luajit-rocks/luajit-2.1/minilua] Error 1
make[1]: *** [exe/luajit-rocks/luajit-2.1/CMakeFiles/minilua.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/apewu/torch/install/lib/libluajit.dylib (No such file or directory)
./install.sh: line 76: /Users/apewu/torch/install/bin/luarocks: No such file or directory
Installing common Lua packages
./install.sh: line 80: /Users/apewu/torch/install/bin/luarocks: No such file or directory
torch $ grep -r "pagezero" .
./build/exe/luajit-rocks/luajit-2.1/CMakeFiles/buildvm.dir/link.txt:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -O3 -DNDEBUG -Wl,-search_paths_first -Wl,-headerpad_max_install_names -pagezero_size 10000 -image_base 100000000 -Wall -undefined dynamic_lookup -bundle -arch x86_64 CMakeFiles/buildvm.dir/src/host/buildvm.c.o CMakeFiles/buildvm.dir/src/host/buildvm_asm.c.o CMakeFiles/buildvm.dir/src/host/buildvm_peobj.c.o CMakeFiles/buildvm.dir/src/host/buildvm_lib.c.o CMakeFiles/buildvm.dir/src/host/buildvm_fold.c.o -o buildvm
./build/exe/luajit-rocks/luajit-2.1/CMakeFiles/luajit.dir/link.txt:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -O3 -DNDEBUG -Wl,-search_paths_first -Wl,-headerpad_max_install_names -pagezero_size 10000 -image_base 100000000 -Wall -undefined dynamic_lookup -bundle -arch x86_64 CMakeFiles/luajit.dir/src/luajit.c.o CMakeFiles/luajit.dir/src/ljamalg.c.o CMakeFiles/luajit.dir/lj_vm.S.o -o luajit /usr/local/lib/libreadline.dylib /usr/lib/libdl.dylib -lm
./build/exe/luajit-rocks/luajit-2.1/CMakeFiles/minilua.dir/link.txt:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -O3 -DNDEBUG -Wl,-search_paths_first -Wl,-headerpad_max_install_names -pagezero_size 10000 -image_base 100000000 -Wall -undefined dynamic_lookup -bundle -arch x86_64 CMakeFiles/minilua.dir/src/host/minilua.c.o -o minilua -lm
./exe/luajit-rocks/luajit-2.0/CMakeLists.txt: set ( CMAKE_EXE_LINKER_FLAGS "-pagezero_size 10000 -image_base 100000000 ${CMAKE_EXE_LINKER_FLAGS}" )
./exe/luajit-rocks/luajit-2.0/doc/install.html:-pagezero_size 10000 -image_base 100000000
./exe/luajit-rocks/luajit-2.0/src/lj_alloc.c:** That's perfect for us. Except that -pagezero_size must be set for OSX,
./exe/luajit-rocks/luajit-2.0/src/Makefile: TARGET_XLDFLAGS+= -pagezero_size 10000 -image_base 100000000
./exe/luajit-rocks/luajit-2.1/CMakeLists.txt: set ( CMAKE_EXE_LINKER_FLAGS "-pagezero_size 10000 -image_base 100000000 ${CMAKE_EXE_LINKER_FLAGS}" )
./exe/luajit-rocks/luajit-2.1/doc/install.html:-pagezero_size 10000 -image_base 100000000
./exe/luajit-rocks/luajit-2.1/src/lj_alloc.c:** That's perfect for us. Except that -pagezero_size must be set for OSX,
./exe/luajit-rocks/luajit-2.1/src/Makefile: TARGET_XLDFLAGS+= -pagezero_size 10000 -image_base 100000000
./exe/qtlua/qlua/CMakeLists.txt: set ( CMAKE_EXE_LINKER_FLAGS "-pagezero_size 10000 -image_base 100000000 ${CMAKE_EXE_LINKER_FLAGS}" )
torch $ bash install-deps
Already up-to-date.
Warning: git-2.9.0 already installed
Warning: readline-6.3.8 already installed
Warning: cmake-3.5.2 already installed
Warning: wget-1.18 already installed
Warning: qt-4.8.7_2 already installed
Warning: jpeg-8d already installed
Warning: imagemagick-6.9.4-10 already installed
Warning: zeromq-4.1.4 already installed
Warning: graphicsmagick-1.3.24 already installed
Warning: openssl-1.0.2h_1 already installed
Warning: Already linked: /usr/local/Cellar/readline/6.3.8
To relink: brew unlink readline && brew link readline
==> brew cask install caskroom/cask/brew-cask
Warning: The default Caskroom location has moved to /usr/local/Caskroom.
Please migrate your Casks to the new location, or if you would like to keep your
Caskroom at /opt/homebrew-cask/Caskroom, add the following to your HOMEBREW_CASK_OPTS:
--caskroom=/opt/homebrew-cask/Caskroom
For more details on each of those options, see https://github.com/caskroom/homebrew-cask/issues/21913.
Error: No available Cask for caskroom/cask/brew-cask
Error: nothing to install
Warning: The default Caskroom location has moved to /usr/local/Caskroom.
Please migrate your Casks to the new location, or if you would like to keep your
Caskroom at /opt/homebrew-cask/Caskroom, add the following to your HOMEBREW_CASK_OPTS:
--caskroom=/opt/homebrew-cask/Caskroom
For more details on each of those options, see https://github.com/caskroom/homebrew-cask/issues/21913.
Warning: A Cask for xquartz is already installed. Add the "--force" option to force re-install.
Uninstalling /usr/local/Cellar/gnuplot/5.0.3... (46 files, 2.8M)
==> Downloading https://downloads.sourceforge.net/project/gnuplot/gnuplot/5.0.3/gnuplot-5.
Already downloaded: /Users/apewu/Library/Caches/Homebrew/gnuplot-5.0.3.tar.gz
==> ./configure --disable-silent-rules --prefix=/usr/local/Cellar/gnuplot/5.0.3 --with-rea
==> make
==> make install
🍺 /usr/local/Cellar/gnuplot/5.0.3: 46 files, 2.8M, built in 2 minutes 17 seconds
==> Torch7's dependencies have been installed
torch $ clang -v
Apple LLVM version 7.3.0 (clang-703.0.31)
Target: x86_64-apple-darwin15.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin