zoukankan      html  css  js  c++  java
  • 【Linux开发】Ubuntu下几个软件的配置记录backup

    调用ubuntu命令行的方法:ctrl+alt+t
    gcc -o test test.c



    开发工具包括eclipse,Qt等全部放入了/opt/路径下,java开发环境放在了/usr/local/jdk1.8.0_45路径下;
    OpenCV的配置路径为/home/huty/opencv/opencv-2.4.9,具体地环境设置在/ect/profile和/etc/environment

    ######  /ect/profile


    # set opencv environment
    export PATH="$PATH:/home/huty/opencv/opencv-2.4.9/include"
    export PATH="$PATH:/home/huty/opencv/opencv-2.4.9/build/bin"

    #set Qt5.7.0 environment
    export QTDIR=/opt/Qt5.7.0
    export PATH=$QTDIR/Tools/QtCreator/bin:$PATH
    export LD_LIBRARY_PATH=$QTDIR/5.7/gcc_64/lib:$LD_LIBRARY_PATH

    #set java environment
    JAVA_HOME=/usr/local/jdk1.8.0_45
    export JRE_HOME=/usr/local/jdk1.8.0_45/jre
    export CLASSPATH=$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH
    export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH



    ######  /etc/environment


    PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:JAVA_HOME/bin"
    export CLASSPATH=.:$JAVA_HOME/lib:$JAVA_HOME/jre/lib
    export JAVA_HOME=/usr/local/jdk1.8.0_45


    关于eclipse的配置,还有一个路径需要说明,那就是在/usr/local/bin/eclipse.sh文件中的内容:

    JAVA_HOME=/usr/local/jdk1.8.0_45
    PATH=$PATH:$JAVA_HOME/bin
    CLASSPATH=$CLASSPATH:$JAVA_HOME/lib
    /opt/eclipse/eclipse



    查看PATH路径:echo $PATH,可以在不同的用户下查看各自的PATH路径;





    使用eclipse可以直接在shell中使用命令:sudo eclipse.sh,输入密码即可使用;

    使用QtCreator可以直接在shell中输入qtcreator即可;

    eclipse的工程路径:/root/workspace

    Qt的工程路径:/home/huty/MyProjects/QtProjects



  • 相关阅读:
    如何在ASP.NET中使用div弹出窗口
    How to avoid error "LNK2001 unresolved external" by using DEFINE_GUID
    一个JavaScript实现的幻灯片程序分析
    Systems Thinking in Project Management
    CSS
    How To Clear Floats Without Structural Markup
    Public Symbols and Private Symbols
    DOM and CSS positioning
    JavaScript对象模型执行模型
    JavaScript 操作图片
  • 原文地址:https://www.cnblogs.com/huty/p/8518321.html
Copyright © 2011-2022 走看看