(原)luarocks更新某个模块

转载请注明出处:

http://www.cnblogs.com/darkknightzh/p/6424398.html

参考网址:

https://github.com/torch/nn/issues/974

https://github.com/brotchie/torch-ubuntu-gpu-ec2-install/issues/4

https://github.com/torch/cunn/issues/388

1. 更新nn

如果torch的某个模块需要更新的话,可以直接使用luarocks install moduleName进行重新安装。但是在更新nn时,提示

“unknown type name ptrdiff_t”

两个参考网址中均碰到了这个问题。

第一个参考网址最后说,先重新安装torch,在安装需要的模块。试了一下,成功了。

luarocks install torch

而后:

luarocks install nn

=====================================================================

170227更新:

2. 更新cunn

直接使用luarocks install cunn,提示下面的问题:

THCGenerateFloatTypes.h: No such file or directory

如参考网址3所示。该网址也提供了解决方法:需要重新安装cutorch(luarocks install cutorch),之后再安装cunn(luarocks install cunn)就可以了。

说明:其实刚才碰到了一个很诡异的问题,重新安装cutorch后,第一次安装cunn时失败了,第二次输入同样的命令,就成功了。。。

170227更新结束

170804更新:

如果在电脑使用了anaconda2后,安装torch,可能会提示:anaconda2/lib/libcurl.so.4: no version information available.

https://github.com/torch/torch7/issues/629中guopzhao指出,可以把anaconda2重命名一下,然后使用luarocks install torch来安装torch,之后再把anaconda2名字改回来就可以了。

170804更新结束

=====================================================================

 

posted on 2017-02-21 15:40  darkknightzh  阅读(1877)  评论(0编辑  收藏  举报

导航