Hi

I'm making a fresh build of Apache on Solaris 8 with mod_perl and
mod_ssl.
                                                         
When I load apache i get
Apache.pm failed to load!
in the error log and the application bombs out.

adding
PerlModule Apache
to the top of my httpd.conf also results in failed apache load, this
time with a slightly more descriptive error:

Syntax error on line 48 of /etc/apache/httpd.conf: 
Can't locate Apache.pm in @INC (@INC contains:
/usr/perl5/5.00503/sun4-solaris /usr/perl5/5.00503
usr/perl5/site_perl/5.005/sun4-solaris /usr/perl5/site_perl/5.005 .
usr/local/apache/ /usr/local/apache/lib/perl) at (eval 2) line 3.

/usr/local/apache/bin/apachectl start: httpd could not be started

so i'm guessing this is a paths issue. a look for Apache.pm reveals
three:

find / -name Apache.pm
~/mod_perl-1.26/lib/Bundle/Apache.pm
~/mod_perl-1.26/Apache/Apache.pm
/usr/perl5/5.00503/CGI/Apache.
                                                                       
      
which one of these should i be moving or symlinking to the @INC path?
or is this the wrong approach?

Thanks in advance
                                                                 
PS Here's details of how i undertook the build in case that's relevant:

cd ~
export PATH=/bin:/sbin:/usr/bin:/usr/local/bin:/usr/local/sbin \
:/usr/share/lib:/export/home/opt/SUNWspro/bin:/usr/xpg4/bin \
:/usr/ccs/bin:/usr/dt/bin:/usr/openwin/bin:/usr/ucb: \
/usr/local/acrobat4/bin

cd openssl-0.9.6b
./config
make
make test
make install
cd ..
cd mod_perl-1.26/
perl Makefile.PL \
  APACHE_PREFIX=/usr/local/apache \
  APACHE_SRC=../apache_1.3.20/src \
  USE_APACI=1
cd ..
cd mod_ssl-2.8.4-1.3.20
./configure --with-apache=../apache_1.3.20 \
  --prefix=/usr/local/apache \
  --with-ssl=../openssl-0.9.6b \
  --activate-module=src/modules/perl/libperl.a
cd ..
cd apache_1.3.20
SSL_BASE=../openssl-0.9.6b CC="cc" ./configure \
          --prefix=/usr/local/apache           \
          --sysconfdir=/etc/apache             \
          --datadir=/export/home/httpd         \
          --logfiledir=/var/log/httpd          \
          --runtimedir=/var/log/httpd          \
          --enable-module=ssl                  \
          --activate-module=src/modules/perl/libperl.a \
          --disable-rule=EXPAT                 \
          --enable-module=perl \
make
make certificate
sudo make install


=====
u n d e r a c h i e v e r (and proud)
<[EMAIL PROTECTED]>

__________________________________________________
Terrorist Attacks on U.S. - How can you help?
Donate cash, emergency relief information
http://dailynews.yahoo.com/fc/US/Emergency_Information/

Reply via email to