升级到Intrepid Ibex Ubuntu后,为什么找不到Perl模块? [英] Why can't I find Perl modules after upgrading to Intrepid Ibex Ubuntu?

查看:52
本文介绍了升级到Intrepid Ibex Ubuntu后,为什么找不到Perl模块?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

昨天我升级到Ubuntu Intrepid Ibex,突然间,我在Hardy Heron上安装的某些Perl模块全部丢失了!

I upgraded to Ubuntu Intrepid Ibex yesterday and suddenly some of the Perl modules that I installed (on the Hardy Heron) have all gone missing!

我得到通常的在@INC中找不到模块"错误.是否已更改任何CPAN信息库或Intrepid的某些信息? Google根本没有帮助.

I get the usual "Can't locate module in @INC" error. Has any of the CPAN repositories changed or something for Intrepid? Google doesn't help at all.

谢谢.

推荐答案

标准解决方案是在升级Perl之前 使用CPAN.pm生成自动捆绑".搜索 autobundle 可获得指向一些现有的SO问题的链接,这些问题讨论了Perl模块管理,其中一些看起来应该提供更多的问题.信息. CPAN.pm手册涉及自动捆绑销售,但没有包括太多细节.

The standard solution is to generate an "autobundle" with CPAN.pm before upgrading Perl. A search for autobundle yields links to a handful of existing SO questions discussing Perl module management and several that look like they should provide more information. The CPAN.pm manual touches on autobundle, but doesn't include much detail.

由于已经升级了Perl,一种用于安装模块的解决方案是生成一个自动捆绑文件,并使用生成的文件中的条目作为指导来编写包含模块条目的自定义自动捆绑文件(仅). autobundle文件格式仅为 POD ,因此应该很容易做到.

Since you've already upgraded Perl, one solution for installing your modules would be to generate an autobundle file and use the entries in the generated file as a guide to write a custom autobundle file with entries for your modules (only). The autobundle file format is just POD, so this should be easy to do.

将来,您可能应该养成在升级Perl之前生成自动捆绑软件的习惯.这不是一个完美的解决方案,自动捆绑包将包含一些核心模块的条目,这些条目必须在实际构建之前被删除,但是至少您将获得已安装Perl模块的快照,以便可以固定安装Perl.升级后.

In the future you should probably make it a habit to generate an autobundle before upgrading Perl. This is not a perfect solution, the autobundle will include entries for core modules that will have to be removed before actually building from it, but at least you'll have a snapshot of installed Perl modules so that you can get your Perl install fixed up after an upgrade.

这篇关于升级到Intrepid Ibex Ubuntu后,为什么找不到Perl模块?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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