目录
- 1. 错误:E325:ATTENTION
- 2. 错误:gcc: fatal error: no input files
- 3. 错误:make: g++: Command not found(linux下g++不能编译的问题)
- 4. 错误:cp: omitting directory
- 5.错误:Not all processes could be identified, non-owned process info will not be shown, you would have to be root to see it all
- 6. 错误:Error detected while processing function 99_PollServerReady[7]..99_Pyeval[2]..provider#python3#Call:
1. 错误:E325:ATTENTION
E325:ATTENTION错误:vim编辑异常退出的错误,这时系统会创建一个交换文件swap file以保证文件的安全性。
例如:在vim编辑时突然按了ctrl+z或者直接关掉机器,当再次打开.c文件时就会出现:E325:ATTENTION错误
解决:
2. 错误:gcc: fatal error: no input files
gcc: fatal error: no input files错误是gcc没有输入文件导致的错误
例如:写了一个test.c,然后命令行直接输入gcc就会出现这种错误
3. 错误:make: g++: Command not found(linux下g++不能编译的问题)
错误:
解决:
前提是在root用户下
重建rpm数据库和安装版本组件
[root@VM-0-9-centos rpm]# cd /var/lib/rpm
[root@VM-0-9-centos rpm]# ls
[root@VM-0-9-centos rpm]# rm -rf _db*
[root@VM-0-9-centos rpm]# rpm --rebuilddb
[root@VM-0-9-centos rpm]# yum search "gcc-c++"
[root@VM-0-9-centos rpm]# yum install "gcc-c++.x86_64" -y
4. 错误:cp: omitting directory
因为dir目录下存在其他目录或文件存在
解决:使用cp命令时,加上 -r 选项,此选项指“递归持续复制,用於目录的复制行为
5.错误:Not all processes could be identified, non-owned process info will not be shown, you would have to be root to see it all
在普通用户下执行netstat -anp | grep [端口]
命令,可能会出现此错误
原因:普通用户下执行的 netstat命令,权限不足
解决:
切换root用户,执行以下命令
chmod +s /bin/netstat
6. 错误:Error detected while processing function 99_PollServerReady[7]…99_Pyeval[2]…provider#python3#Call:
make编译时可能会出现这种情况
解决:在当前vim的末行模式中输入如下命令删除对应的文件
:call delete(g:MRU_File)