Torch+Lua+Eclipse Macos环境配置
Installing and Running Torch
Install
In a terminal, run the commands WITHOUT sudo.
The first script installs the basic package dependencies that LuaJIT and Torch require. The second script installs LuaJIT, LuaRocks, and then uses LuaRocks (the lua package manager) to install core packages like torch, nn and paths, as well as a few other packages.
git clone https://github.com/torch/distro.git ~/torch --recursive
cd ~/torch; bash install-deps;
./install.sh
Run the command to add torch to PATH variable.
# On OSX or in Linux with none of the above.
source ~/.profile
如果报错.profile文件不存在,在~目录下运行
touch .profi