免费注册 查看新帖 |

Chinaunix

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

安装Math::Pari的困惑。。 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-12-12 12:08 |只看该作者 |倒序浏览
我这是个内网环境, 之前我找了台能上外网的机器,用CPAN::Mini做了一个本地的cpan,然后把这个本地的cpan上传到了内网的一台机器上。
并且配置了这个内网机器用本地的cpan来装perl的各种包,但是在装Net::SSH:erl之后,发现Net::SSH:erl还需要Math:ari这个包,
在用cpan从本地安装Math:ari的时候,出现了问题

CPAN: File::Temp loaded ok (v0.22)

  CPAN.pm: Going to build I/IL/ILYAZ/modules/Math-Pari-2.01080605.tar.gz

Did not find GP/PARI build directory around.

Do you want to me to fetch GP/PARI automatically?

  (If you do not, you will need to fetch it manually, and/or direct me to
   the directory with GP/PARI source via the command-line option paridir=/dir)

Make sure you have a large scrollback buffer to see the messages, or `tee'
the STDOUT/STDERR to a file.

Fetch? (y/n, press Enter)


我不太清楚怎么解决这个问题。我先是到了http://pari.math.u-bordeaux.fr/download.html 下载了 pari-2.5.3.tar.gz,
然后安装,但是之后再安装Math:ari还是不行。。。

(由于是内网的环境(有防火墙,内网不能访问外面),我只能通过先在外面的一台机器下载,再传到内网中)。

论坛徽章:
0
2 [报告]
发表于 2012-12-12 12:37 |只看该作者
我尝试在这步的时候
Did not find GP/PARI build directory around.

Do you want to me to fetch GP/PARI automatically?

  (If you do not, you will need to fetch it manually, and/or direct me to
   the directory with GP/PARI source via the command-line option paridir=/dir)

Make sure you have a large scrollback buffer to see the messages, or `tee'
the STDOUT/STDERR to a file.

Fetch? (y/n, press Enter)
输入
paridir=/home/pari-2.5.3/

也就是按它的说明把pari的src目录指给paridir
但是还是不行。。。

论坛徽章:
145
技术图书徽章
日期:2013-10-01 15:32:13戌狗
日期:2013-10-25 13:31:35金牛座
日期:2013-11-04 16:22:07子鼠
日期:2013-11-18 18:48:57白羊座
日期:2013-11-29 10:09:11狮子座
日期:2013-12-12 09:57:42白羊座
日期:2013-12-24 16:24:46辰龙
日期:2014-01-08 15:26:12技术图书徽章
日期:2014-01-17 13:24:40巳蛇
日期:2014-02-18 14:32:59未羊
日期:2014-02-20 14:12:13白羊座
日期:2014-02-26 12:06:59
3 [报告]
发表于 2012-12-12 12:54 |只看该作者
回复 2# niannian


Would you like to use Net::OpenSSH module
Note: I also met Math::Pari issue about one month ago.

http://search.cpan.org/~salva/Net-OpenSSH-0.57/lib/Net/OpenSSH.pm
Net::OpenSSH - Perl SSH client package implemented on top of OpenSSH   
...

Why should you use Net::OpenSSH instead of any of the other Perl SSH clients available?

Well, this is my (biased) opinion:

Net::SSH::Perl is not well maintained nowadays (update: a new maintainer has stepped in so this situation could change!!!), requires a bunch of modules (some of them very difficult to install) to be acceptably efficient and has an API that is limited in some ways.

论坛徽章:
0
4 [报告]
发表于 2012-12-12 13:39 |只看该作者
多谢楼上的。。

论坛徽章:
0
5 [报告]
发表于 2012-12-13 00:45 |只看该作者
这个我遇到过,注意看官方的bug提交
https://rt.cpan.org/Public/Bug/Display.html?id=70990
最新的2.5版本不支持,需要下旧的2.3

论坛徽章:
0
6 [报告]
发表于 2016-09-08 17:14 |只看该作者
用perl Makefile.PL paridir=/home/pari-2.5.3/ 这个命令安装
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP