Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: ModPerl

Problem building mod_perl 1.31 -- Missing ExtUtils::Embed

 

 

ModPerl modperl RSS feed   Index | Next | Previous | View Threaded


madbury at gmail

May 14, 2012, 2:29 PM

Post #1 of 3 (1872 views)
Permalink
Problem building mod_perl 1.31 -- Missing ExtUtils::Embed

Hi Perl folks,

I'm trying to build mod_perl 1.31 / Apache 1.41 on CentOS 6.2, and I'm
getting badly stuck.

I started with the instructions here:
http://perl.apache.org/docs/1.0/guide/getwet.html

perl Makefile.PL APACHE_SRC=../apache_1.3.41/src \
APACHE_PREFIX=/www/perl/htdocs DO_HTTPD=1 USE_APACI=1 EVERYTHING=1

Will configure via APACI
cp apaci/Makefile.libdir ../apache_1.3.41/src/modules/perl/Makefile.libdir
cp apaci/Makefile.tmpl ../apache_1.3.41/src/modules/perl/Makefile.tmpl
cp apaci/README ../apache_1.3.41/src/modules/perl/README
cp apaci/apxs_cflags ../apache_1.3.41/src/modules/perl/apxs_cflags
cp apaci/configure ../apache_1.3.41/src/modules/perl/configure
cp apaci/find_source ../apache_1.3.41/src/modules/perl/find_source
cp apaci/libperl.module ../apache_1.3.41/src/modules/perl/libperl.module
cp apaci/load_modules.pl ../apache_1.3.41/src/modules/perl/load_modules.pl
cp apaci/mod_perl.config.sh ../apache_1.3.41/src/modules/perl/
mod_perl.config.sh
cp apaci/mod_perl.exp ../apache_1.3.41/src/modules/perl/mod_perl.exp
cp apaci/perl_config ../apache_1.3.41/src/modules/perl/perl_config
PerlDispatchHandler.........enabled
PerlChildInitHandler........enabled
PerlChildExitHandler........enabled
PerlPostReadRequestHandler..enabled
PerlTransHandler............enabled
PerlHeaderParserHandler.....enabled
PerlAccessHandler...........enabled
PerlAuthenHandler...........enabled
PerlAuthzHandler............enabled
PerlTypeHandler.............enabled
PerlFixupHandler............enabled
PerlHandler.................enabled
PerlLogHandler..............enabled
PerlInitHandler.............enabled
PerlCleanupHandler..........enabled
PerlRestartHandler..........enabled
PerlStackedHandlers.........enabled
PerlMethodHandlers..........enabled
PerlDirectiveHandlers.......enabled
PerlTableApi................enabled
PerlLogApi..................enabled
PerlUriApi..................enabled
PerlUtilApi.................enabled
PerlFileApi.................enabled
PerlConnectionApi...........enabled
PerlServerApi...............enabled
PerlSections................enabled
PerlSSI.....................enabled
Will run tests as User: 'nobody' Group: 'root'
(cd ../apache_1.3.41 && CC="gcc" CFLAGS=" -D_REENTRANT
-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" ./configure
--activate-module=src/modules/perl/libperl.a --disable-rule=EXPAT
--prefix=/www/perl/htdocs)
Configuring for Apache, Version 1.3.41
+ using installation path layout: Apache (config.layout)
+ activated perl module (modules/perl/libperl.a)
Creating Makefile
Creating Configuration.apaci in src
Creating Makefile in src
+ configured for Linux platform
+ setting C pre-processor to gcc -E
+ using "tr [a-z] [A-Z]" to uppercase
+ checking for system header files
+ adding selected modules
o perl_module uses ConfigStart/End
+ mod_perl build type: OBJ
+ setting up mod_perl build environment
+ id: mod_perl/1.31
+ id: Perl/v5.10.1 (linux) [/usr/bin/perl]
Can't locate ExtUtils/Embed.pm in @INC (@INC contains:
/usr/local/src/mod_perl-1.31/lib /usr/local/lib/perl5
/usr/local/share/perl5 /usr/lib/perl5/vendor_perl
/usr/share/perl5/vendor_perl /usr/lib/perl5 /usr/share/perl5 .) at
/usr/local/src/mod_perl-1.31/lib/Apache/ExtUtils.pm line 26.
BEGIN failed--compilation aborted at ./modules/perl/perl_config line 6.
Can't locate ExtUtils/Embed.pm in @INC (@INC contains:
/usr/local/src/mod_perl-1.31/lib /usr/local/lib/perl5
/usr/local/share/perl5 /usr/lib/perl5/vendor_perl
/usr/share/perl5/vendor_perl /usr/lib/perl5 /usr/share/perl5 .) at
/usr/local/src/mod_perl-1.31/lib/Apache/ExtUtils.pm line 26.
BEGIN failed--compilation aborted at ./modules/perl/perl_config line 6.
Can't locate ExtUtils/Embed.pm in @INC (@INC contains:
/usr/local/src/mod_perl-1.31/lib /usr/local/lib/perl5
/usr/local/share/perl5 /usr/lib/perl5/vendor_perl
/usr/share/perl5/vendor_perl /usr/lib/perl5 /usr/share/perl5 .) at
/usr/local/src/mod_perl-1.31/lib/Apache/ExtUtils.pm line 26.
BEGIN failed--compilation aborted at ./modules/perl/perl_config line 6.
Can't locate ExtUtils/Embed.pm in @INC (@INC contains:
/usr/local/src/mod_perl-1.31/lib /usr/local/lib/perl5
/usr/local/share/perl5 /usr/lib/perl5/vendor_perl
/usr/share/perl5/vendor_perl /usr/lib/perl5 /usr/share/perl5 .) at
/usr/local/src/mod_perl-1.31/lib/Apache/ExtUtils.pm line 26.
BEGIN failed--compilation aborted at ./modules/perl/perl_config line 6.
Can't locate ExtUtils/Embed.pm in @INC (@INC contains:
/usr/local/src/mod_perl-1.31/lib /usr/local/lib/perl5
/usr/local/share/perl5 /usr/lib/perl5/vendor_perl
/usr/share/perl5/vendor_perl /usr/lib/perl5 /usr/share/perl5 .) at
/usr/local/src/mod_perl-1.31/lib/Apache/ExtUtils.pm line 26.
BEGIN failed--compilation aborted at ./modules/perl/perl_config line 6.
Can't locate ExtUtils/Embed.pm in @INC (@INC contains:
/usr/local/src/mod_perl-1.31/lib /usr/local/lib/perl5
/usr/local/share/perl5 /usr/lib/perl5/vendor_perl
/usr/share/perl5/vendor_perl /usr/lib/perl5 /usr/share/perl5 .) at
/usr/local/src/mod_perl-1.31/lib/Apache/ExtUtils.pm line 26.
BEGIN failed--compilation aborted at ./modules/perl/perl_config line 6.
Can't locate ExtUtils/Embed.pm in @INC (@INC contains:
/usr/local/src/mod_perl-1.31/lib /usr/local/lib/perl5
/usr/local/share/perl5 /usr/lib/perl5/vendor_perl
/usr/share/perl5/vendor_perl /usr/lib/perl5 /usr/share/perl5 .) at
/usr/local/src/mod_perl-1.31/lib/Apache/ExtUtils.pm line 26.
BEGIN failed--compilation aborted at ./modules/perl/perl_config line 6.
Can't locate ExtUtils/Embed.pm in @INC (@INC contains:
/usr/local/src/mod_perl-1.31/lib /usr/local/lib/perl5
/usr/local/share/perl5 /usr/lib/perl5/vendor_perl
/usr/share/perl5/vendor_perl /usr/lib/perl5 /usr/share/perl5 .) at
/usr/local/src/mod_perl-1.31/lib/Apache/ExtUtils.pm line 26.
BEGIN failed--compilation aborted at ./modules/perl/perl_config line 6.
Can't locate ExtUtils/Embed.pm in @INC (@INC contains:
/usr/local/src/mod_perl-1.31/lib /usr/local/lib/perl5
/usr/local/share/perl5 /usr/lib/perl5/vendor_perl
/usr/share/perl5/vendor_perl /usr/lib/perl5 /usr/share/perl5 .).
BEGIN failed--compilation aborted.
+ adjusting Apache build environment
+ enabling Perl support for SSI (mod_include)
+ checking sizeof various data types
+ doing sanity check on compiler and options
Creating Makefile in src/support
Creating Makefile in src/regex
Creating Makefile in src/os/unix
Creating Makefile in src/ap
Creating Makefile in src/main
Creating Makefile in src/modules/standard
Creating Makefile in src/modules/perl
Checking CGI.pm VERSION..........ok
Checking for LWP::UserAgent......ok
Checking for HTML::HeadParser....ok
Writing Makefile for Apache
Writing Makefile for Apache::Connection
Writing Makefile for Apache::Constants
Writing Makefile for Apache::File
Writing Makefile for Apache::Leak
Writing Makefile for Apache::Log
Writing Makefile for Apache::ModuleConfig
Writing Makefile for Apache::PerlRunXS
Writing Makefile for Apache::Server
Writing Makefile for Apache::Symbol
Writing Makefile for Apache::Table
Writing Makefile for Apache::URI
Writing Makefile for Apache::Util
Writing Makefile for mod_perl

Aha! I think, I'll just launch CPAN.pm and install ExtUtils::Embed.

cpan[1]> install ExtUtils::Embed
Reading '/root/.cpan/Metadata'
Database was generated on Mon, 14 May 2012 20:23:03 GMT
Running install for module 'ExtUtils::Embed'
The most recent version "1.30" of the module "ExtUtils::Embed"
is part of the perl-5.15.4 distribution. To install that, you need to run
force install ExtUtils::Embed --or--
install F/FL/FLORA/perl-5.15.4.tar.gz
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible
Failed during this command:
FLORA/perl-5.15.4.tar.gz : make NO isa perl

Huh? I need to install Perl 5.15? That seems really odd.

I'm currently running Perl v5.10.1.

Help? What's going wrong?

Thanks,
Chris


alexchorny at gmail

May 14, 2012, 5:13 PM

Post #2 of 3 (1757 views)
Permalink
Re: Problem building mod_perl 1.31 -- Missing ExtUtils::Embed [In reply to]

Hi

2012/5/15 Chris Brooks <madbury [at] gmail>:
> Hi Perl folks,
>
> I'm trying to build mod_perl 1.31 / Apache 1.41 on CentOS 6.2, and I'm
> getting badly stuck.
> Can't locate ExtUtils/Embed.pm in @INC
> Aha! I think, I'll just launch CPAN.pm and install ExtUtils::Embed.

ExtUtils::Embed is a core module and is not available on CPAN (only a
very old version). CentOS maintaners think that you would install
anything from repository, so they removed many CPAN modules. You
should install CenOS package "perl-devel" or something like that.

--
Alexandr Ciornii, http://chorny.net


madbury at gmail

May 15, 2012, 7:57 AM

Post #3 of 3 (1755 views)
Permalink
Re: Problem building mod_perl 1.31 -- Missing ExtUtils::Embed [In reply to]

Thank you Alexandr!

perl-devel was installed, but for some reason ExtUtils::Embed was not.
However, your email led me to install yum and then yum install
perl-ExtUtils-Embed -- which did the trick.

Thank you so much!
-Chris

On Mon, May 14, 2012 at 8:13 PM, Alexandr Ciornii <alexchorny [at] gmail>wrote:

> Hi
>
> 2012/5/15 Chris Brooks <madbury [at] gmail>:
> > Hi Perl folks,
> >
> > I'm trying to build mod_perl 1.31 / Apache 1.41 on CentOS 6.2, and I'm
> > getting badly stuck.
> > Can't locate ExtUtils/Embed.pm in @INC
> > Aha! I think, I'll just launch CPAN.pm and install ExtUtils::Embed.
>
> ExtUtils::Embed is a core module and is not available on CPAN (only a
> very old version). CentOS maintaners think that you would install
> anything from repository, so they removed many CPAN modules. You
> should install CenOS package "perl-devel" or something like that.
>
> --
> Alexandr Ciornii, http://chorny.net
>

ModPerl modperl RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.