You have a space in your "downloads/Perl Modules" directory name, but you are 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 file 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.sm...@ed.ac.uk] > Sent: September-14-09 10:03 AM > To: modperl@perl.apache.org > Subject: mod_perl installation on SUN Solaris 10 x86 > > Hi, > 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 idea'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 > 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=/usr/local/apache2/bin/apxs > Reading Makefile.PL args from @ARGV > MP_APXS = /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. > > [warning] Check the results of > [warning] > [warning] $ /usr/local/apache2/bin/apxs -q LIBEXECDIR > [warning] > [warning] and adjust the LoadModule directive accordingly. > > 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=10 -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# > > FURTHER INFORMATION SECTION: > $PATH > bash-3.00# $PATH > bash: > /usr/local/bin:/usr/openwin/bin:/usr/ucb/bin:/usr/ccs/bin:/usr/bin:/usr > /sbin: No such file or directory > bash-3.00# > > APACHE2: > Configured --enable-so --with-apxs2=/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=/usr/ccs/bin/as --with- > ld=/usr/ccs/bin/ld --enable-shared --enable-languages=c,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=solaris, osvers=2.10, archname=i86pc-solaris > uname='sunos curlyarrows.chem.ed.ac.uk 5.10 generic_139556-08 i86pc > i386 i86pc ' > config_args='-Dcc=gcc -B/usr/ccs/bin/ -Dprefix=/usr/local/perl510 - > des' > hint=recommended, useposix=true, d_sigaction=define > useithreads=undef, usemultiplicity=undef > useperlio=define, d_sfio=undef, uselargefiles=define, > usesocks=undef > use64bitint=undef, use64bitall=undef, uselongdouble=undef > usemymalloc=n, bincompat5005=undef > Compiler: > cc='gcc -B/usr/ccs/bin/', ccflags ='-fno-strict-aliasing -pipe - > I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 - > DPERL_USE_SAFE_PUTENV', > optimize='-O', > cppflags='-fno-strict-aliasing -pipe -I/usr/local/include' > ccversion='', gccversion='3.4.6', gccosandvers='solaris2.10' > intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234 > d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12 > ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', > lseeksize=8 > alignbytes=4, prototype=define > Linker and Libraries: > ld='gcc -B/usr/ccs/bin/', ldflags =' -L/usr/local/lib ' > libpth=/usr/local/lib /usr/lib /usr/ccs/lib > libs=-lsocket -lnsl -ldl -lm -lc > perllibs=-lsocket -lnsl -ldl -lm -lc > libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a > gnulibc_version='' > Dynamic Linking: > dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' ' > cccdlflags='-fPIC', lddlflags='-G -L/usr/local/lib' > > > 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 > > Any help would be greatly appreciated > David C Smith > > > -- > The University of Edinburgh is a charitable body, registered in > Scotland, with registration number SC005336.