You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Ruben I Safir - Brooklyn Linux Solutions CEO <ru...@mrbrklyn.com> on 2001/02/11 05:33:11 UTC

embperl under mod perl

I used to be recommended by Ruevain Lerner in the Linux Journal 
that to use EMBPERL under modperl we needed to compile embperl under mod perl:


<QUOTING>

Before you can start to compile the components, you will have to set some of
the configurations and modify
Makefiles. First of all, go into the mod_perl directory and edit
src/modules/perl/Makefile: 

/downloads/mod_perl-1.12/src/modules/perl/Makefile

You will have to make three changes to this file. First, add the HTML::Embperl
to the definition of
STATIC_EXTS that will be grabbed by the mod_perl configuration system. That is,
edit the line (line 98, in
mod_perl-1.12): 

#STATIC_EXTS = Apache Apache::Constants

and change it to: 

#STATIC_EXTS = Apache Apache::Constants HTML::Embperl

Next, look for the line that begins with OBJS= (line 131 in mod_perl-1.12).
Just before that line, define the
variable EPDIR so that it points to your Embperl build directory. For instance,
assuming that we are building
Embperl in /downloads/HTML-Embperl-1.0.0, we will set it to: 

EPDIR=/downloads/HTML-Embperl-1.0.0

We will now modify the OBJS variable such that it creates the object files for
Embperl as well as mod_perl: 

OBJS=$(PERLSRC:.c=.o) $(EPDIR)/Embperl.o \
$(EPDIR)/epmain.o $(EPDIR)/epio.o \
$(EPDIR)/epeval.o $(EPDIR)/epcmd.o \
$(EPDIR)/epchar.o $(EPDIR)/eputil.o

Don't forget to put backslashes at the end of each continued line, so that make
doesn't think the second and
third lines should stand on their own. 


___________________________________


Which essentially put some parts of the embperl objects into the modperl
compile.  Any idea would he recommend that?  Is it needed today?


Ruben


-- 
Brooklyn Linux Solutions
http://www.mrbrklyn.com
http://www.brooklynonline.com

1-718-382-5752


Re: embperl under mod perl

Posted by Gerald Richter <ri...@ecos.de>.

> I used to be recommended by Ruevain Lerner in the Linux Journal
> that to use EMBPERL under modperl we needed to compile embperl under mod
perl:
>

How old is this article ? If it's a new article is it available online
somewhere ?

>
>
> Which essentially put some parts of the embperl objects into the modperl
> compile.  Any idea would he recommend that?

This is only necessary if your plattform doesn't support dynamic loading.

>  Is it needed today?
>

No, you normaly only install mod_perl and Embperl afterwards and anything is
done (just as decribed in the INSTALL.pod)

Gerald


-------------------------------------------------------------
Gerald Richter    ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
E-Mail:     richter@ecos.de         Voice:    +49 6133 925131
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------