mod_perl installation on SUN Solaris 10 x86

mod_perl installation on SUN Solaris 10 x86

am 14.09.2009 16:03:20 von dsmith15

Hi,=20
I am having an issue getting mod_perl installed on a Solaris 10 x86 box.

The following has been installed on the box:

gcc-3.4.6
libiconv-1.11
perl 5.10
http-2.2.13 - Apache2
Perl Modules - zlib, Parser-3.62, Tagset-3.20, URI-1.40, libwww-perl-5.831
mod_perl-2.0.4

When I try to install mod_perl the following happens, has anyone got any id=
ea's? (There is a further information section below to give version numbers=
and settings)

bash-3.00# cd mod_perl-2.0.4/
bash-3.00# ls
Apache-Test INSTALL META.yml ModPerl-Registry REL=
EASE WrapXS docs src util
BRANCHING LICENSE Makefile README STA=
TUS bin lib t xs
Changes MANIFEST Makefile.PL README-SVN SVN=
-MOVE build mod_perl.spec todo
bash-3.00#=20
bash-3.00#=20
bash-3.00#=20
bash-3.00#=20
bash-3.00# perl Makefile.PL MP_APXS=3D/usr/local/apache2/bin/apxs
Reading Makefile.PL args from @ARGV
MP_APXS =3D /usr/local/apache2/bin/apxs
no conflicting prior mod_perl version found - good.
Configuring Apache/2.2.13 mod_perl/2.0.4 Perl/v5.10.0
[ info] generating script t/TEST
[ info] generating script ./t/cgi-bin/cookies.pl
[ info] generating script ./t/cgi-bin/next_available_port.pl
Writing Makefile for Apache::Test
Checking for File::Spec...ok
Checking for Cwd...ok
[ info] generating script t/TEST
Writing Makefile for ModPerl::Registry
Writing Makefile for APR::Base64
Writing Makefile for APR::Brigade
Writing Makefile for APR::Bucket
Writing Makefile for APR::BucketAlloc
Writing Makefile for APR::BucketType
Writing Makefile for APR::Date
Writing Makefile for APR::Error
Writing Makefile for APR::Finfo
Writing Makefile for APR::IpSubnet
Writing Makefile for APR::OS
Writing Makefile for APR::Pool
Writing Makefile for APR::SockAddr
Writing Makefile for APR::Socket
Writing Makefile for APR::Status
Writing Makefile for APR::String
Writing Makefile for APR::Table
Writing Makefile for APR::ThreadMutex
Writing Makefile for APR::ThreadRWLock
Writing Makefile for APR::URI
Writing Makefile for APR::UUID
Writing Makefile for APR::Util
Writing Makefile for APR
Writing Makefile for Apache2::Access
Writing Makefile for Apache2::CmdParms
Writing Makefile for Apache2::Command
Writing Makefile for Apache2::Connection
Writing Makefile for Apache2::ConnectionUtil
Writing Makefile for Apache2::Directive
Writing Makefile for Apache2::Filter
Writing Makefile for Apache2::FilterRec
Writing Makefile for Apache2::HookRun
Writing Makefile for Apache2::Log
Writing Makefile for Apache2::MPM
Writing Makefile for Apache2::Module
Writing Makefile for Apache2::Process
Writing Makefile for Apache2::RequestIO
Writing Makefile for Apache2::RequestRec
Writing Makefile for Apache2::RequestUtil
Writing Makefile for Apache2::Response
Writing Makefile for Apache2::ServerRec
Writing Makefile for Apache2::ServerUtil
Writing Makefile for Apache2::SubProcess
Writing Makefile for Apache2::SubRequest
Writing Makefile for Apache2::URI
Writing Makefile for Apache2::Util
Writing Makefile for Apache2
Writing Makefile for ModPerl::Global
Writing Makefile for ModPerl::Util
Writing Makefile for ModPerl
Writing Makefile for ModPerl::WrapXS
Writing Makefile for APR
Writing Makefile for APR::Const
Writing Makefile for APR::PerlIO
Writing Makefile for libaprext
Writing Makefile for APR_build
Writing Makefile for Apache2::Const
Writing Makefile for Apache2_build
Writing Makefile for ModPerl::Const
Writing Makefile for ModPerl
Writing Makefile for ModPerl::XS
Writing Makefile for mod_perl2
[warning] mod_perl dso library will be built as mod_perl.so
[warning] You'll need to add the following to httpd.conf:
[warning]=20
[warning] LoadModule perl_module modules/mod_perl.so
[warning]=20
[warning] depending on your build, mod_perl might not live in
[warning] the modules/ directory.

[warning] Check the results of
[warning]=20
[warning] $ /usr/local/apache2/bin/apxs -q LIBEXECDIR
[warning]=20
[warning] and adjust the LoadModule directive accordingly.

bash-3.00#=20
bash-3.00#=20
bash-3.00#=20
bash-3.00#=20
bash-3.00# make
cd "src/modules/perl" && make
gcc -B/usr/ccs/bin/ -I/downloads/Perl Modules/mod_perl-2.0.4/src/modules/pe=
rl -I/downloads/Perl Modules/mod_perl-2.0.4/xs -I/usr/local/apache2/include=
-I/usr/local/apache2/include -I/usr/local/apache2/include -fno-strict-ali=
asing -pipe -I/usr/local/include -DPERL_USE_SAFE_PUTENV -I/usr/local/perl51=
0/lib/5.10.0/i86pc-solaris/CORE -DMOD_PERL -DMP_COMPAT_1X -DSOLARIS2=3D10 -=
D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_LARGEFILE64_SOURCE -O -fPIC \
-c mod_perl.c && mv mod_perl.o mod_perl.lo
gcc: Modules/mod_perl-2.0.4/src/modules/perl: No such file or directory
gcc: Modules/mod_perl-2.0.4/xs: No such file or directory
*** Error code 1
make: Fatal error: Command failed for target `mod_perl.lo'
Current working directory /downloads/Perl Modules/mod_perl-2.0.4/src/module=
s/perl
*** Error code 1
make: Fatal error: Command failed for target `modperl_lib'
bash-3.00#
bash-3.00#
bash-3.00#

FURTHER INFORMATION SECTION:
$PATH
bash-3.00# $PATH
bash: /usr/local/bin:/usr/openwin/bin:/usr/ucb/bin:/usr/ccs/bin:/u sr/bin:/u=
sr/sbin: No such file or directory
bash-3.00#

APACHE2:
Configured --enable-so --with-apxs2=3D/usr/local/apache2/bin/apxs

GCC:
bash-3.00# gcc -v
Reading specs from /usr/local/lib/gcc/i386-pc-solaris2.10/3.4.6/specs
Configured with: ../configure --with-as=3D/usr/ccs/bin/as --with-ld=3D/usr/=
ccs/bin/ld --enable-shared --enable-languages=3Dc,c++,f77
Thread model: posix
gcc version 3.4.6
bash-3.00#


PERL:
bash-3.00# perl -V
Summary of my perl5 (revision 5 version 10 subversion 0) configuration:
Platform:
osname=3Dsolaris, osvers=3D2.10, archname=3Di86pc-solaris
uname=3D'sunos curlyarrows.chem.ed.ac.uk 5.10 generic_139556-08 i86pc i=
386 i86pc '
config_args=3D'-Dcc=3Dgcc -B/usr/ccs/bin/ -Dprefix=3D/usr/local/perl510=
-des'
hint=3Drecommended, useposix=3Dtrue, d_sigaction=3Ddefine
useithreads=3Dundef, usemultiplicity=3Dundef
useperlio=3Ddefine, d_sfio=3Dundef, uselargefiles=3Ddefine, usesocks=3D=
undef
use64bitint=3Dundef, use64bitall=3Dundef, uselongdouble=3Dundef
usemymalloc=3Dn, bincompat5005=3Dundef
Compiler:
cc=3D'gcc -B/usr/ccs/bin/', ccflags =3D'-fno-strict-aliasing -pipe -I/u=
sr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=3D64 -DPERL_USE_SA=
FE_PUTENV',
optimize=3D'-O',
cppflags=3D'-fno-strict-aliasing -pipe -I/usr/local/include'
ccversion=3D'', gccversion=3D'3.4.6', gccosandvers=3D'solaris2.10'
intsize=3D4, longsize=3D4, ptrsize=3D4, doublesize=3D8, byteorder=3D1234
d_longlong=3Ddefine, longlongsize=3D8, d_longdbl=3Ddefine, longdblsize=
=3D12
ivtype=3D'long', ivsize=3D4, nvtype=3D'double', nvsize=3D8, Off_t=3D'of=
f_t', lseeksize=3D8
alignbytes=3D4, prototype=3Ddefine
Linker and Libraries:
ld=3D'gcc -B/usr/ccs/bin/', ldflags =3D' -L/usr/local/lib '
libpth=3D/usr/local/lib /usr/lib /usr/ccs/lib
libs=3D-lsocket -lnsl -ldl -lm -lc
perllibs=3D-lsocket -lnsl -ldl -lm -lc
libc=3D/lib/libc.so, so=3Dso, useshrplib=3Dfalse, libperl=3Dlibperl.a
gnulibc_version=3D''
Dynamic Linking:
dlsrc=3Ddl_dlopen.xs, dlext=3Dso, d_dlsymun=3Dundef, ccdlflags=3D' '
cccdlflags=3D'-fPIC', lddlflags=3D'-G -L/usr/local/lib'


Characteristics of this binary (from libperl):=20
Compile-time options: PERL_DONT_CREATE_GVSV PERL_MALLOC_WRAP
PERL_USE_SAFE_PUTENV USE_LARGE_FILES USE_PERLIO
Built under solaris
Compiled at Sep 14 2009 12:08:08
@INC:
/usr/local/perl510/lib/5.10.0/i86pc-solaris
/usr/local/perl510/lib/5.10.0
/usr/local/perl510/lib/site_perl/5.10.0/i86pc-solaris
/usr/local/perl510/lib/site_perl/5.10.0

Any help would be greatly appreciated
David C Smith


--=20
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.

RE: mod_perl installation on SUN Solaris 10 x86

am 14.09.2009 18:07:08 von David McCabe

You have a space in your "downloads/Perl Modules" directory name, but you a=
re not quoting it in the -I option to gcc, so it sees the "Modules/..." as =
the file to be compiled, and not part of the -I option. Obviously, this fil=
e does not exist, so the error message is right. :)

While all good modern OSes support spaces in directory/file names, I still =
avoid them like the plague, and use the _ character instead, for this very =
reason. :)

David McCabe =
McGIll University
Senior Systems Analyst - Network and Communications Services

The jeep is the only true american sports car. - Enzo Ferrari


> -----Original Message-----
> From: dsmith15 [mailto:David.C.Smith@ed.ac.uk]
> Sent: September-14-09 10:03 AM
> To: modperl@perl.apache.org
> Subject: mod_perl installation on SUN Solaris 10 x86
>=20
> Hi,
> I am having an issue getting mod_perl installed on a Solaris 10 x86
> box.
>=20
> The following has been installed on the box:
>=20
> gcc-3.4.6
> libiconv-1.11
> perl 5.10
> http-2.2.13 - Apache2
> Perl Modules - zlib, Parser-3.62, Tagset-3.20, URI-1.40, libwww-perl-
> 5.831
> mod_perl-2.0.4
>=20
> When I try to install mod_perl the following happens, has anyone got
> any idea's? (There is a further information section below to give
> version numbers and settings)
>=20
> bash-3.00# cd mod_perl-2.0.4/
> bash-3.00# ls
> Apache-Test INSTALL META.yml ModPerl-Registry
> RELEASE WrapXS docs src
> util
> BRANCHING LICENSE Makefile README
> STATUS bin lib t
> xs
> Changes MANIFEST Makefile.PL README-SVN
> SVN-MOVE build mod_perl.spec todo
> bash-3.00#
> bash-3.00#
> bash-3.00#
> bash-3.00#
> bash-3.00# perl Makefile.PL MP_APXS=3D/usr/local/apache2/bin/apxs
> Reading Makefile.PL args from @ARGV
> MP_APXS =3D /usr/local/apache2/bin/apxs
> no conflicting prior mod_perl version found - good.
> Configuring Apache/2.2.13 mod_perl/2.0.4 Perl/v5.10.0
> [ info] generating script t/TEST
> [ info] generating script ./t/cgi-bin/cookies.pl
> [ info] generating script ./t/cgi-bin/next_available_port.pl
> Writing Makefile for Apache::Test
> Checking for File::Spec...ok
> Checking for Cwd...ok
> [ info] generating script t/TEST
> Writing Makefile for ModPerl::Registry
> Writing Makefile for APR::Base64
> Writing Makefile for APR::Brigade
> Writing Makefile for APR::Bucket
> Writing Makefile for APR::BucketAlloc
> Writing Makefile for APR::BucketType
> Writing Makefile for APR::Date
> Writing Makefile for APR::Error
> Writing Makefile for APR::Finfo
> Writing Makefile for APR::IpSubnet
> Writing Makefile for APR::OS
> Writing Makefile for APR::Pool
> Writing Makefile for APR::SockAddr
> Writing Makefile for APR::Socket
> Writing Makefile for APR::Status
> Writing Makefile for APR::String
> Writing Makefile for APR::Table
> Writing Makefile for APR::ThreadMutex
> Writing Makefile for APR::ThreadRWLock
> Writing Makefile for APR::URI
> Writing Makefile for APR::UUID
> Writing Makefile for APR::Util
> Writing Makefile for APR
> Writing Makefile for Apache2::Access
> Writing Makefile for Apache2::CmdParms
> Writing Makefile for Apache2::Command
> Writing Makefile for Apache2::Connection
> Writing Makefile for Apache2::ConnectionUtil
> Writing Makefile for Apache2::Directive
> Writing Makefile for Apache2::Filter
> Writing Makefile for Apache2::FilterRec
> Writing Makefile for Apache2::HookRun
> Writing Makefile for Apache2::Log
> Writing Makefile for Apache2::MPM
> Writing Makefile for Apache2::Module
> Writing Makefile for Apache2::Process
> Writing Makefile for Apache2::RequestIO
> Writing Makefile for Apache2::RequestRec
> Writing Makefile for Apache2::RequestUtil
> Writing Makefile for Apache2::Response
> Writing Makefile for Apache2::ServerRec
> Writing Makefile for Apache2::ServerUtil
> Writing Makefile for Apache2::SubProcess
> Writing Makefile for Apache2::SubRequest
> Writing Makefile for Apache2::URI
> Writing Makefile for Apache2::Util
> Writing Makefile for Apache2
> Writing Makefile for ModPerl::Global
> Writing Makefile for ModPerl::Util
> Writing Makefile for ModPerl
> Writing Makefile for ModPerl::WrapXS
> Writing Makefile for APR
> Writing Makefile for APR::Const
> Writing Makefile for APR::PerlIO
> Writing Makefile for libaprext
> Writing Makefile for APR_build
> Writing Makefile for Apache2::Const
> Writing Makefile for Apache2_build
> Writing Makefile for ModPerl::Const
> Writing Makefile for ModPerl
> Writing Makefile for ModPerl::XS
> Writing Makefile for mod_perl2
> [warning] mod_perl dso library will be built as mod_perl.so
> [warning] You'll need to add the following to httpd.conf:
> [warning]
> [warning] LoadModule perl_module modules/mod_perl.so
> [warning]
> [warning] depending on your build, mod_perl might not live in
> [warning] the modules/ directory.
>=20
> [warning] Check the results of
> [warning]
> [warning] $ /usr/local/apache2/bin/apxs -q LIBEXECDIR
> [warning]
> [warning] and adjust the LoadModule directive accordingly.
>=20
> bash-3.00#
> bash-3.00#
> bash-3.00#
> bash-3.00#
> bash-3.00# make
> cd "src/modules/perl" && make
> gcc -B/usr/ccs/bin/ -I/downloads/Perl Modules/mod_perl-
> 2.0.4/src/modules/perl -I/downloads/Perl Modules/mod_perl-2.0.4/xs -
> I/usr/local/apache2/include -I/usr/local/apache2/include -
> I/usr/local/apache2/include -fno-strict-aliasing -pipe -
> I/usr/local/include -DPERL_USE_SAFE_PUTENV -
> I/usr/local/perl510/lib/5.10.0/i86pc-solaris/CORE -DMOD_PERL -
> DMP_COMPAT_1X -DSOLARIS2=3D10 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -
> D_LARGEFILE64_SOURCE -O -fPIC \
> -c mod_perl.c && mv mod_perl.o mod_perl.lo
> gcc: Modules/mod_perl-2.0.4/src/modules/perl: No such file or directory
> gcc: Modules/mod_perl-2.0.4/xs: No such file or directory
> *** Error code 1
> make: Fatal error: Command failed for target `mod_perl.lo'
> Current working directory /downloads/Perl Modules/mod_perl-
> 2.0.4/src/modules/perl
> *** Error code 1
> make: Fatal error: Command failed for target `modperl_lib'
> bash-3.00#
> bash-3.00#
> bash-3.00#
>=20
> FURTHER INFORMATION SECTION:
> $PATH
> bash-3.00# $PATH
> bash:
> /usr/local/bin:/usr/openwin/bin:/usr/ucb/bin:/usr/ccs/bin:/u sr/bin:/usr
> /sbin: No such file or directory
> bash-3.00#
>=20
> APACHE2:
> Configured --enable-so --with-apxs2=3D/usr/local/apache2/bin/apxs
>=20
> GCC:
> bash-3.00# gcc -v
> Reading specs from /usr/local/lib/gcc/i386-pc-solaris2.10/3.4.6/specs
> Configured with: ../configure --with-as=3D/usr/ccs/bin/as --with-
> ld=3D/usr/ccs/bin/ld --enable-shared --enable-languages=3Dc,c++,f77
> Thread model: posix
> gcc version 3.4.6
> bash-3.00#
>=20
>=20
> PERL:
> bash-3.00# perl -V
> Summary of my perl5 (revision 5 version 10 subversion 0) configuration:
> Platform:
> osname=3Dsolaris, osvers=3D2.10, archname=3Di86pc-solaris
> uname=3D'sunos curlyarrows.chem.ed.ac.uk 5.10 generic_139556-08 i86pc
> i386 i86pc '
> config_args=3D'-Dcc=3Dgcc -B/usr/ccs/bin/ -Dprefix=3D/usr/local/perl5=
10 -
> des'
> hint=3Drecommended, useposix=3Dtrue, d_sigaction=3Ddefine
> useithreads=3Dundef, usemultiplicity=3Dundef
> useperlio=3Ddefine, d_sfio=3Dundef, uselargefiles=3Ddefine,
> usesocks=3Dundef
> use64bitint=3Dundef, use64bitall=3Dundef, uselongdouble=3Dundef
> usemymalloc=3Dn, bincompat5005=3Dundef
> Compiler:
> cc=3D'gcc -B/usr/ccs/bin/', ccflags =3D'-fno-strict-aliasing -pipe -
> I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=3D64 -
> DPERL_USE_SAFE_PUTENV',
> optimize=3D'-O',
> cppflags=3D'-fno-strict-aliasing -pipe -I/usr/local/include'
> ccversion=3D'', gccversion=3D'3.4.6', gccosandvers=3D'solaris2.10'
> intsize=3D4, longsize=3D4, ptrsize=3D4, doublesize=3D8, byteorder=3D1=
234
> d_longlong=3Ddefine, longlongsize=3D8, d_longdbl=3Ddefine, longdblsiz=
e=3D12
> ivtype=3D'long', ivsize=3D4, nvtype=3D'double', nvsize=3D8, Off_t=3D'=
off_t',
> lseeksize=3D8
> alignbytes=3D4, prototype=3Ddefine
> Linker and Libraries:
> ld=3D'gcc -B/usr/ccs/bin/', ldflags =3D' -L/usr/local/lib '
> libpth=3D/usr/local/lib /usr/lib /usr/ccs/lib
> libs=3D-lsocket -lnsl -ldl -lm -lc
> perllibs=3D-lsocket -lnsl -ldl -lm -lc
> libc=3D/lib/libc.so, so=3Dso, useshrplib=3Dfalse, libperl=3Dlibperl.a
> gnulibc_version=3D''
> Dynamic Linking:
> dlsrc=3Ddl_dlopen.xs, dlext=3Dso, d_dlsymun=3Dundef, ccdlflags=3D' '
> cccdlflags=3D'-fPIC', lddlflags=3D'-G -L/usr/local/lib'
>=20
>=20
> Characteristics of this binary (from libperl):
> Compile-time options: PERL_DONT_CREATE_GVSV PERL_MALLOC_WRAP
> PERL_USE_SAFE_PUTENV USE_LARGE_FILES USE_PERLIO
> Built under solaris
> Compiled at Sep 14 2009 12:08:08
> @INC:
> /usr/local/perl510/lib/5.10.0/i86pc-solaris
> /usr/local/perl510/lib/5.10.0
> /usr/local/perl510/lib/site_perl/5.10.0/i86pc-solaris
> /usr/local/perl510/lib/site_perl/5.10.0
>=20
> Any help would be greatly appreciated
> David C Smith
>=20
>=20
> --
> The University of Edinburgh is a charitable body, registered in
> Scotland, with registration number SC005336.