c++ - g++ --version 失败,但显示 g++ 已经安装
问题描述
root@node4:/storage/LHY/Pytorch-Correlation-extension-master# g++ --version
Command 'g++' not found, but can be installed with:
但安装也失败:
root@node4:/storage/LHY/Pytorch-Correlation-extension-master# apt install g++
Reading package lists... Done
Building dependency tree
Reading state information... Done
g++ is already the newest version (4:7.4.0-1ubuntu2.3).
The following packages were automatically installed and are no longer required:
fonts-crosextra-caladea fonts-crosextra-carlito fonts-dejavu fonts-linuxlibertine fonts-sil-gentium fonts-sil-gentium-basic gstreamer1.0-gtk3
lib32gcc1 libapache-pom-java libbsh-java libcommons-logging-java libcommons-parent-java libel-api-java libhsqldb1.8.0-java libjsp-api-java libllvm7
libservlet-api-java libservlet3.1-java libwebsocket-api-java
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 486 not upgraded.
root@node4:/storage/LHY/Pytorch-Correlation-extension-master#
解决方案
推荐阅读
- kubernetes - 创建 Kubernetes 部署清单时验证数据时出错
- javascript - 具有用于启用地理定位服务的多操作系统/浏览器说明的第三方组件?
- node.js - 如何修复 POST 不是 NodeJS 中的函数错误
- java - 删除所有文件和子目录,但在 Java 中保持当前目录为空
- java - 字符串到日期,不符合
- sql - 如何定义以下日期格式的日期格式掩码?
- php - 如何拆分第一个分隔符是第一个空格,第二个是php中的单词的字符串?
- javascript - POST 请求 SNS 发布消息(无 aws-sdk)
- java - 如何只计算 Pi 的第 n 位?
- php - Woocommerce 最低和最高价格过滤器