Centos上运行g++c++:command not found
来源:互联网 发布:传智播客2017java 编辑:程序博客网 时间:2024/05/15 04:12
Centos上运行g++c++:command not found
[root@localhost bin]# g++
-bash: g++: command not found
[root@localhost bin]# whereis g++
g++:
[root@localhost bin]# whereis c++
c++:
[root@localhost bin]#
[root@localhost bin]#
[root@localhost bin]# g++
-bash: g++: command not found
[root@localhost bin]#yum install gcc gcc-c++
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: mirror.bit.edu.cn
* extras: mirror.bit.edu.cn
* updates: mirrors.skyshe.cn
Setting up Install Process
Package gcc-4.4.7-11.el6.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package gcc-c++.x86_64 0:4.4.7-11.el6 will be installed
--> Processing Dependency: libstdc++-devel = 4.4.7-11.el6 for package: gcc-c++-4.4.7-11.el6.x86_64
--> Processing Dependency: libstdc++ = 4.4.7-11.el6 for package: gcc-c++-4.4.7-11.el6.x86_64
--> Running transaction check
---> Package libstdc++.x86_64 0:4.4.7-4.el6 will be updated
---> Package libstdc++.x86_64 0:4.4.7-11.el6 will be an update
---> Package libstdc++-devel.x86_64 0:4.4.7-11.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
==============================================================================================
Package Arch Version Repository Size
==============================================================================================
Installing:
gcc-c++ x86_64 4.4.7-11.el6 base 4.7 M
Installing for dependencies:
libstdc++-devel x86_64 4.4.7-11.el6 base 1.6 M
Updating for dependencies:
libstdc++ x86_64 4.4.7-11.el6 base 294 k
Transaction Summary
==============================================================================================
Install 2 Package(s)
Upgrade 1 Package(s)
Total download size: 6.6 M
Is this ok [y/N]: y
Downloading Packages:
(1/3): gcc-c++-4.4.7-11.el6.x86_64.rpm | 4.7 MB 00:13
(2/3): libstdc++-4.4.7-11.el6.x86_64.rpm | 294 kB 00:00
(3/3): libstdc++-devel-4.4.7-11.el6.x86_64.rpm | 1.6 MB 00:04
----------------------------------------------------------------------------------------------
Total 340 kB/s | 6.6 MB 00:19
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : libstdc++-4.4.7-11.el6.x86_64 1/4
Installing : libstdc++-devel-4.4.7-11.el6.x86_64 2/4
Installing : gcc-c++-4.4.7-11.el6.x86_64 3/4
Cleanup : libstdc++-4.4.7-4.el6.x86_64 4/4
Verifying : libstdc++-devel-4.4.7-11.el6.x86_64 1/4
Verifying : libstdc++-4.4.7-11.el6.x86_64 2/4
Verifying : gcc-c++-4.4.7-11.el6.x86_64 3/4
Verifying : libstdc++-4.4.7-4.el6.x86_64 4/4
Installed:
gcc-c++.x86_64 0:4.4.7-11.el6
Dependency Installed:
libstdc++-devel.x86_64 0:4.4.7-11.el6
Dependency Updated:
libstdc++.x86_64 0:4.4.7-11.el6
Complete!
[root@localhost bin]# g++
g++: no input files
[root@localhost bin]#
- Centos上运行g++c++:command not found
- CentOS 中 make: g++ command not found
- centos :运行ifconfig 提示command not found
- g++: command not found
- g++ command not found
- g++: command not found
- CentOS下g++: command not found问题的解决
- Problem: g++: Command not found
- 解决g++:command not found
- centOS scp: command not found
- 【CentOS】ifconfig command not found
- ubuntu g++ make: g++: Command not found
- g++: command not found的解决
- Ubuntu 10.10 :g++: Command not found
- g++: command not found的解决
- g++: command not found的解决
- g++: command not found的解决
- g++: command not found的解决
- C语言基础:C语言结构体(7) - 结构体的嵌套使用
- C语言学习笔记1
- QT在ubuntu下无法调试控制台C/C++程序
- JavaScript中slice()和substring()的区别
- 关于ios下arm64 luajitv2.1编译(续)
- Centos上运行g++c++:command not found
- 敏捷杂谈之敏捷测试中理想的测试组织
- LEETCODE: Binary Tree Postorder Traversal
- Java笔记——迭代器
- <Boost> smart_ptr智能指针
- Asp注释
- Android应用中使用及实现系统“分享”与“被分享”接口
- Android编程之还原JD-GUI反编译后代码 switch
- iOS 如何实现 语音朗读