Ubuntu16.04安装TORCS
下載torch安裝包:
?
git clone https://github.com/torch/distro.git torch --recursive?
安裝依賴庫:
cd torch/sudo bash install-deps?
安裝好后會提示:
Torch7’s dependencies have been installed
安裝torch:
?
sudo ./install.sh?
安裝到最后會提示是否將torch安裝路徑加入~/.bashrc文件中:
Do you want to automatically prepend the Torch install location
to PATH and LD_LIBRARY_PATH in your /home/qinghua/.bashrc? (yes/no)
選擇自動添加,輸入yes,按enter鍵即可.
終端輸入th命令進入torch:
?
th?
這時提示錯誤:
/usr/local/bin/th: 行 3: /home/qinghua/program/torch_src/torch/install/bin/luajit: 沒有那個文件或目錄
這是因為系統找不到torch安裝路徑,這時候需要更新環境變量,即運行:
?
source ~/.bashrc?
重新輸入th即可
?
th大概出現這樣的畫面
______ __ | Torch7
/_ __/__ ________/ / | Scientific computing for Lua.
/ / / _ \/ __/ __/ _ \ | Type ? for help
/_/ \___/_/ \__/_//_/ | https://github.com/torch
| http://torch.ch
th>
[0.0000s]
th>
轉載于:https://www.cnblogs.com/Fiona-Y/p/10097305.html
總結
以上是生活随笔為你收集整理的Ubuntu16.04安装TORCS的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Scala中的Map使用例子
- 下一篇: webapi+ajax跨域问题及cook