linux磁盘满了,各种奇怪错误

今天在一个磁盘满了的linux上重新编译nginx,结果一开始报告c compiler not found...奇怪啊,明明装过gcc,好吧,用yum安装gcc,报了一大堆错误

Traceback (most recent call last):
File "/usr/bin/yum", line 29, in ?
yummain.user_main(sys.argv[1:], exit_code=True)
File "/usr/share/yum-cli/yummain.py", line 309, in user_main
errcode = main(args)
File "/usr/share/yum-cli/yummain.py", line 178, in main
result, resultmsgs = base.doCommands()
File "/usr/share/yum-cli/cli.py", line 349, in doCommands
return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds)
File "/usr/share/yum-cli/yumcommands.py", line 627, in doCommand
return base.search(extcmds)
File "/usr/share/yum-cli/cli.py", line 813, in search
self.matchcallback(po, matched_value, args)
File "/usr/share/yum-cli/output.py", line 818, in matchcallback
print msg

然后在网上找解决方案:

#yum clean all
#rm -f /var/lib/rpm/__db*
#rpm --rebuilddb
#yum update 

执行第三行的时候发现全部都是writen fail之类的错误,这才意识到磁盘满了,清理磁盘恢复正常,不弱rpm库已经被删掉了,所以再执行第三行就可恢复

posted on 2012-07-09 18:47  phphot  阅读(798)  评论(0编辑  收藏  举报