LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 669|回复: 4

没有编译完的软件对系统有影响么?

[复制链接]
发表于 2008-12-25 08:23:54 | 显示全部楼层 |阅读模式
例如编译gcc在快要结束的时候出现错误了。
我现在不打算重新安装gcc了,这种安装一半的软件对系统有影响么?
会不会对我的系统造成不好的影响!
是重新安装不是升级gcc。有必要像升级gcc失败一样的处理么?
 楼主| 发表于 2008-12-25 08:36:27 | 显示全部楼层
我安装homebank的时候出现如下错误,高人看看与gcc有关系么?
gtkdateentry.h:71: 错误:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gtk_dateentry_get_type’
gtkdateentry.c: 在函数‘gtk_dateentry_init’中:
gtkdateentry.c:211: 错误:‘GtkSignalFunc’未声明(在此函数内第一次使用)
gtkdateentry.c:211: 错误:(即使在一个函数内多次出现,每个未声明的标识符在其
gtkdateentry.c:211: 错误:所在的函数内也只报告一次。)
gtkdateentry.c:211: 错误:expected ‘)’ before ‘gtk_dateentry_arrow_press’
gtkdateentry.c:214: 错误:expected ‘)’ before ‘gtk_dateentry_entry_new’
gtkdateentry.c:217: 错误:expected ‘)’ before ‘gtk_dateentry_focus’
make[2]: *** [gtkdateentry.o] 错误 1
make[2]: *** 正在等待未完成的任务....
In file included from gtkchart.c:25:
gtkchart.h:130: 错误:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gtk_chart_get_type’
In file included from homebank.h:43,
                 from gtkchart.c:26:
gtkdateentry.h:71: 错误:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gtk_dateentry_get_type’
make[2]: *** [gtkchart.o] 错误 1
make[2]: Leaving directory `/var/tmp/portage/app-office/homebank-3.8/work/homebank-3.8/src'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/var/tmp/portage/app-office/homebank-3.8/work/homebank-3.8'
make: *** [all] 错误 2
*
* ERROR: app-office/homebank-3.8 failed.
* Call stack:
*               ebuild.sh, line   49:  Called src_compile
*             environment, line 2521:  Called die
* The specific snippet of code:
*       emake || die "Compilation failed"
*  The die message:
*   Compilation failed
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/app-office/homebank-3.8/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/app-office/homebank-3.8/temp/environment'.
*

>>> Failed to emerge app-office/homebank-3.8, Log file:

>>>  '/var/tmp/portage/app-office/homebank-3.8/temp/build.log'

* Messages for package app-office/homebank-3.8:

*
* ERROR: app-office/homebank-3.8 failed.
* Call stack:
*               ebuild.sh, line   49:  Called src_compile
*             environment, line 2521:  Called die
* The specific snippet of code:
*       emake || die "Compilation failed"
*  The die message:
*   Compilation failed
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/app-office/homebank-3.8/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/app-office/homebank-3.8/temp/environment'.
*
回复 支持 反对

使用道具 举报

发表于 2008-12-25 10:37:14 | 显示全部楼层
Post by wangwentao24;1929301
例如编译gcc在快要结束的时候出现错误了。
我现在不打算重新安装gcc了,这种安装一半的软件对系统有影响么?
会不会对我的系统造成不好的影响!
是重新安装不是升级gcc。有必要像升级gcc失败一样的处理么?


没啥影响。
编译的东西都在/var下进行,只有编译成功,才会去用编译好的东西替代已有文件。
如果编译未成功,原先的文件是不会受到任何影响的。

这是gentoo的一种保护机制。
回复 支持 反对

使用道具 举报

发表于 2008-12-25 11:30:36 | 显示全部楼层
没成功安装的文件都在/var里,会自动清理的,不会影响原系统。
回复 支持 反对

使用道具 举报

发表于 2008-12-25 19:06:18 | 显示全部楼层
只有成功编译才会安装,中途出错或退出生成的都是临时文件,可以手工删除
rm -rfv /var/portage/*
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表