• 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

  • 相关阅读:
    关于 Kubernetes 中的 Volume 与 GlusterFS 分布式存储
    使用 Kubeadm 升级 Kubernetes 版本
    Kubernetes 中的核心组件与基本对象概述
    使用 Kubeadm 安装部署 Kubernetes 1.12.1 集群
    比较 Spring AOP 与 AspectJ
    关于 Spring Security OAuth2 中 CORS 跨域问题
    Prometheus 入门与实践
    MySQL 分支的选择:Percona 还是 MariaDB
    Spring Boot 集成 Swagger2 与配置 OAuth2.0 授权
    关于 Spring Security 5 默认使用 Password Hash 算法
  • 原文地址:https://www.cnblogs.com/hoojjack/p/3857240.html
Copyright © 2020-2023  润新知