Last active
September 26, 2016 19:26
-
-
Save bfolkens/13927488717b525fdd1dce87fab3db89 to your computer and use it in GitHub Desktop.
Fix load error referenced in torch2caffe issues #2, #3, and #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- th.orig 2016-09-24 19:36:08.010747479 +0000 | |
+++ th 2016-09-24 19:37:27.945031931 +0000 | |
@@ -1,3 +1,3 @@ | |
#!/bin/sh | |
-exec '/root/torch/install/bin/luajit' -e 'package.path="/root/.luarocks/share/lua/5.1/?.lua;/root/.luarocks/share/lua/5.1/?/init.lua;/root/torch/install/share/lua/5.1/?.lua;/root/torch/install/share/lua/5.1/?/init.lua;"..package.path; package.cpath="/root/.luarocks/lib/lua/5.1/?.so;/root/torch/install/lib/lua/5.1/?.so;"..package.cpath' -e 'local k,l,_=pcall(require,"luarocks.loader") _=k and l.add_context("trepl","scm-1")' '/root/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th' "$@" | |
+LD_PRELOAD=/usr/lib/libcaffe.so PYTHONPATH=/usr/lib/python2.7:/usr/local/lib/python2.7:/usr/local/src/fb-caffe-exts:/usr/python exec '/root/torch/install/bin/luajit' -e 'package.path="/root/.luarocks/share/lua/5.1/?.lua;/root/.luarocks/share/lua/5.1/?/init.lua;/root/torch/install/share/lua/5.1/?.lua;/root/torch/install/share/lua/5.1/?/init.lua;"..package.path; package.cpath="/root/.luarocks/lib/lua/5.1/?.so;/root/torch/install/lib/lua/5.1/?.so;"..package.cpath' -e 'local k,l,_=pcall(require,"luarocks.loader") _=k and l.add_context("trepl","scm-1")' '/root/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th' "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment