ruifeng_ 发表于 2013-04-11 02:11

编译安装XFCE4出现错误 。。。

本帖最后由 ruifeng_ 于 2013-04-11 02:18 编辑

FreeBSD 9.1(amd64)安装xfce4桌面(刚安装的系统,默认源地址未改), 出现如下错误:
root@feiyin:/ # cd /usr/ports/x11-wm/xfce4 && make install clean
===>Installing for xfce-4.10_4
===>   xfce-4.10_4 depends on executable: xfwm4 - not found
===>    Verifying install for xfwm4 in /usr/ports/x11-wm/xfce4-wm
===>Found saved configuration for xfce4-wm-4.10.0_1
===>   xfce4-wm-4.10.0_1 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by xfce4-wm-4.10.0_1 for building
===>Extracting for xfce4-wm-4.10.0_1
=> SHA256 Checksum mismatch for xfce4/xfwm4-4.10.0.tar.bz2.
===>Refetch for 1 more times files: xfce4/xfwm4-4.10.0.tar.bz2
===>Found saved configuration for xfce4-wm-4.10.0_1
===>   xfce4-wm-4.10.0_1 depends on file: /usr/local/sbin/pkg - found
=> xfwm4-4.10.0.tar.bz2 doesn't seem to exist in /usr/ports/distfiles/xfce4.
=> Attempting to fetch http://mirror.perldude.de/archive.xfce.org/xfce/4.10/src/xfwm4-4.10.0.tar.bz2
Initializing download: http://mirror.perldude.de/archive.xfce.org/xfce/4.10/src/xfwm4-4.10.0.tar.bz2
File size: 1100067 bytes
Opening output file xfwm4-4.10.0.tar.bz2.9
Starting download
...............
Connection 26 finished
[..................................................] [ 141.4KB/s]

Downloaded 1074.3 kilobytes in 7 seconds. (141.37 KB/s)
===> Fetching all distfiles required by xfce4-wm-4.10.0_1 for building
===>Found saved configuration for xfce4-wm-4.10.0_1
===>   xfce4-wm-4.10.0_1 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by xfce4-wm-4.10.0_1 for building
=> SHA256 Checksum mismatch for xfce4/xfwm4-4.10.0.tar.bz2.
===>Giving up on fetching files: xfce4/xfwm4-4.10.0.tar.bz2
Make sure the Makefile and distinfo file (/usr/ports/x11-wm/xfce4-wm/distinfo)
are up to date.If you are absolutely sure you want to override this
check, type "make NO_CHECKSUM=yes ".
*** Error code 1

Stop in /usr/ports/x11-wm/xfce4-wm.
*** Error code 1

Stop in /usr/ports/x11-wm/xfce4-wm.
*** Error code 1

Stop in /usr/ports/x11-wm/xfce4-wm.
*** Error code 1

Stop in /usr/ports/x11-wm/xfce4.
*** Error code 1

Stop in /usr/ports/x11-wm/xfce4.然后根据错误提示又加了 “NO_CHECKSUM=yes” 执行了一遍, 还是不能编译下去 , 如下 :root@feiyin:/usr/ports/x11-wm/xfce4 #make NO_CHECKSUM=yes install clean
===>Installing for xfce-4.10_4
===>   xfce-4.10_4 depends on executable: xfwm4 - not found
===>    Verifying install for xfwm4 in /usr/ports/x11-wm/xfce4-wm
===>Found saved configuration for xfce4-wm-4.10.0_1
===>   xfce4-wm-4.10.0_1 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by xfce4-wm-4.10.0_1 for building
===>Extracting for xfce4-wm-4.10.0_1

bzip2: Compressed file ends unexpectedly;
      perhaps it is corrupted?*Possible* reason follows.
bzip2: No such file or directory
      Input file = /usr/ports/distfiles/xfce4/xfwm4-4.10.0.tar.bz2, output file = (stdout)

It is possible that the compressed file(s) have become corrupted.
You can use the -tvv option to test integrity of such files.

You can use the `bzip2recover' program to attempt to recover
data from undamaged sections of corrupted files.

xfwm4-4.10.0/settings-dialogs/monitor-icon.h: Truncated tar archive
tar: Error exit delayed from previous errors.
*** Error code 1

Stop in /usr/ports/x11-wm/xfce4-wm.
*** Error code 1

Stop in /usr/ports/x11-wm/xfce4-wm.
*** Error code 1

Stop in /usr/ports/x11-wm/xfce4.
*** Error code 1

Stop in /usr/ports/x11-wm/xfce4.不知道是什么原因   ,请指教.   顺便问下 , 在/usr/ports/x11-wn 下面有个 xfce4-desktop 的port ,   这个port跟 xfce4 这个port 有什么不同呢?

mirnshi 发表于 2013-04-11 10:18

SHA256 Checksum mismatch for xfce4/xfwm4-4.10.0.tar.bz2

下载的文件有错误,可能只下载了部分

wenheping 发表于 2013-04-11 16:11

试试:

cd /usr/ports/x11-wm/xfce4-wm
make distclean
make install clean

然后再继续编译xfce4

ruifeng_ 发表于 2013-04-11 21:41

回复 3# wenheping


    感谢回复 。      这方法我试过了, 不行,还是那样的错误 。 然后我又更新了 ports , 又换了软件源,错误还是继续 ....      更糟的是pkg_add 都不能使用, 默认的源我没改过 ,为什么会这样呢 ?   无奈又慢慢Google, 终于找到了一个 package 地址   如下 :setenv PACKAGESITE ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9-current/Latest/这下总算是能用二进制包装了 , 省了不少时间    。       这不得不让我怀疑这个 FreeBSD 9.1-release-amd64 是不是有问题   ?

fender0107401 发表于 2013-04-12 08:26

回复 4# ruifeng_

问题就是下载的源代码文件有问题,校验不通过,

wenheping老师是国内重要的porter。


   

ruifeng_ 发表于 2013-04-12 10:50

回复 5# fender0107401


    看错误提示像是校验错误, 但是 下载了好几次的啊 ,而且最后没办法换了源,还是一样的错误。 这是什么原因呢 ?

fender0107401 发表于 2013-04-12 11:19

回复 6# ruifeng_

你要先把原来的有问题的源代码删除掉。

   

ruifeng_ 发表于 2013-04-12 11:32

回复 7# fender0107401


    删过了 , 执行了 make distclean

fender0107401 发表于 2013-04-12 11:44

回复 8# ruifeng_

软件有依赖关系的,假定a依赖b,你在a的目录下面make distclaen不一定能删除b的代码。

你看看是那个包出问题,去那个包的目录下面make distclean。


   

ruifeng_ 发表于 2013-04-12 12:29

回复 9# fender0107401


    明白了 ,我看看去 。
页: [1]
查看完整版本: 编译安装XFCE4出现错误 。。。