Help required

2002-04-16 Thread Murugan K

Hi
  I am new to mod_perl and  i am  developing some samples using
mod_perl . 
While  developing sample , i do not want to restart the server 
frequently with respect to my changes.

So i used the$r-header_out(Pragma, no-cache);   statement  not
to cache the results. i seems to be not working for me . 

Any suggestions and how to include the directives in the server side 
not to cache  the results.

Thanks in advance 

With Regards
K.Murugan



Re: Help required

2002-04-16 Thread Per Einar Ellefsen

At 10:41 16.04.2002, Murugan K wrote:
Hi
   I am new to mod_perl and  i am  developing some samples using
mod_perl .
While  developing sample , i do not want to restart the server
frequently with respect to my changes.

So i used the$r-header_out(Pragma, no-cache);   statement  not
to cache the results. i seems to be not working for me .

Any suggestions and how to include the directives in the server side
not to cache  the results.

Your problem isn't that the browser caches the results, but that mod_perl 
caches your code. I suppose you are using Apache handlers, so you should 
look into some module reloading mechanism such as Apache::StatINC. See the 
Guide ( http://perl.apache.org/guide/ ): 
http://thingy.kcilink.com/modperlguide/porting/Using_Apache_StatINC_for_the_De.html



-- 
Per Einar Ellefsen
[EMAIL PROTECTED]





Re: Help required

2002-04-16 Thread Issac Goldstand

Murugan K wrote:

Hi
  I am new to mod_perl and  i am  developing some samples using
mod_perl . 
While  developing sample , i do not want to restart the server 
frequently with respect to my changes.

So i used the$r-header_out(Pragma, no-cache);   statement  not
to cache the results. i seems to be not working for me . 

Any suggestions and how to include the directives in the server side 
not to cache  the results.

Thanks in advance 

With Regards
K.Murugan

$r-no_cache(1);
  Issac






Re: Help required

2002-04-16 Thread Issac Goldstand

Issac Goldstand wrote:

 Murugan K wrote:

 Hi I am new to mod_perl and  i am  developing some samples using
 mod_perl . While  developing sample , i do not want to restart the 
 server frequently with respect to my changes.

 So i used the$r-header_out(Pragma, no-cache);   statement  not
 to cache the results. i seems to be not working for me .
 Any suggestions and how to include the directives in the server side 
 not to cache  the results.

 Thanks in advance
 With Regards
 K.Murugan

 $r-no_cache(1);
  Issac


Actually, Per is correct.  I just saw you trying to tell the browser not 
to caache and assumed you wanted to know how to do that.  See Per's 
answer above.  Sorry.

  Issac





Re: Help required on compile

2001-07-28 Thread Randy Kobes

On Fri, 27 Jul 2001, Murugan K wrote:

 Hai
I  am not using Visual VC++ IDE for compiling. I am using  command
 line only.
 After building  , i am not getting  src/modules/win32/Release/  realease
 directory at all.
 I tried with previos version od mod_perl also.  Same result.

There must have been some error messages at the 'nmake' stage that
indicated why 'msdev' didn't create mod_perl.so in this
directory. Can you tell from the output of 'nmake' what
failed? Also, can you build other modules that use a C
compiler, like DBI, successfully? Did you run 'vcvars32.bat'
(which sets up needed environment variables) before building?

best regards,
randy




Re: Help required on compile

2001-07-27 Thread Murugan K

Hai
 Great , Now it is building with your added MM_Win32.pm . 
Nmake install also going through without breaking . But problem is , as per readme , i 
have to copy the mod_perl.so  or mod_perl.dll
to  apache/module  directory and try the nmake test.

But i am not able to find the mod_perl.so or mod_perl.dll after building .

Thanks for your  help .

Regards
K.Murugan






 




 Randy Kobes [EMAIL PROTECTED] 07/26/01 07:00PM 

- Original Message -
From: Murugan K [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc:  [EMAIL PROTECTED]
Sent: Thursday, July 26, 2001 7:34 AM
Subject: Re: Help required on compile


 Hai

   I added the'PERL = $^X,' command the in the  makefile.pl .  But
it is not throwing any perl path error.  it is creating the makefile.

 But when you try nmake , it is throwing the following error
 makefile(889)cannot have : and ::dependents for same  targets.


Hi,
 I didn't copy this to the mod_perl list, as I've attached
my ExtUtils\MM_Unix.pm and ExtUtils\MM_Win32.pm files
to try  Does using these work?

best regards,
randy kobes





Re: Help required on compile

2001-07-27 Thread Randy Kobes

On Fri, 27 Jul 2001, Murugan K wrote:

 Hai
  Great , Now it is building with your added MM_Win32.pm .
 Nmake install also going through without breaking . But problem is ,
 as per readme , i have to copy the mod_perl.so  or mod_perl.dll
 to  apache/module  directory and try the nmake test.

 But i am not able to find the mod_perl.so or mod_perl.dll after building .

 Thanks for your  help .

 Regards
 K.Murugan


How did you build things? INSTALL.win32 suggests 2 ways - one through
use of Visusal Studio, and the other through use of something like
 perl Makefile.PL APACHE_SRC=../apache_1.3.20 INSTALL_DLL=/Apache/modules
where the paths have to be adjusted to suit your system. Either way,
mod_perl.so should be built in src/modules/win32/Release/ within
the mod_perl source tree.

Note also that if you built your own perl that testing mod_perl
requires some extra packages, like libwww-perl and libwin32.

best regards,
randy kobes




Re: Help required on compile

2001-07-27 Thread Murugan K

Hai
   I  am not using Visual VC++ IDE for compiling. I am using  command line only.
After building  , i am not getting  src/modules/win32/Release/  realease directory at 
all.
I tried with previos version od mod_perl also.  Same result.

Can you please reply.


Regards
K.Murugan


 Randy Kobes [EMAIL PROTECTED] 07/27/01 06:32PM 
On Fri, 27 Jul 2001, Murugan K wrote:

 Hai
  Great , Now it is building with your added MM_Win32.pm .
 Nmake install also going through without breaking . But problem is ,
 as per readme , i have to copy the mod_perl.so  or mod_perl.dll
 to  apache/module  directory and try the nmake test.

 But i am not able to find the mod_perl.so or mod_perl.dll after building .

 Thanks for your  help .

 Regards
 K.Murugan


How did you build things? INSTALL.win32 suggests 2 ways - one through
use of Visusal Studio, and the other through use of something like
 perl Makefile.PL APACHE_SRC=../apache_1.3.20 INSTALL_DLL=/Apache/modules
where the paths have to be adjusted to suit your system. Either way,
mod_perl.so should be built in src/modules/win32/Release/ within
the mod_perl source tree.

Note also that if you built your own perl that testing mod_perl
requires some extra packages, like libwww-perl and libwin32.

best regards,
randy kobes





Re: Help required on compile

2001-07-26 Thread Sisyphus


- Original Message -
From: Randy Kobes [EMAIL PROTECTED]
To: Murugan K [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, July 26, 2001 3:36 PM
Subject: Re: Help required on compile


 On Wed, 25 Jul 2001, Murugan K wrote:

  Hai
  I am trying to build Mod-perl_1.26  on Windows NT.  For that i
  installed perl5.6.1 and apache 1.3.19 on my windows machine ( C
drive).
  After that  (as per read me ) , i have to run  the makefile.pl .
  But that is giving the following error.
 
  Perl makefile.pl
 
  Checking if your kit is complete...
  Looks good
  Unable to find a perl 5 (by these names:
  C:\Perl\5.6.1\bin\MSWin32-x86\perl.exe
  miniperl perl perl5 perl5.6.1, in these dirs:
 [ ... ]


I tried posting this earlier.

The problem can usually be overcome by including:
 'PERL = $^X,'
 in the 'WriteMakefile()' section of 'Makefile.pl'.

Give that a try.

Cheers,
Rob




Re: Help required on compile

2001-07-26 Thread Murugan K

Hai

  I added the'PERL = $^X,' command the in the  makefile.pl .  But  it is not 
throwing any perl path error.  it is creating the makefile.

But when you try nmake , it is throwing the following error
makefile(889)cannot have : and ::dependents for same  targets.


#
# --- MakeMaker staticmake section:

# --- MakeMaker makeaperl section ---
MAP_TARGET= perl
FULLPERL  = c:\perl\5.6.1\bin\MSWin32-x86\perl.exe

$(MAP_TARGET) :: static $(MAKE_APERL_FILE)
$(MAKE) -f $(MAKE_APERL_FILE) $@
#

 Sisyphus [EMAIL PROTECTED] 07/26/01 05:42PM 

- Original Message -
From: Randy Kobes [EMAIL PROTECTED]
To: Murugan K [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, July 26, 2001 3:36 PM
Subject: Re: Help required on compile


 On Wed, 25 Jul 2001, Murugan K wrote:

  Hai
  I am trying to build Mod-perl_1.26  on Windows NT.  For that i
  installed perl5.6.1 and apache 1.3.19 on my windows machine ( C
drive).
  After that  (as per read me ) , i have to run  the makefile.pl .
  But that is giving the following error.
 
  Perl makefile.pl
 
  Checking if your kit is complete...
  Looks good
  Unable to find a perl 5 (by these names:
  C:\Perl\5.6.1\bin\MSWin32-x86\perl.exe
  miniperl perl perl5 perl5.6.1, in these dirs:
 [ ... ]


I tried posting this earlier.

The problem can usually be overcome by including:
 'PERL = $^X,'
 in the 'WriteMakefile()' section of 'Makefile.pl'.

Give that a try.

Cheers,
Rob





Re: Help required on compile

2001-07-26 Thread Sisyphus


- Original Message -
From: Murugan K [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc:  [EMAIL PROTECTED]
Sent: Thursday, July 26, 2001 10:34 PM
Subject: Re: Help required on compile


Hai

  I added the'PERL = $^X,' command the in the  makefile.pl .  But  it
is not throwing any perl path error.  it is creating the makefile.

-

Yes - it creates the makefile, but the makefile that it creates contains
errors. I doubt that you'll be able to build the module until you get rid of
the 'Unable to find...' error. I've run across this problem a few times, and
the remedy I posted has (until now) always worked.
Still, if it's not working for you, then there must be some other cause.
 You *did* put it inside the 'WriteMakefile()' section ?).

I did, at one stage, look a little more closely at this problem and came up
with the following:

1) In 'MakeMaker.pm'at about line 192, change:
HTMLLIBPODS HTMLSCRIPTPOD IMPORTS
to
HTMLLIBPODS HTMLSCRIPTPODS IMPORTS

2) In 'Manifest.pm'at about line 260, change:
   return cp if $Is_VMS;
to
   return cp if $Is_VMS or ($^O eq 'MSWin32' and Win32::IsWin95());

I haven't verified to my satisfaction that these changes always fix the
situation, but when I made those changes to a 'perl' that had the problem
you describe, I found the problem went away, and I no longer had to amend
the 'Makefile.pl' in the way already stated.

I would expect that if you can't resolve the problem with the 'Makefile.pl'
amendment, then making those changes won't help either. (Or you may find
that those 'changes' are already in place.) But it's worth a try.

Cheers,
Rob




Help required on compile

2001-07-25 Thread Murugan K

Hai
I am trying to build Mod-perl_1.26  on Windows NT.  For that i  installed 
perl5.6.1 and apache 1.3.19 on my windows machine ( C drive).
After that  (as per read me ) , i have to run  the makefile.pl . But that is giving 
the following error.

Perl makefile.pl

Checking if your kit is complete...
Looks good
Unable to find a perl 5 (by these names: C:\Perl\5.6.1\bin\MSWin32-x86\perl.exe 
miniperl perl perl5 perl5.6.1, in these dirs:
 D:\Program Files\DevStudio\SharedIDE\BIN
 D:\Program Files\DevStudio\VC\BIN D:\Program Files\DevStudio\VC\BIN\WINNT 
c:\perl\5.6.1\bin\mswin32-x86 E:\DevStudio\VC\BIN E:\DevStudio\VC\BIN\WINNT
 c:\perl\5.6.1\bin\MSWin32-x86)

Writing Makefile for Apache
Writing Makefile for Apache::Connection
Writing Makefile for Apache::Constants
Writing Makefile for Apache::File
Writing Makefile for Apache::Leak
Writing Makefile for Apache::Log
Writing Makefile for Apache::ModuleConfig
Writing Makefile for Apache::PerlRunXS
Writing Makefile for Apache::Server
Writing Makefile for Apache::Symbol
Writing Makefile for Apache::Table
Writing Makefile for Apache::URI
Writing Makefile for Apache::Util
Writing Makefile for mod_perl


After that , if i try the nmake install - it is giving the following error

cp lib/Apache/Registry.pm blib\lib\Apache\Registry.pm
cp lib/Apache/SizeLimit.pm blib\lib\Apache\SizeLimit.pm
cp lib/Apache/Resource.pm blib\lib\Apache\Resource.pm
cp lib/Apache/PerlSections.pm blib\lib\Apache\PerlSections.pm
cp lib/Apache/RegistryNG.pm blib\lib\Apache\RegistryNG.pm
cp lib/Apache/PerlRun.pm blib\lib\Apache\PerlRun.pm
cp lib/Apache/Debug.pm blib\lib\Apache\Debug.pm
cp lib/mod_perl_hooks.pm.PL blib\lib\mod_perl_hooks.pm.PL
cp lib/Apache/MyConfig.pm blib\lib\Apache\MyConfig.pm
cp mod_perl_tuning.pod blib\lib\mod_perl_tuning.pod
cp lib/Apache/ExtUtils.pm blib\lib\Apache\ExtUtils.pm
cp lib/Apache/httpd_conf.pm blib\lib\Apache\httpd_conf.pm
cp lib/Apache/SIG.pm blib\lib\Apache\SIG.pm
cp mod_perl_traps.pod blib\lib\mod_perl_traps.pod
cp lib/Apache/src.pm blib\lib\Apache\src.pm
cp lib/Apache/Options.pm blib\lib\Apache\Options.pm
cp lib/mod_perl.pm blib\lib\mod_perl.pm
cp lib/mod_perl_hooks.pm blib\lib\mod_perl_hooks.pm
cp mod_perl_cvs.pod blib\lib\mod_perl_cvs.pod
cp cgi_to_mod_perl.pod blib\lib\cgi_to_mod_perl.pod
cp lib/Apache/Symdump.pm blib\lib\Apache\Symdump.pm
cp lib/Apache/Opcode.pm blib\lib\Apache\Opcode.pm
cp lib/Apache/Apache.pm blib\lib\Apache\Apache.pm
cp lib/Apache/Status.pm blib\lib\Apache\Status.pm
cp lib/Apache/RedirectLogFix.pm blib\lib\Apache\RedirectLogFix.pm
cp lib/Apache/Include.pm blib\lib\Apache\Include.pm
cp mod_perl_method_handlers.pod blib\lib\mod_perl_method_handlers.pod
cp lib/Apache/RegistryBB.pm blib\lib\Apache\RegistryBB.pm
cp lib/Apache/StatINC.pm blib\lib\Apache\StatINC.pm
cp lib/Apache/RegistryLoader.pm blib\lib\Apache\RegistryLoader.pm
cp lib/Apache/test.pm blib\lib\Apache\test.pm
cp lib/Apache/FakeRequest.pm blib\lib\Apache\FakeRequest.pm
cp lib/Apache/Constants/Exports.pm blib\lib\Apache\Constants\Exports.pm
cp mod_perl.pod blib\lib\mod_perl.pod
cp lib/Bundle/Apache.pm blib\lib\Bundle\Apache.pm

The name specified is not recognized as an
internal or external command, operable program or batch file.
NMAKE : fatal error U1077: '..\0' : return code '0x1'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.

Note: 
   I am not using active perl for this purpose. i downloaded from the CPAN , built and 
installed.  Here by attached the makefile created by makefile.pl for your reference

Thanks in advance

Expecting your help

Regards
K.Murugan



 Makefile


Re: Help required on compile

2001-07-25 Thread Randy Kobes

On Wed, 25 Jul 2001, Murugan K wrote:

 Hai
 I am trying to build Mod-perl_1.26  on Windows NT.  For that i
 installed perl5.6.1 and apache 1.3.19 on my windows machine ( C drive).
 After that  (as per read me ) , i have to run  the makefile.pl .
 But that is giving the following error.

 Perl makefile.pl

 Checking if your kit is complete...
 Looks good
 Unable to find a perl 5 (by these names:
 C:\Perl\5.6.1\bin\MSWin32-x86\perl.exe
 miniperl perl perl5 perl5.6.1, in these dirs:
[ ... ]

Assuming Perl is in your PATH, do you have the same problem
building other modules? If not, try building again
within a clean source tree. If this is a general problem, try
editing your ExtUtils\MM_Win32.pm file - search for the string
Unable to find. It's probably the backticks in the vicinity
that's causing this.

best regards,
randy kobes