Re: Building mod_perl2.pm

Steven Lembark <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Organization Workhorse Computing
Message-ID <[email protected]>
> Hello,
> I am trying to use Apache::DBI module. I got it installed on the SUSE
> Linux 11SP4 on my dev box.
> 
> It has a dependency of mod_perl2. But when I try to install
> mod_perl2, I get
> 
> Please repair your Module::CoreList at lib/Apache2/Build.pm line 51.
> BEGIN failed--compilation aborted at lib/Apache2/Build.pm line 66.
> Compilation failed in require at Makefile.PL line 39.
> BEGIN failed--compilation aborted at Makefile.PL line 39.
> 
> Going by the code in Build.pm, I think the version between Corelist
> and Embed is not matching. But the same is installed on our test
> servers and I am not sure what is different. Probably it has
> Apache::DBI for Apache 1.x installed? How do I check? and any help to
> resolve the above error?

You will probably find that maintaining your own copy of Perl is
less work than depending on the pre-compiled [mess] in most
distro's is less work. Building Perl takes little enough time: just
install it into /opt/perl/<version> via:

    ./Configure --prefix=/opt/perl -de;

(you can see examples of building it in some of my talks on 
slideshare.net if you like). After that:

    cd /opt/perl;
    rm *;
    ln -fs <version>/* .;

    [ -d /opt/bin ] || mkdir /opt/bin;
    cd /opt/bin;
    ln -fs ../perl/bin/* .;

and add "/opt/bin" to your path. After that "cpan FooBar" will
install any modules you require, probably with less hassle than
working around O/S issues with library versions.

You could spend a week or so banging your head out deciphering 
whatever bone-headed assumptions the distro builders made or 
just get it right the first time yourself. 

The process may look daunting the first time around but after
a while you'll notice it takes only a few of your favorite 
beverages a month to maintain and induces far less annoyance...

Enjoy

-- 
Steven Lembark                                        3646 Flora Place
Workhorse Computing                                St. Louis, MO 63110
[email protected]                                    +1 888 359 3508
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.