Don't ask to ask, just ask | |
PerlMonks |
Installing HTML::Mason on CentOS 6 Resolvedby marmotking (Initiate) |
on Dec 19, 2013 at 02:25 UTC ( [id://1067760]=perlquestion: print w/replies, xml ) | Need Help?? |
marmotking has asked for the wisdom of the Perl Monks concerning the following question: Previously I had posted that I could not get HTML::Mason to install onto a CentOS 6.4 box. While there's a pre-built package for it on repoforge, that package doesn't install using yum because of a dependency on Log::Any. No repository that I could find had a pre-build Log::Any. Installing Log::Any via CPAN doesn't work because yum doesn't know that you've installed it and still fails the dependency check when installing HTML::Mason. Many people gave excellent suggestions, but they didn't work for me for a variety of reasons. Although I am immensely grateful for the replies because without the clues they gave, I would never have figured it out! What I decided to ultimately do is create a .rpm file for Log::Any, install it using rpm and then that should allow HTML::Mason to install. This approach does, in fact, work. So, just to document what I did, I'm making this post. First, you install and configure the rpm environment:
Next, create a .spec file in the rpmbuild/SPECS directory. I called mine perl-Log-Any.spec. I found one for Log::Any in the repoforge github project. It's not merged into the project yet, but you can look at the file. There's a syntax error in the file, but here's the corrected version, as far as I can tell:
Then use wget to place the Log::Any sources into the SOURCES folder:
Change back into the rpmbuild/SPECS folder and build the .rpm:
You now have a shiny new .rpm file for Log::Any. I installed it using:
So there you go. There's my solution to getting HTML::Mason installed to the default Perl interpreter on CentOS 6. Thanks again to the responses I got!
Back to
Seekers of Perl Wisdom
|
|