zoukankan      html  css  js  c++  java
  • Linux 使用 常识记忆

    1、当系统突然死机需要重启时,打开 命令输入端口,使用快捷键 Shift +Alt +F(1或6)打开 ,然后输入 shutdown -r now 如果提示shutdown need to be root ,如果没有权限 就输入 su 然后再输入 shutdown -r now

    2、在安装Eclipse中要运行C++程序,需要安装cdt 

    3、

    cmake两个错误的解决方法

    今天在linux上配置环境时遇到了两个cmake的问题,在网上找了半天才找到解决方法。菜鸟特此记下解决方法,以备后用。

    问题1:

    -- Check for working CXX compiler: CMAKE_CXX_COMPILER-NOTFOUND 
    CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name.

    解决方法:

    sudo apt-get install g++

    问题2:

    CMake Error at /usr/share/cmake-2.6/Modules/FindKDE4.cmake:84 (MESSAGE):                 
    ERROR: cmake/modules/FindKDE4Internal.cmake not found in                               
    /home/mm/.kde/share/apps;/usr/share/kde4/apps[/code]

    解决方法:

    sudo apt-get install kdelibs5-dev

    3、解决unresolved inclusion*****的一个步骤

    It turns out my problem can be solved by tweaking the options in "Project properties->C/C++ general->Indexer" panel. Please refer to the figure.

    First, I checked the "Enable project specific settings". And then, in the indexer options, I checked "Index unused headers as C++ files" and "Index source and header files opened in editor". Finally, I clicked "apply" and "OK" and after a while, all the "bugs" and "unresolved xxx" disappeared.

    I'm not sure whether what I did is necessary or sufficient. Also, it always takes some time for the indexer to take effect after I checked or unchecked some options, so I don't have time to find out necessary and sufficient options to solve the problem.

    enter image description here

    4、linux 系统 Eclipse 安装Python 

      首先安装Eclipse和Python  Ubuntu自带的Python软件,如果没有可以去官方下载。然后 安装到Eclipse 中  打开Eclipse 中的Help-->Install New Software -->出现的窗口中,点击Work with 后的add按钮 进行添加安装程序 在Add Repository 中,name可以自己任意取名,location: http://pydev.org/updates  (我自己试验成功的地址)最后等待安装完成。

      安装完Python后,还要配置,如果不进行配置,会提示Project interpreter not specified ,所以要进行配置打开Window,点击Preferences,展开左边的Pydev,点击Interpreter-Python,选择右边的New,Interpreter Name随便命名为Python,Interpreter Executable栏点击Browse...,找到/usr/bin/python,然后OK

  • 相关阅读:
    Codeforces 177G2 Fibonacci Strings KMP 矩阵
    Codeforces Gym100187C Very Spacious Office 贪心 堆
    Codeforces 980F Cactus to Tree 仙人掌 Tarjan 树形dp 单调队列
    AtCoder SoundHound Inc. Programming Contest 2018 E + Graph (soundhound2018_summer_qual_e)
    BZOJ3622 已经没有什么好害怕的了 动态规划 容斥原理 组合数学
    NOIP2016提高组Day1T2 天天爱跑步 树链剖分 LCA 倍增 差分
    Codeforces 555C Case of Chocolate 其他
    NOIP2017提高组Day2T3 列队 洛谷P3960 线段树
    NOIP2017提高组Day2T2 宝藏 洛谷P3959 状压dp
    NOIP2017提高组Day1T3 逛公园 洛谷P3953 Tarjan 强连通缩点 SPFA 动态规划 最短路 拓扑序
  • 原文地址:https://www.cnblogs.com/hoojjack/p/3857240.html
Copyright © 2011-2022 走看看