You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Vincent Bruijnes <vi...@bruijnes.com> on 2000/07/03 16:35:55 UTC

possible?

Dear mod_perl users.

Is it possible to have an apache with --enable-shared=max and mod_perl 
statically linked?
If yes please tell me how to do, i need mod_perl statically cause otherwise 
my Apache::ASP won't work.

Sincerely Vincent Bruijnes
vincent@bruijnes.com



Re: possible?

Posted by Ben Li <be...@corp.elong.com>.
Vincent Bruijnes wrote:

> Dear mod_perl users.
>
> Is it possible to have an apache with --enable-shared=max and mod_perl
> statically linked?
> If yes please tell me how to do, i need mod_perl statically cause otherwise
> my Apache::ASP won't work.
>
> Sincerely Vincent Bruijnes
> vincent@bruijnes.com

Yes, I do it in SunOS 5.6, and it should works elsewhere.

$ cd mod_perl-1.24
$ perl Makefile.PL \
     APACHE_SRC=../apache_1.3.X/src \
     DO_HTTPD=1 \
     USE_APACI=1 \
     PREP_HTTPD=1 \
     EVERYTHING=1 \
$ make
$ make install
$ cd ../apache_1.3.X/src
$ ./configure --prefix=/data/apache
--activate-module=src/modules/perl/libperl.a --enable-module=all
--enable-shared=max --disable-module=auth_db --disable-shared=perl
$ make
$ make install



Re: possible?

Posted by Joshua Chamas <jo...@chamas.com>.
Vincent Bruijnes wrote:
> 
> Dear mod_perl users.
> 
> Is it possible to have an apache with --enable-shared=max and mod_perl
> statically linked?
> If yes please tell me how to do, i need mod_perl statically cause otherwise
> my Apache::ASP won't work.
> 

Vincent,

Its would seem to me that the standard build procedure at 
http://perl.apache.org/guide/install.html would result in 
you statically linked mod_perl + apache, but I don't know
about --enable-shared=max ?  If you have problems getting this 
to work, you might want to post the errors you are getting?

Standard build [ from guide ]:

     % cd /usr/src
     % lwp-download http://www.apache.org/dist/apache_x.x.x.tar.gz
     % lwp-download http://perl.apache.org/dist/mod_perl-x.xx.tar.gz
     % tar xzvf apache_x.x.x.tar.gz
     % tar xzvf mod_perl-x.xx.tar.gz
     % cd mod_perl-x.xx
     % perl Makefile.PL APACHE_SRC=../apache_x.x.x/src \
       DO_HTTPD=1 USE_APACI=1 EVERYTHING=1
     % make && make test && make install
     % cd ../apache_x.x.x
     % make install

Note that with USE_APACI=1 set, you may pass in extra apache
build arguments: [ from guide again, I'm on a roll ]
  
     % perl Makefile.PL USE_APACI=1 \
     APACI_ARGS='--sbindir=/usr/local/sbin/httpd_perl, \
            --sysconfdir=/usr/local/etc/httpd_perl, \
            --localstatedir=/usr/local/var/httpd_perl, \
            --runtimedir=/usr/local/var/httpd_perl/run, \
            --logfiledir=/usr/local/var/httpd_perl/logs, \
            --proxycachedir=/usr/local/var/httpd_perl/proxy'

Sorry if this was less than helpful, but noone else picked
up this post on the list, so I thought I'd give it a shot :)

-- Joshua
_________________________________________________________________
Joshua Chamas			        Chamas Enterprises Inc.
NodeWorks >> free web link monitoring	Huntington Beach, CA  USA 
http://www.nodeworks.com                1-714-625-4051