Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re: Mason on CentOS 6

by Eliya (Vicar)
on Dec 17, 2013 at 01:00 UTC ( #1067401=note: print w/replies, xml ) Need Help??

in reply to Mason on CentOS 6

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.

Replies are listed 'Best First'.
Re^2: Mason on CentOS 6
by marmotking (Initiate) on Dec 17, 2013 at 19:33 UTC

    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.

        So, to summarize, it appears that HTML::Mason, as build in the RPMForge repository won't install with the system Perl. So, I may be able to sue Perlbrew to make a new Perl installation that I can use with HTML::Mason.

        This appears to mean that I'll also have to rebuild mod_perl using the new Perl installation that I create with Perlbrew. Not sure how to do that yet, but looking into it.

        I wonder if those people who work on the Mason project or the RPMForge project might want to look into fixing this, if it can be.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1067401]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (8)
As of 2018-06-22 08:29 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (122 votes). Check out past polls.