如何在 ubuntu 12.10 上获得 p5-Switch [英] How to get p5-Switch on ubuntu 12.10

查看:28
本文介绍了如何在 ubuntu 12.10 上获得 p5-Switch的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直使用 ubuntu 12.04,直到 12.10 发布.我使用 ubuntu 进行软件开发,安装 12.10 后,我注意到 12.10 附带的 perl 版本 (5.14) 不包含构建 WebKiT-GTK 时所需的 Switch.pm 模块.

在互联网上环顾四周,我发现很少有建议表明我应该从称为端口的东西安装调用 p5-switch 的东西.我环顾四周,无法完成此操作.我不是 perl 人,也不知道从哪里可以得到这个包.

有人可以帮助我吗1.ubuntu 12.10的包在哪里下载2. 如果它不是 .deb,我该如何安装它.或者1.至少可以将perl安装降级到5.14以下

感谢和问候~萨默尔

解决方案

sudo apt-get install libswitch-perl

将为您安装.

"ports" 是一种 *BSD 打包系统,不是您应该寻找的.

您可以访问packages.ubuntu.com,在搜索包的内容"表单中输入Module/Name.pm(在本例中为Switch.pm)并选中包含名称以关键字结尾的文件的包"并选择所需的发行版,然后确保忽略结果中的错误命中,例如 CGI/Switch.pm.Debian 在packages.debian.org 上对其软件包进行了相同的搜索.

(请注意,Switch.pm 有严重的局限性,从来没有真正打算在生产中使用,当然也不应该在新代码中使用.)

I was using ubuntu 12.04 until 12.10 was released. I used ubuntu for software development and after installing 12.10, i noticed that the perl version (5.14) shipped with 12.10 does not include the Switch.pm module needed while building WebKiT-GTK.

Looking around on the internet i found few suggestions indicating that i should install something call p5-switch from something called ports. I have looked around and was not able to get this done. I am not a perl guy and have no idea where i can get this package.

Can someone please help me as to 1. Where to download the package for ubuntu 12.10 2. In case it is not a .deb, How do i install it. OR 1. At least be able to downgrade the perl installation to something lower than 5.14

Thanks and Regards ~Sameer

解决方案

sudo apt-get install libswitch-perl

will install it for you.

"ports" is a *BSD packaging system of sorts, not what you should be looking for.

You can find what package has a particular perl module by going to packages.ubuntu.com, entering Module/Name.pm (in this case, Switch.pm) in the "Search the contents of packages" form and checking "packages that contain files whose names end with the keyword" and selecting the desired distribution, then making sure you ignore false hits like CGI/Switch.pm in the results. Debian has the identical search for its packages at packages.debian.org.

(Note that Switch.pm has serious limitations, was never really intended to be used in production, and should certainly not be used in new code.)

这篇关于如何在 ubuntu 12.10 上获得 p5-Switch的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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