免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2524 | 回复: 9
打印 上一主题 下一主题

[FreeBSD] 编译安装XFCE4出现错误 。。。 [复制链接]

论坛徽章:
2
摩羯座
日期:2014-09-10 16:52:2620周年集字徽章-周	
日期:2022-02-09 19:00:27
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2013-04-11 02:11 |只看该作者 |倒序浏览
本帖最后由 ruifeng_ 于 2013-04-11 02:18 编辑

FreeBSD 9.1(amd64)  安装xfce4桌面(刚安装的系统,默认源地址未改), 出现如下错误:

  1. root@feiyin:/ # cd /usr/ports/x11-wm/xfce4 && make install clean
  2. ===>  Installing for xfce-4.10_4
  3. ===>   xfce-4.10_4 depends on executable: xfwm4 - not found
  4. ===>    Verifying install for xfwm4 in /usr/ports/x11-wm/xfce4-wm
  5. ===>  Found saved configuration for xfce4-wm-4.10.0_1
  6. ===>   xfce4-wm-4.10.0_1 depends on file: /usr/local/sbin/pkg - found
  7. ===> Fetching all distfiles required by xfce4-wm-4.10.0_1 for building
  8. ===>  Extracting for xfce4-wm-4.10.0_1
  9. => SHA256 Checksum mismatch for xfce4/xfwm4-4.10.0.tar.bz2.
  10. ===>  Refetch for 1 more times files: xfce4/xfwm4-4.10.0.tar.bz2
  11. ===>  Found saved configuration for xfce4-wm-4.10.0_1
  12. ===>   xfce4-wm-4.10.0_1 depends on file: /usr/local/sbin/pkg - found
  13. => xfwm4-4.10.0.tar.bz2 doesn't seem to exist in /usr/ports/distfiles/xfce4.
  14. => Attempting to fetch http://mirror.perldude.de/archive.xfce.org/xfce/4.10/src/xfwm4-4.10.0.tar.bz2
  15. Initializing download: http://mirror.perldude.de/archive.xfce.org/xfce/4.10/src/xfwm4-4.10.0.tar.bz2
  16. File size: 1100067 bytes
  17. Opening output file xfwm4-4.10.0.tar.bz2.9
  18. Starting download
  19. ...............
  20. Connection 26 finished
  21. [100%] [..................................................] [ 141.4KB/s] [00:00]

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

  33. Stop in /usr/ports/x11-wm/xfce4-wm.
  34. *** [checksum] Error code 1

  35. Stop in /usr/ports/x11-wm/xfce4-wm.
  36. *** [install] Error code 1

  37. Stop in /usr/ports/x11-wm/xfce4-wm.
  38. *** [run-depends] Error code 1

  39. Stop in /usr/ports/x11-wm/xfce4.
  40. *** [install] Error code 1

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

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

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

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

  17. xfwm4-4.10.0/settings-dialogs/monitor-icon.h: Truncated tar archive
  18. tar: Error exit delayed from previous errors.
  19. *** [do-extract] Error code 1

  20. Stop in /usr/ports/x11-wm/xfce4-wm.
  21. *** [install] Error code 1

  22. Stop in /usr/ports/x11-wm/xfce4-wm.
  23. *** [run-depends] Error code 1

  24. Stop in /usr/ports/x11-wm/xfce4.
  25. *** [install] Error code 1

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

论坛徽章:
2
技术图书徽章
日期:2013-09-04 15:21:51酉鸡
日期:2013-11-01 21:20:20
2 [报告]
发表于 2013-04-11 10:18 |只看该作者
SHA256 Checksum mismatch for xfce4/xfwm4-4.10.0.tar.bz2

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

论坛徽章:
0
3 [报告]
发表于 2013-04-11 16:11 |只看该作者
试试:

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

然后再继续编译xfce4

论坛徽章:
2
摩羯座
日期:2014-09-10 16:52:2620周年集字徽章-周	
日期:2022-02-09 19:00:27
4 [报告]
发表于 2013-04-11 21:41 |只看该作者
回复 3# wenheping


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

论坛徽章:
89
水瓶座
日期:2014-04-01 08:53:31天蝎座
日期:2014-04-01 08:53:53天秤座
日期:2014-04-01 08:54:02射手座
日期:2014-04-01 08:54:15子鼠
日期:2014-04-01 08:55:35辰龙
日期:2014-04-01 08:56:36未羊
日期:2014-04-01 08:56:27戌狗
日期:2014-04-01 08:56:13亥猪
日期:2014-04-01 08:56:02亥猪
日期:2014-04-08 08:38:58程序设计版块每日发帖之星
日期:2016-01-05 06:20:00程序设计版块每日发帖之星
日期:2016-01-07 06:20:00
5 [报告]
发表于 2013-04-12 08:26 |只看该作者
回复 4# ruifeng_

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

wenheping老师是国内重要的porter。


   

论坛徽章:
2
摩羯座
日期:2014-09-10 16:52:2620周年集字徽章-周	
日期:2022-02-09 19:00:27
6 [报告]
发表于 2013-04-12 10:50 |只看该作者
回复 5# fender0107401


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

论坛徽章:
89
水瓶座
日期:2014-04-01 08:53:31天蝎座
日期:2014-04-01 08:53:53天秤座
日期:2014-04-01 08:54:02射手座
日期:2014-04-01 08:54:15子鼠
日期:2014-04-01 08:55:35辰龙
日期:2014-04-01 08:56:36未羊
日期:2014-04-01 08:56:27戌狗
日期:2014-04-01 08:56:13亥猪
日期:2014-04-01 08:56:02亥猪
日期:2014-04-08 08:38:58程序设计版块每日发帖之星
日期:2016-01-05 06:20:00程序设计版块每日发帖之星
日期:2016-01-07 06:20:00
7 [报告]
发表于 2013-04-12 11:19 |只看该作者
回复 6# ruifeng_

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

   

论坛徽章:
2
摩羯座
日期:2014-09-10 16:52:2620周年集字徽章-周	
日期:2022-02-09 19:00:27
8 [报告]
发表于 2013-04-12 11:32 |只看该作者
回复 7# fender0107401


    删过了 , 执行了 make distclean

论坛徽章:
89
水瓶座
日期:2014-04-01 08:53:31天蝎座
日期:2014-04-01 08:53:53天秤座
日期:2014-04-01 08:54:02射手座
日期:2014-04-01 08:54:15子鼠
日期:2014-04-01 08:55:35辰龙
日期:2014-04-01 08:56:36未羊
日期:2014-04-01 08:56:27戌狗
日期:2014-04-01 08:56:13亥猪
日期:2014-04-01 08:56:02亥猪
日期:2014-04-08 08:38:58程序设计版块每日发帖之星
日期:2016-01-05 06:20:00程序设计版块每日发帖之星
日期:2016-01-07 06:20:00
9 [报告]
发表于 2013-04-12 11:44 |只看该作者
回复 8# ruifeng_

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

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


   

论坛徽章:
2
摩羯座
日期:2014-09-10 16:52:2620周年集字徽章-周	
日期:2022-02-09 19:00:27
10 [报告]
发表于 2013-04-12 12:29 |只看该作者
回复 9# fender0107401


    明白了 ,我看看去 。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP