RE: Installing mod_perl 1.26 - URI::URL error
Hi Einar, I just did some digging in my mailbox and found the following: (btw - mod_perl 1.26 has been around for some time, and it looks like you're using it - but not in your spec. list) // Nicolai --- OLD MESSAGE --- Hi, For what it's worth it, I always have to add use URI::URL; to the files: mod_perl-x.xx/t/internal/hooks.t mod_perl-x.xx/lib/Apache/test.pm mod_perl-x.xx/blib/Apache/test.pm then all tests work - apart from the ones skipped on my OS - as usual ;) Hope this helps // Nicolai - Original Message - From: terry mcintyre [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, April 03, 2002 1:49 AM Subject: install test fails Redhat Linux 7.2 Apache 1.3.24 Perl 5.6.1 mod-perl-1.26 make test fails with result: /usr/bin/perl t/TEST 0 Can't locate object method new via package URI::URL (perhaps you forgot to load URI::URL?) at ./blib/lib/Apache/test.pm line 252. make: *** [run_tests] Error 255 typescript with complete output follows: Any clues greatly appreciated. Thanks! __ Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax http://taxes.yahoo.com/ -Original Message- From: Einar Roheim [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 23, 2002 11:42 AM To: [EMAIL PROTECTED] Subject: Installing mod_perl 1.26 - URI::URL error Hi everyone, I have a problem installing mod_perl 1.26 with Apache 1.3.24. When I do the make test I'm getting this in the end before it aborts: make[1]: Leaving directory `/usr/local/src/mod_perl-1.26/Util' cp t/conf/mod_perl_srm.conf t/conf/srm.conf ../apache_1.3.24/src/httpd -f `pwd`/t/conf/httpd.conf -X -d `pwd`/t httpd listening on port 8529 will write error_log to: t/logs/error_log letting apache warm up...\c done /usr/local/bin/perl t/TEST 0 Can't locate object method new via package URI::URL (perhaps you forgot to load URI::URL?) at ../blib/lib/Apache/test.pm line 252. make: *** [run_tests] Error 255 The strange thing is that I installed it on my test-server that has the same software (SuSE Linux 7.3 Pro / Apache 1.3.24 / mod_perl 1.24) and it worked like a dream. The only difference is the hardware. The test-server is a PIII with EIDE-disks and the big server (with the problem) has dual PIII with SCSI-disks and more memory. The server is registered in the DNS. Thanks in advance ... Einar
Re: install test fails
Hi, For what it's worth it, I always have to add use URI::URL; to the files: mod_perl-x.xx/t/internal/hooks.t mod_perl-x.xx/lib/Apache/test.pm mod_perl-x.xx/blib/Apache/test.pm then all tests work - apart from the ones skipped on my OS - as usual ;) Hope this helps // Nicolai - Original Message - From: terry mcintyre [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, April 03, 2002 1:49 AM Subject: install test fails Redhat Linux 7.2 Apache 1.3.24 Perl 5.6.1 mod-perl-1.26 make test fails with result: /usr/bin/perl t/TEST 0 Can't locate object method new via package URI::URL (perhaps you forgot to load URI::URL?) at ./blib/lib/Apache/test.pm line 252. make: *** [run_tests] Error 255 typescript with complete output follows: Any clues greatly appreciated. Thanks! __ Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax http://taxes.yahoo.com/
Re: Leak error
Maybe - but not likely... If you think it's mod_perl causing problems - why don't you drop ssl and php for now (as suggested earlier)? Well - maybe even a just basic Apache to start with. If that works - move on and get mod_perl installed. When you are satisfied with that you can start looking into ssl and php. My current install is with mod_perl, mod_php, and mod_ssl, it all as DSO - and I am very unhappy with mod_perl being a DSO. I had many problems installing ssl together with mod_perl, so for the being I choose to make it DSO just to have something running. When I get some time again I will built in mod_perl in my httpd and maybe even ssl. PHP will stay as DSO I think... maybe I will try compile it into my httpd as well. The bottom line is: don't take your mouth ful... Start with basics... then slowly move on... you have to crawl before you walk - and so on ;) Best of luck again // Nicolai - Original Message - From: John Kolvereid [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, April 06, 2002 7:08 PM Subject: Leak error Hello again, I have noticed that when I try to build mod_perl I get a bunch of parse errors when the 'make' is in the /Leak directory. Could this be the reason that I am unable to build mod_perl and ssl and php simultaneously. Please advise. Thanks. John Kolvereid __ Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax http://taxes.yahoo.com/
RE: Thanks and GoodBye
Hi John, I haven't been following your case in details but my oppinion is that if you have a clean install of any common Unix platform (or at least one mentioned in the mod_perl doc.) it should be no problem to install a default mod_perl enabled Apache. From what I can see you use Redhat 6.2 which is _very_ common I guess. Personally I don't use anything but FreeBSD, and mod_perl has never caused my big problems. Most Unix distributions come out of the box well capable of installing mod_perl right away... to my knowledge. That being said, I have had times when it didn't make all the output files needed for merging mod_perl into my httpd. But that has only been the case when I also wanted mod_php and mod_ssl in the same httpd. So my suggestion is, that you either clean your current box and re-install from scratch (if it's not a production site), or try a clean install on a new test box if you have that available. You should definately not give up. It's not hard at all. Best of luck // Nicolai -Original Message- From: John Kolvereid [mailto:[EMAIL PROTECTED]] Sent: Friday, April 05, 2002 1:14 PM To: [EMAIL PROTECTED] Subject: Thanks and GoodBye Hi, Thanks for all your help, but I am NOT able to install mod_perl. It's probably something that is not installed on my particular server - I'll never know. After spending several weeks (almost solid) tweaking the configuration and trying various scenarios to no avail I finally realized that there is no way for me to figure out what is wrong. It's not so bad, I am still able to do CGI programming w/ no problems. Enjoy, and thanks again for all your support. John Kolvereid __ Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax http://taxes.yahoo.com/
[MASON] Using GD for dynamic graphics
Hi I would like to add some dynamic generated graphics to my site and find GD being the one to use. However I'm not sure _how_ to use it on my pages. I use HTML::Mason for content management and I am very happy and truly amazed of the powers in Mason, but when I tried adding some GD it got me puzzled. When I create a new GD::Image drawing whatever on it and trying to print it - it will be prepended to my html header for the page. I then tried to put it in $m-out to have in printed within Mason, but that simply printed the raw PNG in all its glory as text on screen. I tried fiddeling with content_type, but I guess that wont work if I set this after I have already printed something on the page - hence the content_type will not even be effective for that page. What I still miss doing/trying is making a seperate file/component which only job will be to make the PNG, but I don't really see what I would gain from that, because that will pretty much also just print a PNG within my HTML page. Like: html head /head body Some standard html text... %perl $m-content_type( image/png ); #my Mason/perl code for creating an image with GD. my $image = GD::Image(); #put something on image... been using both clean GD synopsis and some home cooked small widgets. print $image-png; #or $m-out( $image-png ); #or $r-print( $image-png ); $m-content_type( text/html ); /%perl Some more html text. /body /html Very simplified, but I don't have my code in front of me - sorry. I would assume that content_type in only good for setting in the header, but I don't see how I can mix in this PNG then. If GD could virtualle create a file I guess img src=% $image-png % would work... but that seems like a long shot when reading the man for GD :) Any help/hints will be greatly appriciate. Maybe I just need to look harder for more ressources, but I've already spent a lot of time on something that looks quite simple - but haven't shown results yet. Best regards Nicolai Schlenzig nicolai.schlenzig(at)got2get.net
RE: apache dies silently at start with perl-5.6.1 rpm
Are you using the mason-handler supplied with Mason? Or did you extend it already? I have had similar problems, and it turned out my customized mason-handler had some inconsistencies concerning sessions handling. After I cleaned that up everything was fine again. You could try to make a very minimized mason-handler and see what that brings. I know you wanna extend it to have your site running - but it could help just to try and pin point the fault. Also it could be worth looking into installing only HTML::Mason and not the Bundle. Maybe a few other modules... but do it by hand - one by one. I recently updated perl and all modules including Mason and Bundle::HTML::Mason also tried to install perl 5.6.1 again. Frankly I cannot remember exactly what I did to avoid that - but I might have installed the modules by hand again. I hope this will give you a few hints on what to try. BTW, in my httpd.conf I use PerlRequire /path/to/my/mason-handler.pl and not the suggested syntax from the latest Mason. Mainly because it's my old mason-handler shined up. That will most likely not give any difference to you, but Mason can be tricky at times. I was looking for a way to enable debugging on Mason, but I couldn't find it. I'm sure it exists - so I'll be digging the man pages next time I have problems. Right now my system is working fine; so - if it's not broken, don't try to fix it ;) Best regards Nicolai Schlenzig nicolai.schlenzig(at)got2get.net --- This mail does not reflect my company's oppinion on the subject in question but is my personal response and cannot be held against my company in any way. -Original Message- From: Francesc Guasch Ortiz [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 19, 2002 11:12 AM To: [EMAIL PROTECTED] Subject: apache dies silently at start with perl-5.6.1 rpm I'm testing the latest perl rpms from redhat updates: perl-5.6.1-26.72.3 mod_perl-1.26-2 I'm using HTML::Mason. When I start apache it just dies silently without complaining and I got nothing in the logs. I even tried to remove the former perl and modules. I rpmed -e a lot of things. Then I removed the perl5 dirs and I installed perl and modules. That didn't worked. When I asked in the Mason list I was told it was a modperl issue. How can I debug what's happening ? I've also noticed the cpan binaries aren't seeing well the modules installed. When I do cpan install Bundle::CPAN it starts downloading the perl-5.6.1 sources. I made sure there are no other perl file binaries nor cpan from other installations. What can I do ? -- frankie
RE: :Parallel error
What does: perl -MCPAN -e shell install LWP::Parallel do for you? I don't use the specific module in question, but by using CPAN for installing it usually tells you what dependancies there might be. Given that this module is in CPAN :) Regards // Nicolai -Original Message- From: Parag R Naik [mailto:[EMAIL PROTECTED]] Sent: Sunday, March 17, 2002 8:35 PM To: [EMAIL PROTECTED] Subject: LWP::Parallel error I get the following error . can any body help .i install ParallelUserAgent-2.51.tar.gz does it require some additional modules . Can't locate object method new via package LWP::Parallel::Protocol::http::Socket Regards Parag R Naik Phone : 5093100(off) Tough times dont last for a long tough people always do. To send secure email get my certificate from :http://parag.freeshell.org/parag2.p7b
RE: Latest version of mod_perl
Where's the homepage of perl.apache.org? It should say something about cvs.apache.org/snapshots/modperl ... Sorry for the sarcasm... but please... what effort did you do to find it yourself? Best regards Nicolai Schlenzig nicolai.schlenzig(at)got2get.net --- This mail does not reflect my company's oppinion on the subject in question but is my personal response and cannot be held against my company in any way. -Original Message- From: OCNS Consulting [mailto:[EMAIL PROTECTED]] Sent: Monday, March 18, 2002 3:13 PM To: [EMAIL PROTECTED] Subject: Latest version of mod_perl Where's the latest snapshot of mod_perl? RB OCNS, Inc. [EMAIL PROTECTED]