Torch / cunn安装错误 - 文件已经有LC_RPATH

时间:2017-01-25 13:07:37

标签: torch

我尝试为Torch安装cunn但是安装失败。 Cuda是7.5.27因为8不再支持OSX 10.10。

我一直在试图调试这个问题,但我已经没事了。

在搜索解决方案时,我发现很少有其他人遇到类似的问题(https://github.com/TRIQS/cthyb/issues/8https://github.com/jcjohnson/neural-style/issues/134),但是没有找到解决此问题的解决方案。这似乎是与OSX / Xcode相关的一般问题,而不一定是cunn。

非常感谢所有帮助。

$ luarocks install cunn
...
...
-- Installing: /Users/foo/torch/install/lib/luarocks/rocks/cunn/scm-1/lib/libTHCUNN.so
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: for: 
/Users/foo/torch/install/lib/luarocks/rocks/cunn/scm-1/lib/libTHCUNN.so (for architecture x86_64) option "-add_rpath /usr/local/cuda/lib" 
would duplicate path, file already has LC_RPATH for: /usr/local/cuda/lib

1 个答案:

答案 0 :(得分:0)

./clean.sh ~/torch后跟./update.sh #!/bin/bash source /etc/profile.d/myapp.sh NAME="myapp-web-services" DJANGODIR="/home/myapp/myapp-web-services" SOCKFILE=/tmp/myapp-web-services.sock USER=myapp GROUP=myapp NUM_WORKERS=9 TIMEOUT=100 DJANGO_WSGI_MODULE=settings.wsgi echo "Starting $NAME as `whoami`" cd $DJANGODIR source /home/myapp/.virtualenvs/myapp-web-services/bin/activate export PYTHONPATH=$DJANGODIR:$PYTHONPATH RUNDIR=$(dirname $SOCKFILE) test -d $RUNDIR || mkdir -p $RUNDIR exec newrelic-admin run-program /home/myapp/.virtualenvs/myapp-web-services/bin/gunicorn ${DJANGO_WSGI_MODULE}:application \ --name $NAME \ --workers $NUM_WORKERS \ --user=$USER --group=$GROUP \ --bind=unix:$SOCKFILE \ --log-level=warning \ --timeout=$TIMEOUT \ --log-file=- \ --max-requests=1200 时,问题就消失了。我仍然不知道这是什么问题。