LinuxSir.cn,穿越时空的Linuxsir!

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

怎么不能安装/usr/ports/comms/p5-Device-SerialPort/

[复制链接]
发表于 2003-10-1 17:35:05 | 显示全部楼层 |阅读模式
# cd comms/p5-Device-SerialPort/
# make
>> Device-SerialPort-0.22.tar.gz doesn't seem to exist in /usr/ports/distfiles/.>> Attempting to fetch from http://www.cpan.dk/CPAN/modules/by-module/Device/.
Receiving Device-SerialPort-0.22.tar.gz (116446 bytes): 100%
116446 bytes transferred in 29.3 seconds (3.89 kBps)
===>  Extracting for p5-Device-SerialPort-0.22
>> Checksum OK for Device-SerialPort-0.22.tar.gz.
===>  Patching for p5-Device-SerialPort-0.22
===>  Applying FreeBSD patches for p5-Device-SerialPort-0.22
===>  Configuring for p5-Device-SerialPort-0.22
Perl 5.006 required--this is only version 5.00503, stopped at ./Makefile.PL line 1.
BEGIN failed--compilation aborted at ./Makefile.PL line 1.
*** Error code 255

Stop in /usr/ports/comms/p5-Device-SerialPort.
# ls
Makefile        files/          pkg-plist
distinfo        pkg-descr       work/
#
发表于 2003-10-1 17:41:50 | 显示全部楼层
修改一下Makefile文件看看!
 楼主| 发表于 2003-10-1 18:04:22 | 显示全部楼层
# cat -n Makefile
     1  # New ports collection makefile for:    p5-Device-SerialPort
     2  # Date created:                         July 6th 2003
     3  # Whom:                                 Nick Sayer <nsayer@FreeBSD.org>
     4  #
     5  # $FreeBSD: ports/comms/p5-Device-SerialPort/Makefile,v 1.1 2003/07/08 16:32:45 nsayer Exp $
     6  #
     7
     8  PORTNAME=       Device-SerialPort
     9  PORTVERSION=    0.22
    10  CATEGORIES=     comms perl5
    11  MASTER_SITES=   ${MASTER_SITE_PERL_CPAN}
    12  MASTER_SITE_SUBDIR=     Device
    13  PKGNAMEPREFIX=  p5-
    14  DISTNAME=       Device-SerialPort-${PORTVERSION}
    15
    16  MAINTAINER=     ports@FreeBSD.org
    17  COMMENT=        A perl5 module for simple serial port control
    18
    19  PERL_CONFIGURE= yes
    20
    21  MANPREFIX=      ${PREFIX}/lib/perl5/${PERL_VERSION}
    22  MAN3=           Device::SerialPort.3
    23
    24  .include <bsd.port.mk>
#
就这么多了。修改哪里?
发表于 2003-10-1 18:39:07 | 显示全部楼层
好象是因为perl版本太低了,
make world一下试试?
 楼主| 发表于 2003-10-2 10:40:14 | 显示全部楼层
我  make world 了一下,没有出错,现在安装这个程序,还是和上面的情况一样

http://www.linuxsir.cn/forum.php?mod=viewthread&tid=65269
发表于 2003-10-2 12:03:06 | 显示全部楼层
cvs到5current中的perl还是5.005的?
不好意思啊,我记错了,
在ports中安装了perl5后可以这样来用
#use.perl port
就可以装你上面所说的那个port了。

如果想用回系统中的老的perl:
#use.perl system
 楼主| 发表于 2003-10-2 13:49:00 | 显示全部楼层
谢谢。我的系统是4.8.怎么成了5 了:ask :ask
下面的就看不懂了。
发表于 2003-10-3 01:45:58 | 显示全部楼层
看不懂是什么意思?
不知道怎么做?还是我表达的太差?直接照抄命令不就可以了么?
想知道为什么这样做?读这个命令的脚本,也是用perl写的。
 楼主| 发表于 2003-10-3 11:08:25 | 显示全部楼层
在哪里运行你的命令哟~~
发表于 2003-10-3 11:57:02 | 显示全部楼层
咦??对呀,
是在天上呢?还是在地上?:ask :ask
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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