Re: HELP - Problem installing modperl

2003-02-23 Thread Stas Bekman
Pablo Jejcic wrote:
Here is my 'perl -V'.

Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration:
[...]
  Compiler:
cc='cc', ccflags ='-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
[...]
cccdlflags='-KPIC', lddlflags='-G'
Still, either you aren't using the same compiler as you've used to build perl 
or the build has a wrong Config.pm.

I've read a few threads on this issue via google and they all say the same 
thing: You must be using the native Solaris cc to build mod_perl (which 
doesn't support -KPIC). Your perl must have been built with gcc.

Try to rebuild mod_perl, with

CC=gcc perl Makefile ...

__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


RE: HELP - Problem installing modperl

2003-02-21 Thread Pablo Jejcic
 Message-
From: Stas Bekman [mailto:[EMAIL PROTECTED]] 
Sent: 20 February 2003 23:09
To: Pablo Jejcic
Cc: [EMAIL PROTECTED]
Subject: Re: HELP - Problem installing modperl


Pablo Jejcic wrote:
  I rebuild PERL and when I use perl -V I can see -KPIC but when I try
  to make mod_perl I receive the same error
  
  Any other thoughts???

How is it possible that the same compiler accepts an option for building one

program, but not the other? Can you please post your 'perl -V'?

__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com




RE: HELP - Problem installing modperl

2003-02-20 Thread Pablo Jejcic
 I rebuild PERL and when I use perl -V I can see -KPIC but when I try 
 to make mod_perl I receive the same error
 
 Any other thoughts???
 
 Thanks in advance and Thank you very much for your time.-
 
 Kind Regards.
   _
 
 Pablo Jejcic
 Smartweb Senior system Administrator
 School of Computing - Robert Gordon University 
 [EMAIL PROTECTED] T:44-(0)1224-262797
 F:44-(0)1224-262790 
   _  
 
 
 ``The nice thing about standards is that there are so many to choose 
 from. And if you really don't like all the standards you just have to 
 wait another year until the one arises you are looking for.'' A. 
 Tanenbaum, ``Introduction to Computer Networks'
 
   _
 
 
 
 -Original Message-
 From: Stas Bekman [mailto:[EMAIL PROTECTED]]
 Sent: 18 February 2003 23:02
 To: Pablo Jejcic
 Cc: [EMAIL PROTECTED]
 Subject: Re: HELP - Problem installing modperl
 
 
 Pablo Jejcic wrote:
 
Hello guys,
I have just installed PERL/Apache and mod_perl, but this last 
one gave me an error when I try to compile. Could anyone help me?
 
Thi is the error:
 
bash-2.05# make  make test
cd src/modules/perl  make -f Makefile.modperl
make[1]: Entering directory 
`/projects/IRIG/mod_perl-1.99_08/src/modules/perl'
cc -I/projects/IRIG/mod_perl-1.99_08/src/modules/perl
-I/projects/IRIG/mod_perl-1.99_08/xs 
-I/projects/IRIG/apache2/prefork/include 
-I/usr/perl5/5.6.1/lib/sun4-solaris-64int/CORE -DMOD_PERL -xO3 -xdepend 
-KPIC \
-c mod_perl.c  mv mod_perl.o mod_perl.lo
cc: unrecognized option `-KPIC'
 
 
 mod_perl reuses the compiler flags perl was built with. It picks them 
 up from Config.pm. Do you see -KPIC in the output of 'perl -V'? You 
 must use exactly
 
 the same compiler that you've built your perl with and it should work.
 
 
cc: language depend not recognized
cc: mod_perl.c: linker input file unused because linking not done
mv: cannot access mod_perl.o
make[1]: *** [mod_perl.lo] Error 2
make[1]: Leaving directory 
`/projects/IRIG/mod_perl-1.99_08/src/modules/perl'
make: *** [modperl_lib] Error 2
bash-2.05# c
bash: c: command not found
bash-2.05# cc
cc: no input files
And I'm running:
 
Solaris 9
PERL 5.6.1
Apache 2.0.4
mod_perl 1.99_08
 
Thanks in advance!!
 
Pablo.-
 
Kind Regards.
--
--
Pablo Jejcic
Smartweb Senior system Administrator
School of Computing - Robert Gordon University 
[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]
*T*:44-(0)1224-262797
*F*:44-(0)1224-262790


``The nice thing about standards is that there are so many to choose 
from. And if you really don't like all the standards you just have to 
wait another year until the one arises you are looking for.'' A. 
Tanenbaum, ``Introduction to Computer Networks'

--
--

 
 
 
 


-- 


__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com




Re: HELP - Problem installing modperl

2003-02-20 Thread Stas Bekman
Pablo Jejcic wrote:

 I rebuild PERL and when I use perl -V I can see -KPIC but when I try 
 to make mod_perl I receive the same error
 
 Any other thoughts???

How is it possible that the same compiler accepts an option for building one 
program, but not the other? Can you please post your 'perl -V'?

__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com



HELP - Problem installing modperl

2003-02-18 Thread Pablo Jejcic
Title: Message




Hello 
guys,
 
I have just installed PERL/Apache and mod_perl, but this 
last one gave me an error when I try to compile. Could anyone help 
me?

Thi is the 
error:

bash-2.05# make 
 make testcd "src/modules/perl"  make -f 
Makefile.modperlmake[1]: Entering directory 
`/projects/IRIG/mod_perl-1.99_08/src/modules/perl'cc 
-I/projects/IRIG/mod_perl-1.99_08/src/modules/perl 
-I/projects/IRIG/mod_perl-1.99_08/xs -I/projects/IRIG/apache2/prefork/include 
-I/usr/perl5/5.6.1/lib/sun4-solaris-64int/CORE -DMOD_PERL -xO3 -xdepend -KPIC 
\-c mod_perl.c  mv mod_perl.o mod_perl.locc: unrecognized 
option `-KPIC'cc: language depend not recognizedcc: mod_perl.c: linker 
input file unused because linking not donemv: cannot access 
mod_perl.omake[1]: *** [mod_perl.lo] Error 2make[1]: Leaving directory 
`/projects/IRIG/mod_perl-1.99_08/src/modules/perl'make: *** [modperl_lib] 
Error 2bash-2.05# cbash: c: command not foundbash-2.05# : no 
input files
And I'm 
running:

Solaris 
9
PERL 
5.6.1
Apache 
2.0.4
mod_perl 
1.99_08

Thanks in 
advance!!

Pablo.-

Kind Regards.



Pablo Jejcic
Smartweb Senior system 
Administrator
School of Computing - Robert 
Gordon University
[EMAIL PROTECTED]
T:44-(0)1224-262797
F:44-(0)1224-262790 


``The nice thing about standards is that there are so many to 
choose from. And if you really don't like all the standards you just have to 
wait another year until the one arises you are looking for.'' A. Tanenbaum, 
``Introduction to Computer Networks'






Re: HELP - Problem installing modperl

2003-02-18 Thread Stas Bekman
Pablo Jejcic wrote:

Hello guys,
I have just installed PERL/Apache and mod_perl, but this last 
one gave me an error when I try to compile. Could anyone help me?
 
Thi is the error:
 
bash-2.05# make  make test
cd src/modules/perl  make -f Makefile.modperl
make[1]: Entering directory 
`/projects/IRIG/mod_perl-1.99_08/src/modules/perl'
cc -I/projects/IRIG/mod_perl-1.99_08/src/modules/perl 
-I/projects/IRIG/mod_perl-1.99_08/xs 
-I/projects/IRIG/apache2/prefork/include 
-I/usr/perl5/5.6.1/lib/sun4-solaris-64int/CORE -DMOD_PERL -xO3 -xdepend 
-KPIC \
-c mod_perl.c  mv mod_perl.o mod_perl.lo
cc: unrecognized option `-KPIC'

mod_perl reuses the compiler flags perl was built with. It picks them up from 
Config.pm. Do you see -KPIC in the output of 'perl -V'? You must use exactly 
the same compiler that you've built your perl with and it should work.

cc: language depend not recognized
cc: mod_perl.c: linker input file unused because linking not done
mv: cannot access mod_perl.o
make[1]: *** [mod_perl.lo] Error 2
make[1]: Leaving directory 
`/projects/IRIG/mod_perl-1.99_08/src/modules/perl'
make: *** [modperl_lib] Error 2
bash-2.05# c
bash: c: command not found
bash-2.05# cc
cc: no input files
And I'm running:
 
Solaris 9
PERL 5.6.1
Apache 2.0.4
mod_perl 1.99_08
 
Thanks in advance!!
 
Pablo.-
 
Kind Regards.

Pablo Jejcic
Smartweb Senior system Administrator
School of Computing - Robert Gordon University
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
*T*:44-(0)1224-262797
*F*:44-(0)1224-262790


``The nice thing about standards is that there are so many to choose 
from. And if you really don't like all the standards you just have to 
wait another year until the one arises you are looking for.''
A. Tanenbaum, ``Introduction to Computer Networks'



 


--


__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com




installing modperl

2001-01-17 Thread Gustavo Vieira Goncalves Coelho Rios

Dear gentleman/madam,

this is my first post to the modperl mailing list.
I am trying to get modperl compiling over FreeBSD-4.2Stable, but until
now i am having some problem, here is what i get when i try to build it:

grios@etosha$ perl Makefile.PL USE_APXS=1
WITH_APXS=/usr/local/apache/bin/apxs
Will configure via APXS (apxs=/usr/local/apache/bin/apxs)
PerlDispatchHandler.disabled (enable with PERL_DISPATCH=1)
PerlChildInitHandlerenabled
PerlChildExitHandlerenabled
PerlPostReadRequestHandler..disabled (enable with
PERL_POST_READ_REQUEST=1)
PerlTransHandlerdisabled (enable with PERL_TRANS=1)
PerlHeaderParserHandler.disabled (enable with PERL_HEADER_PARSER=1)
PerlAccessHandler...disabled (enable with PERL_ACCESS=1)
PerlAuthenHandler...disabled (enable with PERL_AUTHEN=1)
PerlAuthzHandlerdisabled (enable with PERL_AUTHZ=1)
PerlTypeHandler.disabled (enable with PERL_TYPE=1)
PerlFixupHandlerdisabled (enable with PERL_FIXUP=1)
PerlHandler.enabled
PerlLogHandler..disabled (enable with PERL_LOG=1)
PerlInitHandler.disabled (enable with PERL_INIT=1)
PerlCleanupHandler..disabled (enable with PERL_CLEANUP=1)
PerlRestartHandler..disabled (enable with PERL_RESTART=1)
PerlStackedHandlers.disabled (enable with
PERL_STACKED_HANDLERS=1)
PerlMethodHandlers..disabled (enable with
PERL_METHOD_HANDLERS=1)
PerlDirectiveHandlers...disabled (enable with
PERL_DIRECTIVE_HANDLERS=1)
PerlTableApidisabled (enable with PERL_TABLE_API=1)
PerlLogApi..disabled (enable with PERL_LOG_API=1)
PerlUriApi..disabled (enable with PERL_URI_API=1)
PerlUtilApi.disabled (enable with PERL_UTIL_API=1)
PerlFileApi.disabled (enable with PERL_FILE_API=1)
PerlConnectionApi...enabled
PerlServerApi...enabled
PerlSectionsdisabled (enable with PERL_SECTIONS=1)

PerlSSI.disabled (enable with PERL_SSI=1)

Will run tests as User: 'grios' Group: 'ordinary'
Configuring mod_perl for building via APXS
 + Creating a local mod_perl source tree
 + Setting up mod_perl build environment (Makefile)
 + id: mod_perl/1.24_01
 + id: Perl/5.00503 (freebsd) [perl]
Now please type 'make' to build libperl.so
Checking CGI.pm VERSION..ok
Checking for LWP::UserAgent..failed
Can't locate LWP/UserAgent.pm in @INC (@INC contains: ./lib
/usr/libdata/perl/5.00503/mach /usr/libdata/perl/5.00503
/usr/local/lib/perl5/site_perl/5.005/i386-freebsd
/usr/local/lib/perl5/site_perl/5.005 .) at Makefile.PL line 1072.

The libwww-perl library is needed to run the test suite.
Installation of this library is recommended, but not required.   

Checking for HTML::HeadParserfailed
Can't locate HTML/HeadParser.pm in @INC (@INC contains: ./lib
/usr/libdata/perl/5.00503/mach /usr/libdata/perl/5.00503
/usr/local/lib/perl5/site_perl/5.005/i386-freebsd
/usr/local/lib/perl5/site_perl/5.005 .) at Makefile.PL line 1090.

The HTML-Parser package is needed (by libwww-perl) to run the test
suite.
Checking if your kit is complete...
Looks good
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
grios@etosha$ 



Since, i have some questions:

Why am i getting this :

Checking for LWP::UserAgent..failed
Can't locate LWP/UserAgent.pm in @INC (@INC contains: ./lib
/usr/libdata/perl/5.00503/mach /usr/libdata/perl/5.00503
/usr/local/lib/perl5/site_perl/5.005/i386-freebsd
/usr/local/lib/perl5/site_perl/5.005 .) at Makefile.PL line 1072.

The libwww-perl library is needed to run the test suite.
Installation of this library is recommended, but not required.   

Checking for HTML::HeadParserfailed
Can't locate HTML/HeadParser.pm in @INC (@INC contains: ./lib
/usr/libdata/perl/5.00503/mach /usr/libdata/perl/5.00503
/usr/local/lib/perl5/site_perl/5.005/i386-freebsd
/usr/local/lib/perl5/site_perl/5.005 .) at Makefile.PL line 1090.


Where can i obtain such packages ?



My current environment is:

Apache: Server Version: Apache/1.3.12 (Unix) PHP/4.0.4pl1
mod_fastcgi/2.2.6
OS: FreeBSD etosha 4.2-STABLE FreeBSD 4.2-STABLE #0: Fri Dec 29 03:17:20
GMT 2000 root@etosha:/usr/obj/usr/src/sys/ETOSHA i386


Thanks a lot for your time and cooperation.



Re: installing modperl

2001-01-17 Thread Gustavo Vieira Goncalves Coelho Rios

"G.W. Haywood" wrote:
 
 Hi there,
 
 On Wed, 17 Jan 2001, Gustavo Vieira Goncalves Coelho Rios wrote:
 
  Where can i obtain such packages ?
 
 CPAN.  LWP is not necessary for a working mod_perl but it's
 recommended for the test suite (and lots of other things:).
 
 You will find more documentation in the Guide
 
 http://perl.apache.org/guide
 
 and in the Eagle Book
 
   "Writing Apache Modules with Perl and C", ISBN 1-56592-567-X,
   by Lincoln Stein and Doug MacEachern.
 
 
 73,
 Ged.

Ok! Now, i got every thing working correctly. But now i need to known
how to setup apache correctly with two points in minds:

Security (First),
Performance (Second).

The documentation in the package is extremely poor, so, may somebody
here points me the right source of documentation?

Thanks a lot for your help and time.



Re: installing modperl

2001-01-17 Thread G.W. Haywood

Hi again,

On Wed, 17 Jan 2001, Gustavo Vieira Goncalves Coelho Rios wrote:

 Security (First),
 Performance (Second).

These are large subjects in their own right and will not properly be
covered by the mod_perl nor the Apache documentation for good reasons.
Your Apache server does not live in isolation but with a whole bunch
of other software on which it may depend for services, or about which
it may know nothing at all.  All of the other software on the machine
can have an impact on security and performance.

Of course that isn't to say that there are no security and performance
issues which are specific to Apache and mod_perl.  There are, and they
are given a roasting regularly on the List.

You need to spend a lot of time reading the List, its archives, the
Guide, the Eagle Book, and anything else you can get your hands on.
There are books about Apache itself, "Professional Apache" by Peter
Wainwright is one I liked.  Only by studying in depth will you have
any hope of securing your high-performance server.

73,
Ged.





Re: installing modperl

2001-01-17 Thread Gustavo Vieira Goncalves Coelho Rios

"G.W. Haywood" wrote:
 
 Hi again,
 
 On Wed, 17 Jan 2001, Gustavo Vieira Goncalves Coelho Rios wrote:
 
  Security (First),
  Performance (Second).
 
 These are large subjects in their own right and will not properly be
 covered by the mod_perl nor the Apache documentation for good reasons.
 Your Apache server does not live in isolation but with a whole bunch
 of other software on which it may depend for services, or about which
 it may know nothing at all.  All of the other software on the machine
 can have an impact on security and performance.
 
 Of course that isn't to say that there are no security and performance
 issues which are specific to Apache and mod_perl.  There are, and they
 are given a roasting regularly on the List.
 
 You need to spend a lot of time reading the List, its archives, the
 Guide, the Eagle Book, and anything else you can get your hands on.
 There are books about Apache itself, "Professional Apache" by Peter
 Wainwright is one I liked.  Only by studying in depth will you have
 any hope of securing your high-performance server.
 
 73,
 Ged.


Thanks all for help!

Since this is my first attempt to get mod_perl running with a single
program o' mine, i would appreciate your patience if i asked for some
stupid thing here.

I trying the following program:

#!/usr/bin/perl
use strict;
# print the environment in a mod_perl program under Apache::Registry

print "Content-type: text/html\n\n";

print "HEADTITLEApache::Registry Environment/TITLE/HEAD\n";

print "BODYPRE\n";
print map { "$_ = $ENV{$_}\n" } sort keys %ENV;
print "/PRE/BODY\n";


I get printed and not execute in the browser.

My apache error log is:
[Wed Jan 17 10:04:16 2001] [error] Can't locate object method "inh_tree"
via package "Devel::Symdump" at
/usr/local/lib/perl5/site_perl/5.005/i386-freebsd/Apache/Status.pm line
222.


May some explain what i lacked here?



Re: installing modperl

2001-01-17 Thread G.W. Haywood

Hi there,

On Wed, 17 Jan 2001, Gustavo Vieira Goncalves Coelho Rios wrote:

 I trying the following program:
[snip]
 I get printed and not execute in the browser.

There is not enough information in your question to give an answer but
I suspect that you might be trying to run the program from the command
line.  You need to configure Apache so that IT runs the program when a
browser requests a URI - one which you choose.

For full details, read the documentation to which I have already given
to you references.

 My apache error log is:
 [Wed Jan 17 10:04:16 2001] [error] Can't locate object method "inh_tree" via package 
"Devel::Symdump"
 at /usr/local/lib/perl5/site_perl/5.005/i386-freebsd/Apache/Status.pm line 222.

This could a different problem altogether, it looks like you are trying
to run Apache::Status somehow.  Maybe by accident?

73,
Ged.




Re: installing modperl

2001-01-17 Thread Matt Sergeant

On Wed, 17 Jan 2001, George Sanderson wrote:

 At 09:52 AM 1/17/2001 -0200, you wrote:
 The documentation in the package is extremely poor, so, may somebody
 here points me the right source of documentation?
 
 I had the same first impression, but I have readjusted my thinking to:
 "The documentation is extremely good, once it is located."

 Start with:
 For mod_perl:

 http://perl.apache.org/

You forgot:

http://take23.org/

-- 
Matt/

/||** Director and CTO **
   //||**  AxKit.com Ltd   **  ** XML Application Serving **
  // ||** http://axkit.org **  ** XSLT, XPathScript, XSP  **
 // \\| // ** Personal Web Site: http://sergeant.org/ **
 \\//
 //\\
//  \\