Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Mason on CentOS 6

by marmotking (Initiate)
on Dec 16, 2013 at 23:30 UTC ( #1067389=perlquestion: print w/ replies, xml ) Need Help??
marmotking has asked for the wisdom of the Perl Monks concerning the following question:

I'm having difficulty in stalling HTML::Mason on a CentOS 6 machine. I've added the repository at RPMForge as instructed on the page for CentOS 6.

I then attempted "yum install perl-HTML-Mason". I get the following error:

Error: Package: perl-HTML-Mason-1.45-2.el6.rf.noarch (rpmforge) Requires: perl(Log::Any) >= 0.08

I then verified that Log::Any was installed and what its version is as follows:

# cpan Log::Any CPAN: Storable loaded ok (v2.20) Going to read '/root/.cpan/Metadata' Database was generated on Mon, 16 Dec 2013 19:29:03 GMT Log::Any is up to date (0.15).

As can be seen by the reader, the Mason installer is requesting >=0.08 and I have 0.15 installed. So, I'm not sure what the difficulty is. I'm assuming that Mason is still supported for use on CentOS 6.

Thanks for any suggestions and assistance you have to offer!

Comment on Mason on CentOS 6
Select or Download Code
Re: Mason on CentOS 6
by Eliya (Vicar) on Dec 17, 2013 at 01:00 UTC

    I'd suspect that yum, being a general purpose package manager (not specialized to Perl), just checks its installation database to see if Log::Any is installed, instead of actually trying to load the module...

    So either simply force installation of Mason and see if the (cpan-)installed Log::Any is found afterwards, or install the respective Log::Any RPM package via yum, so it does update its database of installed packages.

    P.S.: Generally, it's not a good idea to install your own Perl modules via cpan into the system perl (you might mess up version integrity/compatibility - unless you know exactly what you're doing). To add packages to the system perl, install the distro-supplied (rpm) packages. In case you want or need to use cpan, set up (and use) a second perl installation, which you can then extend independently of the system perl.

      An excellent suggestion and excellent advise.

      However, Log::Any isn't available through either the default CentOS repository or the RPMForge repository. Version 0.15 seems to be what's installed by default with the OS. I just took a step back and reinstalled the OS to a VM to start fresh. Having only installed the RPMForge repository, I get the same error with "yum install perl-HTML-Mason".

      Perhaps HTML::Mason doesn't work on CentOS 6.4? I'm not sure how to force it to install without the dependency check on Log::Any. That's the next thing I'm looking into.

        Best to leave the system perl alone, if it gets messed up you can have a broken/unreliable system. perlbrew, makes this simple, even doing it manually is as little as 3 lines. Once you have your own perl install modules and their dependancies via cpan:

        cpan HTML::Mason

        Often versions of modules in OS repos are out of date.

Re: Mason on CentOS 6
by shmem (Canon) on Dec 19, 2013 at 22:48 UTC
    I then verified that Log::Any was installed and what its version is as follows:
    # cpan Log::Any ...

    This is not the way how yum checks prerequisites. If you install perl packages which aren't present in the repositories of your vendor, do yourself a favour and install them as a package in the format of your distributions package manager, i.e as a deb package on debian, as rpm on CentOS or SuSE. You can pack them with the package tool your vendor offers. For RedHat, that's cpanflute, but you can use cpan2rpm, too.

    perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1067389]
Approved by GrandFather
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2014-07-26 06:41 GMT
Find Nodes?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:

    Results (175 votes), past polls