You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Marcus Doemling <md...@hotmail.com> on 2010/04/13 20:22:31 UTC

RE: Embperl BETA 2.4.0 is available

I installed this on my iMac (Snow Leopard 10.6.3). Needed a minor fix to make it work. Here's some info:

make test TESTARGS="-i" gives the following errors:

#241 rtf/rtfmeta.asc...       

[-1][2455]ERR:  24:  Error in Perl code: syntax error at /Users/marcus/Src/Embperl-2.4.0_2/test/html/rtf/rtfmeta.asc line 5, near "]\"
[-2]syntax error at /Users/marcus/Src/Embperl-2.4.0_2/test/html/rtf/rtfmeta.asc line 17, near "#line 16 "/Users/marcus/Src/Embperl-2.4.0_2/test/html/rtf/rtfmeta.asc"
[-3]}
[-4] _ep_cp"
[-5]syntax error at /Users/marcus/Src/Embperl-2.4.0_2/test/html/rtf/rtfmeta.asc line 20, at EOF
[-6]syntax error at /Users/marcus/Src/Embperl-2.4.0_2/test/html/rtf/rtfmeta.asc line 27, near ";
[-7]}"

...

Performing httpd syntax check 1 ...  ERROR: Syntax OK not found
Got httpd: Syntax error on line 33 of /Users/marcus/src/Embperl-2.4.0_2/test/conf/httpd.min.conf: Cannot load /Users/marcus/src/Embperl-2.4.0_2/blib/arch/auto/Embperl/Embperl.so into server: dlopen(/Users/marcus/src/Embperl-2.4.0_2/blib/arch/auto/Embperl/Embperl.so, 10): image not found

---

The "image not found" is due to the library being called Embperl.bundle instead of Embperl.so. After copying the library with the following command all seems to work fine:

> sudo cp /Library/Perl/5.10.0/darwin-thread-multi-2level/auto/Embperl/Embperl.bundle /usr/libexec/apache2/Embperl.so

Hope this info is helpful.
 		 	   		  
_________________________________________________________________
Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1

RE: Embperl BETA 2.4.0 is available

Posted by Gerald Richter - ECOS <ge...@ecos.de>.
I suggest setting EMBPERL_LOG to -1 and take a look at the embperl.log file. That might shed some light what is going on here

 

Gerald

 

 

From: Marcus Doemling [mailto:md7852@hotmail.com] 
Sent: Monday, April 19, 2010 1:34 AM
To: embperl@perl.apache.org
Subject: RE: Embperl BETA 2.4.0 is available



 

I think there is another issue on the Mac. It seems I cannot get it to recognize the configuration parameters in httpd.conf on the Mac. My conf is as follows:

  LoadModule perl_module libexec/apache2/mod_perl.so
  LoadModule embperl_module libexec/apache2/Embperl.so

  PerlModule Embperl
  AddType text/html .bhtml

  <Files *.bhtml>
        Embperl_AppName n1
        Embperl_Object_Base base.bhtml

        SetHandler perl-script
        PerlHandler Embperl::Object
        Options ExecCGI
  </Files>

It will not recognize Embperl_Object_Base or any other embperl setting. I have tried is also with the environmental variables using Embperl_UseEnv. When starting httpd with the -D EMBPERL_APDEBUG options I get this:

  [Sun Apr 18 16:27:38 2010] [warn] EmbperlDebug: create_server_config (0xbogus %p [3732/0]\n
  [Sun Apr 18 16:27:38 2010] [warn] EmbperlDebug: create_dir_config Embperl (0xbogus %p [3732/0]\n
  [Sun Apr 18 16:27:38 2010] [warn] EmbperlDebug: create_dir_config Embperl (0xbogus %p [3732/0]\n
  [Sun Apr 18 16:27:38 2010] [warn] EmbperlDebug: Set APPNAME (type=char *;STR) = n1\n
  [Sun Apr 18 16:27:38 2010] [warn] EmbperlDebug: Set OBJECT_BASE (type=char *;STR) = base.bhtml\n

But when accessing a page I get the error:

  [Sun Apr 18 16:29:04 2010] [error] [3664]ERR:  404: : Not found '_base.epl', searched: 
  [Sun Apr 18 16:29:04 2010] [error] Embperl::Object base _base.epl not found. Searched '/Users/marcus/web/test /Users/marcus/web' and ''

However make test TESTARGS="-h" runs successfully. I'm out of ideas.

Thanks,
Marcus


The New Busy is not the too busy. Combine all your e-mail accounts with Hotmail. Get busy.



RE: Embperl BETA 2.4.0 is available

Posted by Marcus Doemling <md...@hotmail.com>.
Ok I found something and this is strange.

If I replace

  
LoadModule embperl_module libexec/apache2/Embperl.so

with

 
 LoadModule embperl_module 
"/Users/marcus/src/Embperl-2.4.0_2/blib/arch/auto/Embperl/Embperl.bundle"

then
 the embperl configuration settings are honored.

To dig into this
 I tried every variation related to the Embperl.bundle file that I could
 come up with. First of all the two files Embperl.so and Embperl.bundle 
are identical. I made the modes, ownership for file and parent directory
 identical but the first LoadModule directive above still causes the 
embperl configurations not to be honored. I tried using an absolute 
path, I also tried changing the file extension in the second LoadModule 
directive above from .bundle to .so and also this causes the problem. 
Also the file location into which "make install" is moving it (/Library/Perl/5.10.0/darwin-thread-multi-2level/auto/Embperl/Embperl.bundle)
 does not work.

In summary if I use a relocated file the problem 
will occur.

Thanks,
Marcus 		 	   		  
_________________________________________________________________
Hotmail is redefining busy with tools for the New Busy. Get more from your inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_2

RE: Embperl BETA 2.4.0 is available

Posted by Gerald Richter - ECOS <ge...@ecos.de>.
Hi,

 

you only need to use "Embperl_UseEnv on" if you need to set the configuration via the environment (i.e. when you use SetEnv or PerlSetEnv).

 

As long as you use mod_perl there is no need for SetEnv and all configuration directives are Apache directives, regardless in which section they are

 

Gerald

 

 

From: Brett @Google [mailto:brett.maxfield@gmail.com] 
Sent: Monday, April 19, 2010 7:27 AM
To: Marcus Doemling
Cc: embperl@perl.apache.org
Subject: Re: Embperl BETA 2.4.0 is available



 

Have you tried adding "Embperl_UseEnv on" before the <Files> section ?

Personally i found it confusing wether i should prefix PerlSetEnv or not. I guess some of the EMPERL_* options are apache directives, and some are not. But I presume that the ones inside a section which has "Perlhandler Embperl::Object" are treated differently to those outside of such a section. Perhaps others can clarify ?

Cheers
Brett

On Mon, Apr 19, 2010 at 9:34 AM, Marcus Doemling <md...@hotmail.com> wrote:

I think there is another issue on the Mac. It seems I cannot get it to recognize the configuration parameters in httpd.conf on the Mac. My conf is as follows:

  LoadModule perl_module libexec/apache2/mod_perl.so
  LoadModule embperl_module libexec/apache2/Embperl.so

  PerlModule Embperl
  AddType text/html .bhtml

  <Files *.bhtml>
        Embperl_AppName n1
        Embperl_Object_Base base.bhtml

        SetHandler perl-script
        PerlHandler Embperl::Object
        Options ExecCGI
  </Files>

It will not recognize Embperl_Object_Base or any other embperl setting. I have tried is also with the environmental variables using Embperl_UseEnv. When starting httpd with the -D EMBPERL_APDEBUG options I get this:

  [Sun Apr 18 16:27:38 2010] [warn] EmbperlDebug: create_server_config (0xbogus %p [3732/0]\n
  [Sun Apr 18 16:27:38 2010] [warn] EmbperlDebug: create_dir_config Embperl (0xbogus %p [3732/0]\n
  [Sun Apr 18 16:27:38 2010] [warn] EmbperlDebug: create_dir_config Embperl (0xbogus %p [3732/0]\n
  [Sun Apr 18 16:27:38 2010] [warn] EmbperlDebug: Set APPNAME (type=char *;STR) = n1\n
  [Sun Apr 18 16:27:38 2010] [warn] EmbperlDebug: Set OBJECT_BASE (type=char *;STR) = base.bhtml\n

But when accessing a page I get the error:

  [Sun Apr 18 16:29:04 2010] [error] [3664]ERR:  404: : Not found '_base.epl', searched: 
  [Sun Apr 18 16:29:04 2010] [error] Embperl::Object base _base.epl not found. Searched '/Users/marcus/web/test /Users/marcus/web' and ''

However make test TESTARGS="-h" runs successfully. I'm out of ideas.

Thanks,
Marcus

 


The New Busy is not the too busy. Combine all your e-mail accounts with Hotmail. Get busy.




 



Re: Embperl BETA 2.4.0 is available

Posted by "Brett @Google" <br...@gmail.com>.
Have you tried adding "Embperl_UseEnv on" before the <Files> section ?

Personally i found it confusing wether i should prefix PerlSetEnv or not. I
guess some of the EMPERL_* options are apache directives, and some are not.
But I presume that the ones inside a section which has "Perlhandler
Embperl::Object" are treated differently to those outside of such a section.
Perhaps others can clarify ?

Cheers
Brett

On Mon, Apr 19, 2010 at 9:34 AM, Marcus Doemling <md...@hotmail.com> wrote:

>  I think there is another issue on the Mac. It seems I cannot get it to
> recognize the configuration parameters in httpd.conf on the Mac. My conf is
> as follows:
>
>   LoadModule perl_module libexec/apache2/mod_perl.so
>   LoadModule embperl_module libexec/apache2/Embperl.so
>
>   PerlModule Embperl
>   AddType text/html .bhtml
>
>   <Files *.bhtml>
>         Embperl_AppName n1
>         Embperl_Object_Base base.bhtml
>
>         SetHandler perl-script
>         PerlHandler Embperl::Object
>         Options ExecCGI
>   </Files>
>
> It will not recognize Embperl_Object_Base or any other embperl setting. I
> have tried is also with the environmental variables using Embperl_UseEnv.
> When starting httpd with the -D EMBPERL_APDEBUG options I get this:
>
>   [Sun Apr 18 16:27:38 2010] [warn] EmbperlDebug: create_server_config
> (0xbogus %p [3732/0]\n
>   [Sun Apr 18 16:27:38 2010] [warn] EmbperlDebug: create_dir_config Embperl
> (0xbogus %p [3732/0]\n
>   [Sun Apr 18 16:27:38 2010] [warn] EmbperlDebug: create_dir_config Embperl
> (0xbogus %p [3732/0]\n
>   [Sun Apr 18 16:27:38 2010] [warn] EmbperlDebug: Set APPNAME (type=char
> *;STR) = n1\n
>   [Sun Apr 18 16:27:38 2010] [warn] EmbperlDebug: Set OBJECT_BASE
> (type=char *;STR) = base.bhtml\n
>
> But when accessing a page I get the error:
>
>   [Sun Apr 18 16:29:04 2010] [error] [3664]ERR:  404: : Not found
> '_base.epl', searched:
>   [Sun Apr 18 16:29:04 2010] [error] Embperl::Object base _base.epl not
> found. Searched '/Users/marcus/web/test /Users/marcus/web' and ''
>
> However make test TESTARGS="-h" runs successfully. I'm out of ideas.
>
> Thanks,
> Marcus
>
> ------------------------------
> The New Busy is not the too busy. Combine all your e-mail accounts with
> Hotmail. Get busy.<http://www.windowslive.com/campaign/thenewbusy?tile=multiaccount&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4>
>

RE: Embperl BETA 2.4.0 is available

Posted by Marcus Doemling <md...@hotmail.com>.
I think there is another issue on the Mac. It seems I cannot get it to recognize the configuration parameters in httpd.conf on the Mac. My conf is as follows:

  LoadModule perl_module libexec/apache2/mod_perl.so
  LoadModule embperl_module libexec/apache2/Embperl.so

  PerlModule Embperl
  AddType text/html .bhtml

  <Files *.bhtml>
        Embperl_AppName n1
        Embperl_Object_Base base.bhtml

        SetHandler perl-script
        PerlHandler Embperl::Object
        Options ExecCGI
  </Files>

It will not recognize Embperl_Object_Base or any other embperl setting. I have tried is also with the environmental variables using Embperl_UseEnv. When starting httpd with the -D EMBPERL_APDEBUG options I get this:

  [Sun Apr 18 16:27:38 2010] [warn] EmbperlDebug: create_server_config (0xbogus %p [3732/0]\n
  [Sun Apr 18 16:27:38 2010] [warn] EmbperlDebug: create_dir_config Embperl (0xbogus %p [3732/0]\n
  [Sun Apr 18 16:27:38 2010] [warn] EmbperlDebug: create_dir_config Embperl (0xbogus %p [3732/0]\n
  [Sun Apr 18 16:27:38 2010] [warn] EmbperlDebug: Set APPNAME (type=char *;STR) = n1\n
  [Sun Apr 18 16:27:38 2010] [warn] EmbperlDebug: Set OBJECT_BASE (type=char *;STR) = base.bhtml\n

But when accessing a page I get the error:

  [Sun Apr 18 16:29:04 2010] [error] [3664]ERR:  404: : Not found '_base.epl', searched: 
  [Sun Apr 18 16:29:04 2010] [error] Embperl::Object base _base.epl not found. Searched '/Users/marcus/web/test /Users/marcus/web' and ''

However make test TESTARGS="-h" runs successfully. I'm out of ideas.

Thanks,
Marcus
 		 	   		  
_________________________________________________________________
The New Busy is not the too busy. Combine all your e-mail accounts with Hotmail.
http://www.windowslive.com/campaign/thenewbusy?tile=multiaccount&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4

RE: Embperl BETA 2.4.0 is available

Posted by Marcus Doemling <md...@hotmail.com>.
Yes, the tests succeed. "All tests have been passed successfully!".

Thanks,
Marcus

Subject: RE: Embperl BETA 2.4.0 is available
From: gerald.richter@ecos.de
To: md7852@hotmail.com; embperl@perl.apache.org
Date: Wed, 14 Apr 2010 05:46:39 +0200




















Hi,

 

thanks for the feedback.

 

I guess the rtfmeta.asc error is related to the different line
endings on the mac.

 

The other thing, could you please try the following:

 

rm /usr/libexec/apache2/Embperl.so

 

then change Embperl.so to Embperl.bundle in
test/conf/httpd.conf.src and test/conf/httpd.min.conf.src

 

make test TESTARGS=”-h”

 

Does this succeed?

 

Gerald

 

 







From: Marcus Doemling [mailto:md7852@hotmail.com]


Sent: Tuesday, April 13, 2010 8:23 PM

To: embperl@perl.apache.org

Subject: RE: Embperl BETA 2.4.0 is available





 

I installed this on my iMac (Snow Leopard
10.6.3). Needed a minor fix to make it work. Here's some info:



make test TESTARGS="-i" gives the following errors:



#241 rtf/rtfmeta.asc...       



[-1][2455]ERR:  24:  Error in Perl code: syntax error at
/Users/marcus/Src/Embperl-2.4.0_2/test/html/rtf/rtfmeta.asc line 5, near
"]\"

[-2]syntax error at /Users/marcus/Src/Embperl-2.4.0_2/test/html/rtf/rtfmeta.asc
line 17, near "#line 16
"/Users/marcus/Src/Embperl-2.4.0_2/test/html/rtf/rtfmeta.asc"

[-3]}

[-4] _ep_cp"

[-5]syntax error at /Users/marcus/Src/Embperl-2.4.0_2/test/html/rtf/rtfmeta.asc
line 20, at EOF

[-6]syntax error at /Users/marcus/Src/Embperl-2.4.0_2/test/html/rtf/rtfmeta.asc
line 27, near ";

[-7]}"



...



Performing httpd syntax check 1 ...  ERROR: Syntax OK not found

Got httpd: Syntax error on line 33 of
/Users/marcus/src/Embperl-2.4.0_2/test/conf/httpd.min.conf: Cannot load
/Users/marcus/src/Embperl-2.4.0_2/blib/arch/auto/Embperl/Embperl.so into
server: dlopen(/Users/marcus/src/Embperl-2.4.0_2/blib/arch/auto/Embperl/Embperl.so,
10): image not found



---



The "image not found" is due to the library being called
Embperl.bundle instead of Embperl.so. After copying the library with the
following command all seems to work fine:



> sudo cp /Library/Perl/5.10.0/darwin-thread-multi-2level/auto/Embperl/Embperl.bundle
/usr/libexec/apache2/Embperl.so



Hope this info is helpful.







Hotmail
has tools for the New Busy. Search, chat and e-mail from your inbox. Learn more.



 		 	   		  
_________________________________________________________________
The New Busy is not the old busy. Search, chat and e-mail from your inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_3

RE: Embperl BETA 2.4.0 is available

Posted by Gerald Richter - ECOS <ge...@ecos.de>.
Hi,

 

thanks for the feedback.

 

I guess the rtfmeta.asc error is related to the different line endings on the mac.

 

The other thing, could you please try the following:

 

rm /usr/libexec/apache2/Embperl.so

 

then change Embperl.so to Embperl.bundle in test/conf/httpd.conf.src and test/conf/httpd.min.conf.src

 

make test TESTARGS=”-h”

 

Does this succeed?

 

Gerald

 

 

From: Marcus Doemling [mailto:md7852@hotmail.com] 
Sent: Tuesday, April 13, 2010 8:23 PM
To: embperl@perl.apache.org
Subject: RE: Embperl BETA 2.4.0 is available



 

I installed this on my iMac (Snow Leopard 10.6.3). Needed a minor fix to make it work. Here's some info:

make test TESTARGS="-i" gives the following errors:

#241 rtf/rtfmeta.asc...       

[-1][2455]ERR:  24:  Error in Perl code: syntax error at /Users/marcus/Src/Embperl-2.4.0_2/test/html/rtf/rtfmeta.asc line 5, near "]\"
[-2]syntax error at /Users/marcus/Src/Embperl-2.4.0_2/test/html/rtf/rtfmeta.asc line 17, near "#line 16 "/Users/marcus/Src/Embperl-2.4.0_2/test/html/rtf/rtfmeta.asc"
[-3]}
[-4] _ep_cp"
[-5]syntax error at /Users/marcus/Src/Embperl-2.4.0_2/test/html/rtf/rtfmeta.asc line 20, at EOF
[-6]syntax error at /Users/marcus/Src/Embperl-2.4.0_2/test/html/rtf/rtfmeta.asc line 27, near ";
[-7]}"

...

Performing httpd syntax check 1 ...  ERROR: Syntax OK not found
Got httpd: Syntax error on line 33 of /Users/marcus/src/Embperl-2.4.0_2/test/conf/httpd.min.conf: Cannot load /Users/marcus/src/Embperl-2.4.0_2/blib/arch/auto/Embperl/Embperl.so into server: dlopen(/Users/marcus/src/Embperl-2.4.0_2/blib/arch/auto/Embperl/Embperl.so, 10): image not found

---

The "image not found" is due to the library being called Embperl.bundle instead of Embperl.so. After copying the library with the following command all seems to work fine:

> sudo cp /Library/Perl/5.10.0/darwin-thread-multi-2level/auto/Embperl/Embperl.bundle /usr/libexec/apache2/Embperl.so

Hope this info is helpful.


Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox. Learn more.