Re: Installing WebService::GoogleHack
Wiggins d'Anconia wrote: The test is trying to open the file just to test for existence, readability, etc. (not sure why Perl ops couldn't be used rather than opening and then closing, yikes) but you might want to hack the file t/1.t and add $! to the error message to see why it is failing. Could be any number of reasons, I assume the file is readable by your user, etc. but $! will tell us why it is failing. Okay . . . I added $1 right after ln 85 and this is what I got: # Compilation failed in require at (eval 1) line 2. Scalar found where operator expected at t/1.t line 89, near $! #isa_ok($google,GoogleHack); $google (Missing semicolon on previous line?) syntax error at t/1.t line 89, near $! #isa_ok($google,GoogleHack); $google Execution of t/1.t aborted due to compilation errors. -- Lola - mailto:[EMAIL PROTECTED] http://www.lolajl.net | Blog at http://www.lolajl.net/blog/ Terrorismus delendus est! (Terrorism must be destroyed utterly!) I'm in Bowie, MD, USA, halfway between DC and Annapolis.
Re: Installing WebService::GoogleHack
Okay . . . I added $1 right after ln 85 and this is what I got: # Compilation failed in require at (eval 1) line 2. Well, that's a normal old syntax error - you just put the $! in the wrong place. Ignoring that, did you correct your typo, per my previous message? http://www.nntp.perl.org/group/perl.macosx/8991 -- Morbus Iff ( omnia mutantur, nos et mutamur in illis. ) Technical: http://www.oreillynet.com/pub/au/779 Culture: http://www.disobey.com/ and http://www.gamegrene.com/ icq: 2927491 / aim: akaMorbus / yahoo: morbus_iff / jabber.org: morbus
Re: Installing WebService::GoogleHack
Morbus Iff wrote: Well, that's a normal old syntax error - you just put the $! in the wrong place. Ignoring that, did you correct your typo, per my previous message? http://www.nntp.perl.org/group/perl.macosx/8991 Yeah, I did correct the typo and that error message is what I got after running the process again. In fact, I've copied all the relevant settings into Stickies so that I don't make this mistake again. Now, $! . . . what does this do? I looked in perldebtut and it says that ! means, redo a previous command, but what is the purpose of $? And, where should I be putting this in, again? Here's the IF statement from t.1: if($ans eq 'y' || $ans eq yes) { open(WSDL,$wsdl) || die(\n\n\n\nIllegal WSDL File Location - $wsdl\n\n\n\n); close(WSDL) ; my $google = new WebService::GoogleHack; #isa_ok($google,GoogleHack); $google-init($key,$wsdl); $google-Search(duluth); $correction= $google-phraseSpelling(dulut); diag(\n. The Suggested spelling for dulut is $correction. \n); is($correction,duluth); There's apparently no closing brace for this IF statement. -- Lola - mailto:[EMAIL PROTECTED] http://www.lolajl.net | Blog at http://www.lolajl.net/blog/ Terrorismus delendus est! (Terrorism must be destroyed utterly!) I'm in Bowie, MD, USA, halfway between DC and Annapolis.
Re: Installing WebService::GoogleHack
Well, that's a normal old syntax error - you just put the $! in the wrong place. Ignoring that, did you correct your typo, per my previous message? http://www.nntp.perl.org/group/perl.macosx/8991 Uh... so, you corrected your wsdl typo BEFORE making the $! change or after? The syntax error you got above has nothing to do with the wsdl typo, and everything to do with the fact that you incorrectly added the $!. Can you UNDO the changes you made for the $! and focus ONLY on getting the filename right first, per my previous message? If you're still focused on the $! part (which is merely going to give you and us more information about your problem, not fix it), then you want UNDO whatever you just did, and change the following line: open(WSDL,$wsdl) || die(\n\n\n\nIllegal WSDL File Location - $wsdl\n\n\n\n); To (notice the addition of the $!): open(WSDL,$wsdl) || die(\n\n\n\nIllegal WSDL File Location - $wsdl: $!\n\n\n\n); But still, I think the crux of your problem is that you were typing wdsl instead of wsdl. -- Morbus Iff ( you are nothing without your robot car, NOTHING! ) Culture: http://www.disobey.com/ and http://www.gamegrene.com/ Spidering Hacks: http://amazon.com/exec/obidos/ASIN/0596005776/disobeycom icq: 2927491 / aim: akaMorbus / yahoo: morbus_iff / jabber.org: morbus
Re: Installing WebService::GoogleHack
Morbus Iff wrote: Uh... so, you corrected your wsdl typo BEFORE making the $! change or after? The syntax error you got above has nothing to do with the wsdl typo, and everything to do with the fact that you incorrectly added the $!. Can you UNDO the changes you made for the $! and focus ONLY on getting the filename right first, per my previous message? Okay . . . I undid the changes, and ran through the process again, making sure the filename were correct, and here's what I got: Can't locate object method new via package WebService::GoogleHack; at t/1.t line 85, STDIN line 5. # Looks like you planned 2 tests but only ran 1. # Looks like your test died just after 1. t/1dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 1-2 -- Lola - mailto:[EMAIL PROTECTED] http://www.lolajl.net | Blog at http://www.lolajl.net/blog/ Terrorismus delendus est! (Terrorism must be destroyed utterly!) I'm in Bowie, MD, USA, halfway between DC and Annapolis.
Re: Installing WebService::GoogleHack
On 2005.5.18, at 09:53 PM, Lola Lee wrote: [...] Now, $! . . . what does this do? I looked in perldebtut and it says that ! means, redo a previous command, but what is the purpose of $? And, where should I be putting this in, again? Just so this doesn't get lost in the wash, $! is a special variable. (Has nothing to do with the ! command explained in perldebtut.) The contents of the special variable $! is the text version of the error message of the last error which occurred. There's a whole swarm of these special variables that use the $ sign with punctuation, including $_ . There are even some that are hashes or arrays, rather than scalars, and begin with % or @ instead of $. For more information, type perldoc perlvar at the command line.
ModPerl on Tiger
Does anyone know whether (a) ModPerl is already part of Tiger? If not, how big a hassle is it to install? Specifically, is it something I could reasonably accomplish in an installation script? -r -- email: [EMAIL PROTECTED]; phone: +1 650-873-7841 http://www.cfcl.com- Canta Forda Computer Laboratory http://www.cfcl.com/Meta - The FreeBSD Browser, Meta Project, etc.
Re: ModPerl on Tiger
On May 18, 2005, at 12:58 PM, Rich Morin wrote: Does anyone know whether (a) ModPerl is already part of Tiger? If not, how big a hassle is it to install? Specifically, is it something I could reasonably accomplish in an installation script? -r -- email: [EMAIL PROTECTED]; phone: +1 650-873-7841 http://www.cfcl.com- Canta Forda Computer Laboratory http://www.cfcl.com/Meta - The FreeBSD Browser, Meta Project, etc. I was happy to find that mod_perl is included in Tiger. Just uncomment the two relevant LoadModule and AddModule lines in /etc/ httpd/httpd.conf. Andrew
Re: ModPerl on Tiger
At 1:03 PM -0400 5/18/05, Andrew Mace wrote: I was happy to find that mod_perl is included in Tiger. Just uncomment the two relevant LoadModule and AddModule lines in /etc/httpd/httpd.conf. Thanks! Just to be clear, these look like the relevant lines: #LoadModule perl_modulelibexec/httpd/libperl.so #AddModule mod_perl.c and I assume that I should force an apache restart, as well: apachectl restart -r -- email: [EMAIL PROTECTED]; phone: +1 650-873-7841 http://www.cfcl.com- Canta Forda Computer Laboratory http://www.cfcl.com/Meta - The FreeBSD Browser, Meta Project, etc.
Re: ModPerl on Tiger
On Wed, 18 May 2005, Rich Morin wrote: Does anyone know whether (a) ModPerl is already part of Tiger? Yes. Just as it has been with every version of OSX. And for once, the stock Perl is in line with the current stable release! Unlike with Panther, where you had to do weird output buffering tricks in httpd.conf to get mod_perl to work, everything works fine in Tiger. (Though I've yet to try installing RT, that'll be the real test. I was never able to get it to work right on Panther...) ...was there supposed to be a (b) in there somewhere? -- Chris Devers
Using my Perl installation after installing Tiger
I installed 5.8.6 a long while ago under Panther and had everything just as I wanted it and had a lot of extra modules installed. Now I've just installed Tiger and see that I'm back to the Apple default installation. How to I revert to using the set-up I was using before the Tiger installation? Has Tiger wiped my installation? JD
Re: Using my Perl installation after installing Tiger
At 14:51 -0400 18/5/05, Sherm Pendley wrote: If you installed it under the default location /usr/local, then your old Perl 5.8.6 will still be there - if you made /usr/bin/perl a symlink to /usr/local/bin/perl, then the symlink would have been wiped out, but that's easy to fix. Thanks for the lightning-fast reply, Sherm! I'm glad to say I did install in /usr/local, so I look forward to hearing how to carry out the easy fix. JD
Re: ModPerl on Tiger
On May 18, 2005, at 1:38 PM, Rich Morin wrote: Thanks! Just to be clear, these look like the relevant lines: #LoadModule perl_modulelibexec/httpd/libperl.so #AddModule mod_perl.c and I assume that I should force an apache restart, as well: apachectl restart You probably know this already, but just for the sake of the archives - all this does is enable the module to load. You'll also need to configure the handlers you need - for instance, to specify a /cgi- registry directory that uses Apache::Registry: Alias /cgi-registry/ /Library/WebServer/CGI-Registry/ Location /cgi-registry SetHandler perl-script PerlHandler Apache::Registry PerlSendHeader on Options +ExecCGI /Location That's good enough for a developer's desktop machine, but high- traffic production servers usually run a separate instance of Apache that's especially tuned for mod_perl. This instance runs on a high (1024) port; the main server on port 80 serves static content directly, and acts as a proxy for requests to /cgi-registry, forwarding them to the mod_perl server. sherm-- Cocoa programming in Perl: http://camelbones.sourceforge.net Hire me! My resume: http://www.dot-app.org
Re: Using my Perl installation after installing Tiger
On May 18, 2005, at 2:58 PM, John Delacour wrote: At 14:51 -0400 18/5/05, Sherm Pendley wrote: If you installed it under the default location /usr/local, then your old Perl 5.8.6 will still be there - if you made /usr/bin/ perl a symlink to /usr/local/bin/perl, then the symlink would have been wiped out, but that's easy to fix. Thanks for the lightning-fast reply, Sherm! Entirely by coincidence, to be honest - you happened to post your message just a few minutes before I checked for new list messages for the first time today. I hadn't even noticed the time stamp on it, just that it was a new message that hadn't yet been answered. :-) I'm glad to say I did install in /usr/local, so I look forward to hearing how to carry out the easy fix. Just delete /usr/bin/perl - don't worry, it's just a link to /usr/bin/ perl5.8.6, so you can revert to Apple's Perl at any time. Then create a new symlink /usr/bin/perl that points to /usr/local/bin/perl: sudo rm /usr/bin/perl sudo ln -s /usr/local/bin/perl /usr/bin/perl sherm-- Cocoa programming in Perl: http://camelbones.sourceforge.net Hire me! My resume: http://www.dot-app.org