zoukankan      html  css  js  c++  java
  • 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>

  • 相关阅读:
    2015-05-28
    QQ项目随笔-15-05-19
    QQ聊天窗口布局笔记-15-05-17
    QQ聊天cell-15-05-16
    关于自定义cell——15-05-13
    关于MVC中德一些注意事项-15-05-11
    关于UITableView的若干方法-15-05-07
    UIAlertView(弹窗)的若干方法15-05-07
    •UIButton快捷获取属性值
    ES6(简)
  • 原文地址:https://www.cnblogs.com/Fiona-Y/p/10097305.html
Copyright © 2011-2022 走看看