自定义perl安装无法找到Git.pm [英] Custom perl installation cannot find Git.pm

查看:145
本文介绍了自定义perl安装无法找到Git.pm的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的主目录中安装了自己的Perl副本,但是我有一些需要Git.pm的Perl脚本,它是Git分发包的一部分,不能从CPAN安装。系统perl使用的Git.pm驻留在 /usr/share/perl5/Git.pm 中。我怎样才能让这个Git.pm可用于自定义perl安装,或者获得安装在正确位置的另一个Git.pm副本?我应该将它复制到我自己的Perl的lib目录中吗?

$ c>是独立的,因此将其复制到您的私有perl @INC 的目录部分。它需要 Error.pm (版本大于或等于0.15009),所以不要忘记安装该模块。



如果您正在寻找一个Git包装器(而不是特定的Git.pm),那么CPAN上有几个可用的(按字母顺序排列):


  • Git :: Class

  • Git :: Repository

  • Git :: Wrapper


I have installed my own copy of Perl in my home directory, but I have some Perl scripts that require Git.pm, which is part of the Git distribution and not installable from CPAN. The Git.pm used by the system perl resides at /usr/share/perl5/Git.pm. How can I make this Git.pm available to a custom perl install, or get another copy of Git.pm installed in the correct location? Should I just copy it into my own Perl's lib directory?

解决方案

Git.pm is self-contained, so copying it in a directory part of your private perl @INC. It requires Error.pm (with version greater or equal to 0.15009), so don't forget to install that module as well.

If you're looking for a Git wrapper (and not specifically Git.pm), there are several available on CPAN (in alphabetical order):

  • Git::Class
  • Git::Repository
  • Git::Wrapper

这篇关于自定义perl安装无法找到Git.pm的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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