免费注册 查看新帖 |

Chinaunix

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

[FreeBSD] 安装acroread7的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-02-26 21:33 |只看该作者 |倒序浏览
我的系统是vmware5.0+freebsd6.0-release
1.先是cvsup了一下.
cvsup -h cvsup3.freebsdchina.org -g -L 2 /etc/ports-supfile
ports-supfile改了两个地方,
一是注销了ports-all,二是去掉了ports-print前面的#
2.从清华的ftp站点上下载了AdobeReader_chs-7.0.1-1.i386.rpm,cp到/usr/ports/distfiles/acroread7/
并tar czvf AdobeReader_chs-7.0.1-1.i386.tar.gz AdobeReader_chs-7.0.1-1.i386.rpm
生成AdobeReader_chs-7.0.1-1.i386.tar.gz
3.通过md5 AdobeReader_chs-7.0.1-1.i386.tar.gz得到hash,通过ls -la得到size,
修改/usr/ports/print/acroread7/distinfo文件为:
MD5 (acroread/AdobeReader_chs-7.0.1-1.i386.tar.gz) = 1ae0a4bebbae1a47a771ef671a3
0095f
SIZE (acroread/AdobeReader_chs-7.0.1-1.i386.tar.gz) = 54989107
4.修改Makefile为:

  1. # New ports collection makefile for:        acroread7
  2. # Date created:                16 March 2005
  3. # Whom:                        Trevor Johnson <trevor@freebsd.org>
  4. #
  5. # $FreeBSD: ports/print/acroread7/Makefile,v 1.15 2006/02/21 18:49:08 hrs Exp $
  6. #

  7. PORTNAME=        acroread7
  8. PORTVERSION?=        7.0.1
  9. PORTREVISION?=        1
  10. CATEGORIES?=        print linux
  11. MASTER_SITES?=        http://ardownload.adobe.com/pub/adobe/reader/unix/7x/${VERSIONDIR}/${ADOBE_LANG:L}/ \
  12.                 ftp://ftp.adobe.com/pub/adobe/reader/unix/7x/${VERSIONDIR}/${ADOBE_LANG:L}/
  13. DISTNAME=        # redefined below
  14. DIST_SUBDIR=        acroread

  15. MAINTAINER=        hrs@FreeBSD.org
  16. COMMENT=        Adobe Reader for view, print, and search PDF documents (${ADOBE_LANG})

  17. RUN_DEPENDS=        acroread:${PORTSDIR}/print/acroreadwrapper \
  18.                 ${LINUXBASE}/usr/lib/libgtk-x11-2.0.so.0:${PORTSDIR}/x11-toolkits/linux-gtk2 \
  19.                 ${LINUXBASE}/usr/lib/libpango-1.0.so.0:${PORTSDIR}/x11-toolkits/linux-pango

  20. RESTRICTED=        "Must fill out redistribution form at http://www.adobe.com/products/acrobat/distribute.html"
  21. NO_PACKAGE=        "Use and redistribution with repackaging are not allowed"
  22. ONLY_FOR_ARCHS=        amd64 i386
  23. USE_LINUX=        yes
  24. USE_X_PREFIX=        yes
  25. NO_BUILD=        yes
  26. PLIST=                ${PKGDIR}/pkg-plist.${PORTVERSION}
  27. PLIST_SUB=        ACRODIR=${ACRODIR} \
  28.                 PLUGINDIR=${PLUGINDIR} \
  29.                 ADOBE_LANG=${ADOBE_LANG:U} \
  30.                 LOCALE_NAME=${LOCALE_NAME}
  31. SUB_FILES=        ln mv rm pkg-message
  32. SUB_LIST=        ADOBE_LANG=${ADOBE_LANG:U}
  33. PKGMESSAGE=        ${WRKDIR}/pkg-message
  34. WRKSRC=                ${WRKDIR}/AdobeReader

  35. .if ${PORTVERSION} == 7.0.1
  36. VERSIONDIR=        ${PORTVERSION}
  37. DISTNAME=        AdobeReader_${ADOBE_LANG:L}-${PORTVERSION}-1.i386
  38. POSTPROCESS=        > /dev/null
  39. .else
  40. VERSIONDIR=        7.0
  41. DISTNAME=        AdbeRdr701_linux_${ADOBE_LANG:L}
  42. IS_INTERACTIVE=        yes
  43. .endif
  44. LANGCODE=        chs:zh_CN cht:zh_TW dan:da_DK deu:de_DE enu:en_US \
  45.                 esp:es_ES fra:fr_FR ita:it_IT jpn:ja_JP kor:ko_KR \
  46.                 nld:nl_NL nor:nb_NO ptb:pt_BR suo:fi_FI sve:sv_SE

  47. ADOBE_LANG?=        ENU
  48. .for L in ${ADOBE_LANG:L}
  49. LOCALE_NAME=        ${LANGCODE:M${L}\:*:C/.*\://}
  50. LANG_${L:U}=        ""
  51. .endfor
  52. .for L in ${LANGCODE:C/\:.*//:U}
  53. LANG_${L}?=        "@comment "
  54. PLIST_SUB+=        LANG_${L}=${LANG_${L}}
  55. .endfor
  56. .if ${ADOBE_LANG:U} == ENU
  57. LANG_NONENU?=        "@comment "
  58. .endif
  59. PLIST_SUB+=        LANG_NONENU=${LANG_NONENU}

  60. ACRODIR=        Adobe/Acrobat7.0/${ADOBE_LANG:U}
  61. PLUGINDIR=        lib/browser_linux_plugins
  62. INSTALLDIR=        ${PREFIX}/${ACRODIR}
  63. INSTALLEXEC=        ${SETENV} UNAME_s=Linux \
  64.                         InstallDir=${INSTALLDIR} \
  65.                         UNAME_r="Linux Compatibility on FreeBSD" \
  66.                         ${SH} ./INSTALL --install_path=${INSTALLDIR} ${POSTPROCESS}

  67. do-install:
  68.         @${MKDIR} ${INSTALLDIR}
  69.         @${MKDIR} ${WRKDIR}/bin
  70.         @${INSTALL_SCRIPT} \
  71.                 ${WRKDIR}/ln ${WRKDIR}/rm ${WRKDIR}/mv \
  72.                 ${WRKDIR}/bin
  73.         @${ECHO_CMD} Installing...
  74.         @cd ${WRKSRC} && ${SETENV} PATH=${WRKDIR}/bin:${PATH} ${INSTALLEXEC}
  75.         ${CHMOD} 0 ${INSTALLDIR}/Reader/intellinux/plug_ins/PPKLite.api
  76.         ${BRANDELF} -t Linux ${INSTALLDIR}/Reader/intellinux/bin/acroread

  77. .if ${ADOBE_LANG:U} == ENU
  78. post-install:
  79.         @${CAT} ${PKGMESSAGE}
  80. .endif

  81. .include <bsd.port.mk>

复制代码

只改了两个地方,PORTVERSION?=        7.0.1和.if ${PORTVERSION} == 7.0.1
原Makefile这里的版本号是7.0.5
然后make install clean
结果如下:


  1. ===>  Installing for acroread7-7.0.1_1
  2. ===>   acroread7-7.0.1_1 depends on executable: acroread - found
  3. ===>   acroread7-7.0.1_1 depends on file: /compat/linux/usr/lib/libgtk-x11-2.0.so.0 - found
  4. ===>   acroread7-7.0.1_1 depends on file: /compat/linux/usr/lib/libpango-1.0.so.0 - found
  5. ===>   acroread7-7.0.1_1 depends on file: /compat/linux/etc/redhat-release - found
  6. ===>   acroread7-7.0.1_1 depends on file: /compat/linux/usr/X11R6/lib/libXrender.so.1 - found
  7. ===>   Generating temporary packing list
  8. ===>  Checking if print/acroread7 already installed
  9. Installing...
  10. cd: can't cd to /usr/ports/print/acroread7/work/AdobeReader
  11. *** Error code 2

  12. Stop in /usr/ports/print/acroread7.

复制代码

说是找不到AdobeReader这个目录,后来我mkdir了这个目录,再次make的时候,又说找不到一个./INSTALL这样一个文件.
精华区里有剑心写的安装acroread7中文版的文章,不过是针对FreeBSD5.4的,里面的Makefile我也拿来用过,也提示其他错误.
各位大侠看看到底怎么装?

[ 本帖最后由 flyingkisser 于 2006-2-26 21:41 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2006-02-27 09:20 |只看该作者
等待中。。。。。。。。。。。。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP