如何解决“ as_number不是Pari函数名称”在Math :: Pari中被Math :: BigInt调用? [英] How do I fix "`as_number' is not a Pari function name" in Math::Pari called by Math::BigInt?

查看:122
本文介绍了如何解决“ as_number不是Pari函数名称”在Math :: Pari中被Math :: BigInt调用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Perl 5.8.5上,我看到问题中列出的错误。

On Perl 5.8.5 I am seeing the error listed in the question.

我正在运行以下版本模块:

I am running these version modules:


  • 数学:: BigInt:1.89

  • 数学:: BigInt :: FastCalc:0.19

  • 数学:: BigInt :: GMP:1.24

  • 数学:: BigInt :: Pari:1.13

  • 数学:: BigRat:0.22

  • bignum:0.22

  • Math::BigInt: 1.89
  • Math::BigInt::FastCalc: 0.19
  • Math::BigInt::GMP: 1.24
  • Math::BigInt::Pari: 1.13
  • Math::BigRat: 0.22
  • bignum: 0.22

产生错误的模块是Math :: Pari。这都是为了使Net :: SFTP能够将文件放置在远程主机上。

The module producing the error is Math::Pari. This is all in an attempt to get Net::SFTP working to put a file on a remote host.

感谢CPAN专家的任何见识。 :)

Thanks for any insight, oh CPAN gurus. :)

谢谢,没什么,我尝试了那些事情,但是当我删除Math :: Pari,Net :: SSH: :Perl :: Util :: SSH2MP抱怨是因为它是这样使用的:

Thanks, nothingmuch, I tried those things but when I remove Math::Pari, Net::SSH::Perl::Util::SSH2MP complains because it is using it as such:

use Math::Pari qw( PARI floor pari2num Mod lift );

Math :: Pari版本为2.010800

The Math::Pari version is 2.010800

我希望我能更好地了解CPAN生成过程,以便我知道是否值得向Net :: SFTP的维护者报告。

I wish I understood the CPAN build process better so I could know if this was worth reporting to the maintainer of Net::SFTP.

推荐答案

最简单的解决方案可能只是删除Math :: BigInt :: Pari。 GMP应该可以执行您需要的所有操作。

The simplest solution would probably just to remove Math::BigInt::Pari. GMP should be able to do everything you need.

您还可以在脚本前添加

use Math::BigInt only => "GMP";

或类似的东西(请参阅Math :: BigInt文档)以确保使用calc模块代替

or something like that (see the Math::BigInt docs) to ensure that calc module is used instead of Math::Pari.

请确保此使用行出现在其他可能会不同地加载Math :: BigInt的行之前。

Make sure that this use line appears before anything else that may load Math::BigInt differently.

这篇关于如何解决“ as_number不是Pari函数名称”在Math :: Pari中被Math :: BigInt调用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆