You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Kenneth Frankel <ke...@atsbank.com> on 2000/04/09 20:10:01 UTC

Mod_Perl install - "no apxs" error

I have tried almost every variation of installation instructions, and all 
have failed.  I can't find anything in the FAQs so please help me.

Situation: Redhat 6.1 Linux 2.2.12, with pre-installed Apache 
httpd.  Removed pre-existing httpd from PATH.  Installing new Apache to 
different path.  Source versions: apache_1.3.12, mod_perl-1.22.

Following instructions in INSTALL:
     perl Makefile.pl
     make
I get a dozen of these:
     which: no apxs in (/usr/local/bin:/bin:/usr/bin:/usr/local/mysql/bin:.)

Following instructions in INSTALL.apaci, method 2 - the flexible way:
      Makefile.PL \
      APACHE_SRC=../apache_1.3.12/src \
      DO_HTTPD=1 \
      USE_APACI=1 \
      PREP_HTTPD=1 \
      EVERYTHING=1
I get a dozen of these:
     which: no apxs in (/usr/local/bin:/bin:/usr/bin:/usr/local/mysql/bin:.)
After which, make test fails and nothing goes on.

Now, apxs is apache's DSO compiler and I am trying to get mod_perl 
installed statically, so I was guessing mod_perl is reading an old config 
file from somewhere and thinking it wants to be a DSO, so I uninstalled 
(rpm -e) redhat's php,mod_perl, and apache, rebooted just for fun, created 
clean source from the tar.gz's, and still, I am getting the "no apxs" 
messages.

Anywhere I should be looking / anything I could be trying?  Is mod_perl 
really dependent on apxs?  Do I really have to build Apache to get the apxs 
to install mod_perl?  Nowhere in the instructions does it says that's 
necessary.

(BTW, when I do compile+install Apache first, then compile+install 
mod_perl, it does end up with an executable, but that segmentation faults 
when I try hitting the web server with a browser.)

Please help me!!!

Many Thanks,
Kenneth

P.S.  Here's output from the perl Makefile.PL:
 >perl Makefile.PL \
 >      APACHE_SRC=../apache_1.3.12/src \
 >      DO_HTTPD=1 \
 >      USE_APACI=1 \
 >      PREP_HTTPD=1 \
 >      EVERYTHING=1
 >Will configure via APACI
 >(cd ../apache_1.3.12/src && ./Configure -file Configuration)cp
 >apaci/Makefile.libdir ../apache_1.3.12/src/modules/perl/Makefile.libdir
 >cp apaci/Makefile.tmpl ../apache_1.3.12/src/modules/perl/Makefile.tmpl
 >cp apaci/README ../apache_1.3.12/src/modules/perl/README
 >cp apaci/configure ../apache_1.3.12/src/modules/perl/configure
 >cp apaci/libperl.module ../apache_1.3.12/src/modules/perl/libperl.module
 >cp apaci/mod_perl.config.sh
 >../apache_1.3.12/src/modules/perl/mod_perl.config.sh
 >cp apaci/load_modules.pl.PL
 >../apache_1.3.12/src/modules/perl/load_modules.pl.PL
 >cp apaci/find_source.PL ../apache_1.3.12/src/modules/perl/find_source.PL
 >cp apaci/apxs_cflags.PL ../apache_1.3.12/src/modules/perl/apxs_cflags.PL
 >cp apaci/mod_perl.exp ../apache_1.3.12/src/modules/perl/mod_perl.exp
 >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: 'kenneth' Group: 'kenneth'
 >Checking CGI.pm VERSION..........ok
 >Checking for LWP::UserAgent......ok
 >Checking for HTML::HeadParser....ok
 >Checking if your kit is complete...
 >Looks good
 >which: no apxs in (/usr/local/bin:/bin:/usr/bin:/usr/local/mysql/bin:.)
 >Writing Makefile for Apache
 >which: no apxs in (/usr/local/bin:/bin:/usr/bin:/usr/local/mysql/bin:.)
 >Writing Makefile for Apache::Connection
 >which: no apxs in (/usr/local/bin:/bin:/usr/bin:/usr/local/mysql/bin:.)
 >Writing Makefile for Apache::Constants
 >which: no apxs in (/usr/local/bin:/bin:/usr/bin:/usr/local/mysql/bin:.)
 >Writing Makefile for Apache::File
 >Writing Makefile for Apache::Leak
 >which: no apxs in (/usr/local/bin:/bin:/usr/bin:/usr/local/mysql/bin:.)
 >Writing Makefile for Apache::Log
 >which: no apxs in (/usr/local/bin:/bin:/usr/bin:/usr/local/mysql/bin:.)
 >Writing Makefile for Apache::ModuleConfig
 >which: no apxs in (/usr/local/bin:/bin:/usr/bin:/usr/local/mysql/bin:.)
 >Writing Makefile for Apache::PerlRunXS
 >which: no apxs in (/usr/local/bin:/bin:/usr/bin:/usr/local/mysql/bin:.)
 >Writing Makefile for Apache::Server
 >Writing Makefile for Apache::Symbol
 >which: no apxs in (/usr/local/bin:/bin:/usr/bin:/usr/local/mysql/bin:.)
 >Writing Makefile for Apache::Table
 >which: no apxs in (/usr/local/bin:/bin:/usr/bin:/usr/local/mysql/bin:.)
 >Writing Makefile for Apache::URI
 >which: no apxs in (/usr/local/bin:/bin:/usr/bin:/usr/local/mysql/bin:.)
 >Writing Makefile for Apache::Util
 >Writing Makefile for mod_perl


Re: Mod_Perl install - "no apxs" error

Posted by Buddy Lee Haystack <ha...@surfree.com>.
Some cut & paste from previous messages...

For RedHat DSO specific steps in the mod_perl guide see:
http://perl.apache.org/guide/install.html#Installing_separate_Apache_and_m

No need to recompile Apache. My DSO setup works quite well!

**********EDIT the "/etc/httpd/conf/httpd.conf" file

#uncomment the line below under the section
# Dynamic Shared Object (DSO) Support
LoadModule perl_module        modules/libperl.so

#uncomment the line below under the section
# Extra Modules
AddModule mod_perl.c

#add the following line
ScriptAlias /perl/ "/home/httpd/cgi-bin/"

#uncomment the following lines
# If the perl module is installed, this will be enabled.
<IfModule mod_perl.c>
  Alias /perl/ /home/httpd/cgi-bin/
  <Location /perl>
    SetHandler perl-script
    PerlHandler Apache::Registry
    Options +ExecCGI
  </Location>
</IfModule>
*********************************************
I use my setup to test, so I execute both mod_perl & standard perl
scripts from the same CGI directory...
Now, anything that is accessed as 
http://mysite.com/perl/perlscript.cgi will
run as a mod_perl script, and anything accessed as 
http://mysite.com/cgi-bin/perlscript.cgi will run as a non_mod_perl
script.
Use this setup only if you want to test
scripts as both normal cgi & mod_perl scripts, otherwise you'll need
to point
the "Alias /perl/ /home/httpd/cgi-bin/" line & "ScriptAlias /perl/
"/home/httpd/cgi-bin/" line to point to another CGI directory of your
choice.

Hope this helps!



Kenneth Frankel wrote:
> 
> I have tried almost every variation of installation instructions, and all
> have failed.  I can't find anything in the FAQs so please help me.
> 
> Situation: Redhat 6.1 Linux 2.2.12, with pre-installed Apache
> httpd.  Removed pre-existing httpd from PATH.  Installing new Apache to
> different path.  Source versions: apache_1.3.12, mod_perl-1.22.

<SNIP>