安装割枪不能正常工作

问题描述:

我已经按照的说明安装了割枪,它附带了Lua 5.1,但之前在我的系统上安装了Lua 5.3。现在,当我尝试运行使用火炬计划,我得到了以下错误消息:安装割枪不能正常工作

/Users/Marcel/torch/install/share/lua/5.1/trepl/init.lua:389: module 'Settings.arguments' not found:No LuaRocks module found for Settings.arguments 
    no field package.preload['Settings.arguments'] 

no file '/usr/local/share/lua/5.1/Settings/arguments.lua' 
no file '/usr/local/share/lua/5.1/Settings/arguments/init.lua' 

仿佛火炬正在寻找在系统目录中它自己的版本的Lua的,只包含了以前安装这似乎版。有没有办法解决这个问题,或者我必须卸载Lua 5.3吗?

谢谢!

+0

使用Torch和Linux时,它有时会变成黑魔法。尝试1)重新安装Torch,2)如果您是在网关后工作,则需要通过传递'export {http,https,ftp} _proxy ='http:// @来设置代理服务器的详细信息: '''命令,*但*确保您的用户名和密码中的所有非数字和非字母都是百分比编码。嗯,可以按原样使用'.',但我在密码中输入';',并且必须用'%3B'替换它。你可以使用[这个工具来转换字符](http://r12a.github.io/apps/conversion/)。 –

只需将​​的值更改为LUAXX,如5.2版本的安装说明中所述。对于5.3版本,使用LUA53

git clone https://github.com/torch/distro.git ~/torch --recursive 
cd ~/torch 

# clean old torch installation 
./clean.sh 
# optional clean command (for older torch versions) 
# curl -s https://raw.githubusercontent.com/torch/ezinstall/master/clean-old.sh | bash 

# https://github.com/torch/distro : set env to use lua 
TORCH_LUA_VERSION=LUA53 ./install.sh