问题
I'm trying to install OTRS Help Desk on an EC2 instance of Amazon Web Services. I'm following the installation instructions here. But when I try to install otrs, I get the following errors:
Error: Package: otrs-4.0.8-02.noarch (/otrs-4.0.8-02.noarch)
Requires: perl(Archive::Zip)
Error: Package: otrs-4.0.8-02.noarch (/otrs-4.0.8-02.noarch)
Requires: perl(Template)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
When I try to install Archive::Zip using cpan:
cpan[2]> install Archive::Zip
CPAN: Storable loaded ok (v2.20)
Going to read '/root/.cpan/Metadata'
Database was generated on Sat, 06 Jun 2015 19:41:02 GMT
Archive::Zip is up to date (1.46).
Any idea why it can't find the dependency?
回答1:
As the comments above point out, OTRS is an rpm package that looks for other rpm's. There's no coordination between that and CPAN. So the solution is to find the .rpm file using something like rpmfind.net. In my case, then I would use wget
to download the rpm, and then I was able to install the dependencies.
来源:https://stackoverflow.com/questions/30687167/missing-perl-dependencies-not-actually-missing