Re: Re: Can't find Mac::Growl
*GET ME OFF THIS GODDAM LIST*!!! On Tue, Sep 9, 2008 at 8:36 PM, Stephen M. Harris [EMAIL PROTECTED]wrote: Begin forwarded message: From: David Green [EMAIL PROTECTED] Date: September 9, 2008 1:57:57 PM EDT To: Doug McNutt [EMAIL PROTECTED] Cc: macosx@perl.org Subject: Re: Can't find Mac::Growl OK, going back to fundamental issue, what or why is this failing or me (it failed the same first time, which is why I tried the 'force' :-); I am using standard Tiger v5.8.6 of Perl: cpan force install Mac::Growl CPAN: Storable loaded ok Going to read /Users/dgringo/.cpan/Metadata Database was generated on Sun, 20 Jan 2008 02:39:47 GMT Running install for module Mac::Growl Running make for C/CN/CNANDOR/Mac-Growl-0.67.tar.gz CPAN: Digest::MD5 loaded ok CPAN: Compress::Zlib loaded ok Checksum for /Users/dgringo/.cpan/sources/authors/id/C/CN/CNANDOR/Mac-Growl-0.67.tar.gz ok Scanning cache /Users/dgringo/.cpan/build for sizes Mac-Growl-0.67/ Mac-Growl-0.67/Changes Mac-Growl-0.67/lib/ Mac-Growl-0.67/lib/Mac/ Mac-Growl-0.67/lib/Mac/Glue/ Mac-Growl-0.67/lib/Mac/Glue/glues/ Mac-Growl-0.67/lib/Mac/Glue/glues/GrowlHelperApp Mac-Growl-0.67/lib/Mac/Glue/glues/GrowlHelperApp.pod Mac-Growl-0.67/lib/Mac/Growl.pm Mac-Growl-0.67/Makefile.PL Mac-Growl-0.67/MANIFEST Mac-Growl-0.67/README Mac-Growl-0.67/t/ Mac-Growl-0.67/t/Mac-Growl.t Removing previously used /Users/dgringo/.cpan/build/Mac-Growl-0.67 CPAN.pm: Going to build C/CN/CNANDOR/Mac-Growl-0.67.tar.gz Checking if your kit is complete... Looks good Writing Makefile for Mac::Growl make: *** No targets specified and no makefile found. Stop. /usr/bin/make -- NOT OK Running make test Can't test without successful make Running make install make had returned bad status, install seems impossible cpan -- Stephen M. Harris DP/NY http://www.kmreps.net/dp_index.html
Re: Can't find Mac::Growl
OK, going back to fundamental issue, what or why is this failing or me (it failed the same first time, which is why I tried the 'force' :-); I am using standard Tiger v5.8.6 of Perl: cpan force install Mac::Growl CPAN: Storable loaded ok Going to read /Users/dgringo/.cpan/Metadata Database was generated on Sun, 20 Jan 2008 02:39:47 GMT Running install for module Mac::Growl Running make for C/CN/CNANDOR/Mac-Growl-0.67.tar.gz CPAN: Digest::MD5 loaded ok CPAN: Compress::Zlib loaded ok Checksum for /Users/dgringo/.cpan/sources/authors/id/C/CN/CNANDOR/ Mac-Growl-0.67.tar.gz ok Scanning cache /Users/dgringo/.cpan/build for sizes Mac-Growl-0.67/ Mac-Growl-0.67/Changes Mac-Growl-0.67/lib/ Mac-Growl-0.67/lib/Mac/ Mac-Growl-0.67/lib/Mac/Glue/ Mac-Growl-0.67/lib/Mac/Glue/glues/ Mac-Growl-0.67/lib/Mac/Glue/glues/GrowlHelperApp Mac-Growl-0.67/lib/Mac/Glue/glues/GrowlHelperApp.pod Mac-Growl-0.67/lib/Mac/Growl.pm Mac-Growl-0.67/Makefile.PL Mac-Growl-0.67/MANIFEST Mac-Growl-0.67/README Mac-Growl-0.67/t/ Mac-Growl-0.67/t/Mac-Growl.t Removing previously used /Users/dgringo/.cpan/build/Mac-Growl-0.67 CPAN.pm: Going to build C/CN/CNANDOR/Mac-Growl-0.67.tar.gz Checking if your kit is complete... Looks good Writing Makefile for Mac::Growl make: *** No targets specified and no makefile found. Stop. /usr/bin/make -- NOT OK Running make test Can't test without successful make Running make install make had returned bad status, install seems impossible cpan
Re: Can't find Mac::Growl
Yes, that error I got was while trying to install Mac::Glue. I have the standard 5.8.6 in the standard place but have also had to install 5.8.8 for another reason. They should not be clashing; 5.8.8 is normally used, but #!/usr/bin/perl still points to 5.8.6 I don't really need 5.8.8, as I was experimentally trying to use some other module(s) when it was added. I do not use the new module(s) or need 5.8.8, but am not sure how to remove it. Having said all that, your saying 5.8.6 has Mac::Glue already there, and if so, maybe part of my solution would be to downgrade to 5.8.6? I am getting good with Perl but, holistically, I have some way to go with CPAN, etc. David On 25 Aug, 2008, at 20:32, Robert Grimm wrote: It looks like you need to install Mac::Glue. Are you using some Perl distribution other than the standard one that comes with OS X? Mac::Glue was there for me, but my system doesn't have anything in / opt. I'm having a similar, but much worse issue right now. I can't install any modules. Every time I try to install anything with CPAN, I get that error on ExtUtils::MakeMaker, which won't install because it isn't there. On Aug 25, 2008, at 6:17 PM, David Green wrote: OK, I am slow -- certainly in catching up with the programatic use of Growl and, erm, OK, most of CPAN. I think this is directly related to your issue but I am unable to fathom the solution myself. I get this error: cp lib/Mac/Growl.pm blib/lib/Mac/Growl.pm cp lib/Mac/Glue/glues/GrowlHelperApp blib/lib/Mac/Glue/glues/ GrowlHelperApp cp lib/Mac/Glue/glues/GrowlHelperApp.pod blib/lib/Mac/Glue/glues/ GrowlHelperApp.pod Manifying blib/man3/Mac::Growl.3 Manifying blib/man3/Mac::Glue::glues::GrowlHelperApp.3 Can't locate Mac/Glue/Common.pm in @INC (@INC contains: /opt/ local/lib/perl5/5.8.8/darwin-2level /opt/local/lib/perl5/5.8.8 / opt/local/lib/perl5/site_perl/5.8.8/darwin-2level /opt/local/lib/ perl5/site_perl/5.8.8 /opt/local/lib/perl5/site_perl /opt/local/ lib/perl5/vendor_perl/5.8.8/darwin-2level /opt/local/lib/perl5/ vendor_perl/5.8.8 /opt/local/lib/perl5/vendor_perl .) at /System/ Library/Perl/Extras/bin/gluemac line 26. BEGIN failed--compilation aborted at /System/Library/Perl/Extras/ bin/gluemac line 26. make: *** [.makeglue] Error 2 Do you think you can clue me in on my mistake(s) ? Thanks, David Green On 23 Aug, 2008, at 12:20, WetMogwai wrote: Thanks. Problem solved. I wonder why Apple couldn't do that before shipping the OS. Seems I have a bug report to file. On Aug 23, 9:22 am, [EMAIL PROTECTED] wrote: Hola, You can set that in your CPAN config I guess: % locate Config.pm | grep CPAN mine is: /System/Library/Perl/5.8.8/CPAN/Config.pm jonasbn On 23/08/2008, at 05.33, WetMogwai wrote:
Re: Can't find Mac::Growl
At 18:17 -0400 8/25/08, David Green wrote: Can't locate Mac/Glue/Common.pm in @INC There is an environment variable PERL5LIB that can be set to add directories to perl's default include path. It is, for instance, possible to add the library from a previous install to @INC. There is some danger of incompatibility but it's easy enough to try. $HOME/.MacOSX/environment.plist is a file you would need to modify or create. In it you can define PERL5LIB as you want. The format is available on Apple's site. Ask if you'd like a copy of mine. Note the dot in .MacOSX. -- -- A fair tax is one that you pay but I don't --
Re: Can't find Mac::Growl
Thanks. Problem solved. I wonder why Apple couldn't do that before shipping the OS. Seems I have a bug report to file. On Aug 23, 9:22 am, [EMAIL PROTECTED] wrote: Hola, You can set that in your CPAN config I guess: % locate Config.pm | grep CPAN mine is: /System/Library/Perl/5.8.8/CPAN/Config.pm jonasbn On 23/08/2008, at 05.33, WetMogwai wrote:
Re: Can't find Mac::Growl
Hi David, WetMogwai's problem has to do with installation, if you do not experience that problem, the following should work out of the box: #!/usr/bin/perl use strict; use Mac::Growl qw(:all); RegisterNotifications(__PACKAGE__, ['test'], ['test']); PostNotification(__PACKAGE__, 'test', 'test', 'hello world'); exit 0; Documentation: #Locally % perldoc Mac::Growl Or: http://search.cpan.org/~cnandor/Mac-Growl/lib/Mac/Growl.pm jonasbn On 21/08/2008, at 17.57, David Green wrote: Hi, I am interested in (possibly) using Mac::Growl from Perl. Have you gotten it working and or do you have some pointers for me? Thanks, David Green On 18 Aug, 2008, at 20:22, WetMogwai wrote: Sorry if this has been discussed before. I searched and didn't see usable results. I'm new to Perl and newer to Perl on Mac, but I thought I understood CPAN and use. I installed Mac::Growl using CPAN from the command line. I'm using the Perl distro included with Leopard. My program contains the following lines: use Mac::Growl ':all'; BEGIN { $Mac::Growl::base = 'Mac::Applescript' } (I've tried it with the lines reversed with the same results. Just reaching with no clue.) I get this error when I run it: Can't locate Mac/Growl.pm in @INC (@INC contains: /System/Library/ Perl/ 5.8.8/darwin-thread-multi-2level /System/Library/Perl/5.8.8 /Library/ Perl/5.8.8/darwin-thread-multi-2level /Library/Perl/5.8.8 /Library/ Perl /Network/Library/Perl/5.8.8/darwin-thread-multi-2level /Network/ Library/Perl/5.8.8 /Network/Library/Perl /System/Library/Perl/Extras/ 5.8.8/darwin-thread-multi-2level /System/Library/Perl/Extras/5.8.8 / Library/Perl/5.8.6 /Library/Perl/5.8.1/darwin-thread-multi-2level / Library/Perl/5.8.1 .) at ../bin/pagewatch.pl line 5. BEGIN failed--compilation aborted at ../bin/pagewatch.pl line 5. CPAN seems to be writing files to /var/root/perl/lib/perl5/Extras/ 5.8.8/, but there isn't anything in /var/root/. I've searched for it with find and mdfind. I can't find where modules are being installed and neither can Perl. How can I get CPAN to install to somewhere in @INC?
Re: Can't find Mac::Growl
Hello WetMogwai, How do you invoke the CPAN module? and how come you think CPAN attempts to write to /var/root/perl/lib/perl5/Extras/5.8.8/? jonasbn On 19/08/2008, at 02.22, WetMogwai wrote: Sorry if this has been discussed before. I searched and didn't see usable results. I'm new to Perl and newer to Perl on Mac, but I thought I understood CPAN and use. I installed Mac::Growl using CPAN from the command line. I'm using the Perl distro included with Leopard. My program contains the following lines: use Mac::Growl ':all'; BEGIN { $Mac::Growl::base = 'Mac::Applescript' } (I've tried it with the lines reversed with the same results. Just reaching with no clue.) I get this error when I run it: Can't locate Mac/Growl.pm in @INC (@INC contains: /System/Library/ Perl/ 5.8.8/darwin-thread-multi-2level /System/Library/Perl/5.8.8 /Library/ Perl/5.8.8/darwin-thread-multi-2level /Library/Perl/5.8.8 /Library/ Perl /Network/Library/Perl/5.8.8/darwin-thread-multi-2level /Network/ Library/Perl/5.8.8 /Network/Library/Perl /System/Library/Perl/Extras/ 5.8.8/darwin-thread-multi-2level /System/Library/Perl/Extras/5.8.8 / Library/Perl/5.8.6 /Library/Perl/5.8.1/darwin-thread-multi-2level / Library/Perl/5.8.1 .) at ../bin/pagewatch.pl line 5. BEGIN failed--compilation aborted at ../bin/pagewatch.pl line 5. CPAN seems to be writing files to /var/root/perl/lib/perl5/Extras/ 5.8.8/, but there isn't anything in /var/root/. I've searched for it with find and mdfind. I can't find where modules are being installed and neither can Perl. How can I get CPAN to install to somewhere in @INC? On 19/08/2008, at 02.22, WetMogwai wrote: Sorry if this has been discussed before. I searched and didn't see usable results. I'm new to Perl and newer to Perl on Mac, but I thought I understood CPAN and use. I installed Mac::Growl using CPAN from the command line. I'm using the Perl distro included with Leopard. My program contains the following lines: use Mac::Growl ':all'; BEGIN { $Mac::Growl::base = 'Mac::Applescript' } (I've tried it with the lines reversed with the same results. Just reaching with no clue.) I get this error when I run it: Can't locate Mac/Growl.pm in @INC (@INC contains: /System/Library/ Perl/ 5.8.8/darwin-thread-multi-2level /System/Library/Perl/5.8.8 /Library/ Perl/5.8.8/darwin-thread-multi-2level /Library/Perl/5.8.8 /Library/ Perl /Network/Library/Perl/5.8.8/darwin-thread-multi-2level /Network/ Library/Perl/5.8.8 /Network/Library/Perl /System/Library/Perl/Extras/ 5.8.8/darwin-thread-multi-2level /System/Library/Perl/Extras/5.8.8 / Library/Perl/5.8.6 /Library/Perl/5.8.1/darwin-thread-multi-2level / Library/Perl/5.8.1 .) at ../bin/pagewatch.pl line 5. BEGIN failed--compilation aborted at ../bin/pagewatch.pl line 5. CPAN seems to be writing files to /var/root/perl/lib/perl5/Extras/ 5.8.8/, but there isn't anything in /var/root/. I've searched for it with find and mdfind. I can't find where modules are being installed and neither can Perl. How can I get CPAN to install to somewhere in @INC?
Re: Can't find Mac::Growl
I found a partial solution. If you open the CPAN shell and type: o conf makepl_arg install_base= it will install working modules. This is a partial solution because it has to be done with each session. It doesn't work to run cpan non- interactively. It forgets this setting when the CPAN shell is closed. I have not yet found where it gets the default value for this variable. Now, I'm off on a search to find why I get an error from Growl.pm on a variable that it is getting from itself, but that's a topic for a different thread. On Aug 21, 11:57 am, [EMAIL PROTECTED] (David Green) wrote: Hi, I am interested in (possibly) using Mac::Growl from Perl. Have you gotten it working and or do you have some pointers for me? Thanks, David Green On 18 Aug, 2008, at 20:22, WetMogwai wrote: Sorry if this has been discussed before. I searched and didn't see usable results. I'm new to Perl and newer to Perl on Mac, but I thought I understood CPAN and use. I installed Mac::Growl using CPAN from the command line. I'm using the Perl distro included with Leopard. My program contains the following lines: use Mac::Growl ':all'; BEGIN { $Mac::Growl::base = 'Mac::Applescript' } (I've tried it with the lines reversed with the same results. Just reaching with no clue.) I get this error when I run it: Can't locate Mac/Growl.pm in @INC (@INC contains: /System/Library/ Perl/ 5.8.8/darwin-thread-multi-2level /System/Library/Perl/5.8.8 /Library/ Perl/5.8.8/darwin-thread-multi-2level /Library/Perl/5.8.8 /Library/ Perl /Network/Library/Perl/5.8.8/darwin-thread-multi-2level /Network/ Library/Perl/5.8.8 /Network/Library/Perl /System/Library/Perl/Extras/ 5.8.8/darwin-thread-multi-2level /System/Library/Perl/Extras/5.8.8 / Library/Perl/5.8.6 /Library/Perl/5.8.1/darwin-thread-multi-2level / Library/Perl/5.8.1 .) at ../bin/pagewatch.pl line 5. BEGIN failed--compilation aborted at ../bin/pagewatch.pl line 5. CPAN seems to be writing files to /var/root/perl/lib/perl5/Extras/ 5.8.8/, but there isn't anything in /var/root/. I've searched for it with find and mdfind. I can't find where modules are being installed and neither can Perl. How can I get CPAN to install to somewhere in @INC?
Re: Can't find Mac::Growl
Hola, You can set that in your CPAN config I guess: % locate Config.pm | grep CPAN mine is: /System/Library/Perl/5.8.8/CPAN/Config.pm jonasbn On 23/08/2008, at 05.33, WetMogwai wrote: I found a partial solution. If you open the CPAN shell and type: o conf makepl_arg install_base= it will install working modules. This is a partial solution because it has to be done with each session. It doesn't work to run cpan non- interactively. It forgets this setting when the CPAN shell is closed. I have not yet found where it gets the default value for this variable. Now, I'm off on a search to find why I get an error from Growl.pm on a variable that it is getting from itself, but that's a topic for a different thread. On Aug 21, 11:57 am, [EMAIL PROTECTED] (David Green) wrote: Hi, I am interested in (possibly) using Mac::Growl from Perl. Have you gotten it working and or do you have some pointers for me? Thanks, David Green On 18 Aug, 2008, at 20:22, WetMogwai wrote: Sorry if this has been discussed before. I searched and didn't see usable results. I'm new to Perl and newer to Perl on Mac, but I thought I understood CPAN and use. I installed Mac::Growl using CPAN from the command line. I'm using the Perl distro included with Leopard. My program contains the following lines: use Mac::Growl ':all'; BEGIN { $Mac::Growl::base = 'Mac::Applescript' } (I've tried it with the lines reversed with the same results. Just reaching with no clue.) I get this error when I run it: Can't locate Mac/Growl.pm in @INC (@INC contains: /System/Library/ Perl/ 5.8.8/darwin-thread-multi-2level /System/Library/Perl/5.8.8 / Library/ Perl/5.8.8/darwin-thread-multi-2level /Library/Perl/5.8.8 /Library/ Perl /Network/Library/Perl/5.8.8/darwin-thread-multi-2level / Network/ Library/Perl/5.8.8 /Network/Library/Perl /System/Library/Perl/ Extras/ 5.8.8/darwin-thread-multi-2level /System/Library/Perl/Extras/5.8.8 / Library/Perl/5.8.6 /Library/Perl/5.8.1/darwin-thread-multi-2level / Library/Perl/5.8.1 .) at ../bin/pagewatch.pl line 5. BEGIN failed--compilation aborted at ../bin/pagewatch.pl line 5. CPAN seems to be writing files to /var/root/perl/lib/perl5/Extras/ 5.8.8/, but there isn't anything in /var/root/. I've searched for it with find and mdfind. I can't find where modules are being installed and neither can Perl. How can I get CPAN to install to somewhere in @INC?
Re: Can't find Mac::Growl
Hi, I am interested in (possibly) using Mac::Growl from Perl. Have you gotten it working and or do you have some pointers for me? Thanks, David Green On 18 Aug, 2008, at 20:22, WetMogwai wrote: Sorry if this has been discussed before. I searched and didn't see usable results. I'm new to Perl and newer to Perl on Mac, but I thought I understood CPAN and use. I installed Mac::Growl using CPAN from the command line. I'm using the Perl distro included with Leopard. My program contains the following lines: use Mac::Growl ':all'; BEGIN { $Mac::Growl::base = 'Mac::Applescript' } (I've tried it with the lines reversed with the same results. Just reaching with no clue.) I get this error when I run it: Can't locate Mac/Growl.pm in @INC (@INC contains: /System/Library/ Perl/ 5.8.8/darwin-thread-multi-2level /System/Library/Perl/5.8.8 /Library/ Perl/5.8.8/darwin-thread-multi-2level /Library/Perl/5.8.8 /Library/ Perl /Network/Library/Perl/5.8.8/darwin-thread-multi-2level /Network/ Library/Perl/5.8.8 /Network/Library/Perl /System/Library/Perl/Extras/ 5.8.8/darwin-thread-multi-2level /System/Library/Perl/Extras/5.8.8 / Library/Perl/5.8.6 /Library/Perl/5.8.1/darwin-thread-multi-2level / Library/Perl/5.8.1 .) at ../bin/pagewatch.pl line 5. BEGIN failed--compilation aborted at ../bin/pagewatch.pl line 5. CPAN seems to be writing files to /var/root/perl/lib/perl5/Extras/ 5.8.8/, but there isn't anything in /var/root/. I've searched for it with find and mdfind. I can't find where modules are being installed and neither can Perl. How can I get CPAN to install to somewhere in @INC?
Can't find Mac::Growl
Sorry if this has been discussed before. I searched and didn't see usable results. I'm new to Perl and newer to Perl on Mac, but I thought I understood CPAN and use. I installed Mac::Growl using CPAN from the command line. I'm using the Perl distro included with Leopard. My program contains the following lines: use Mac::Growl ':all'; BEGIN { $Mac::Growl::base = 'Mac::Applescript' } (I've tried it with the lines reversed with the same results. Just reaching with no clue.) I get this error when I run it: Can't locate Mac/Growl.pm in @INC (@INC contains: /System/Library/Perl/ 5.8.8/darwin-thread-multi-2level /System/Library/Perl/5.8.8 /Library/ Perl/5.8.8/darwin-thread-multi-2level /Library/Perl/5.8.8 /Library/ Perl /Network/Library/Perl/5.8.8/darwin-thread-multi-2level /Network/ Library/Perl/5.8.8 /Network/Library/Perl /System/Library/Perl/Extras/ 5.8.8/darwin-thread-multi-2level /System/Library/Perl/Extras/5.8.8 / Library/Perl/5.8.6 /Library/Perl/5.8.1/darwin-thread-multi-2level / Library/Perl/5.8.1 .) at ../bin/pagewatch.pl line 5. BEGIN failed--compilation aborted at ../bin/pagewatch.pl line 5. CPAN seems to be writing files to /var/root/perl/lib/perl5/Extras/ 5.8.8/, but there isn't anything in /var/root/. I've searched for it with find and mdfind. I can't find where modules are being installed and neither can Perl. How can I get CPAN to install to somewhere in @INC?