At 9.37 -0400 1999.07.10, Henry Penninkilampi wrote: >I read every scrap of documentation I can. Then I read it all again. Really? >I download and install cpan-mac. Everything goes according to plan, >except for the end of the mirrors section where I get: >(Note that the above is a dump of the output after I ran "o conf init" to >do it >all a second time (just to make sure the first wasn't a fluke). I used >Control-D, by the way, because RETURN simply didn't work.) >From the cpan-mac README (in the latest version, it is even in bold): # When you get to the MIRRORED.BY section, a file containing CPAN mirrors # will be downloaded to your computer, and you will be prompted for where # you live in the world, and then presented a list of CPAN mirrors, where # you will type in the numbers matching the CPAN mirrors you want to use. # For each of the questions in this section, you will need to hit # control-D to continue. You can hit RETURN for the other questions in # configuration. :) >Now I classify the use of an uninitialized variable to be a warning, not an >error, so I plough on. The only reason I mention it now is because it was >the >*only* problem I had with the cpan-mac install, and it might mean >something to >you guys. I'll have a look at the warning, thanks. >I'm in paranoid mode by this time, and turn on debugging before continuing: > >--- >cpan> install Mac::Glue > The module Mac::Glue isn't available on CPAN. Yep. It is in alpha and cannot be (easily) installed through CPAN.pm yet, because I don't want it to be (yet). >I downloaded glue.19990622.tar.gz from Chris' website. Fine. Drop it on >StuffIt Expander to open it up. Ack, not good. Stuffit Expander won't unpack the MacBinarized files properly. You run installme on the distribution, not the unpacked folder. I'll make that more clear in the README for Mac::Glue. >Alright, time to "run installme on this distribution". Err, how do I do >that? >Double-click installme.plx? Nope. Double-click and run Makefile.PL? Nope. >Hmmm... Back to the README. Ah, drop the folder on installme.plx. Try >that. >Fails. Download a *second* copy of glue.19990622.tar.gz and drag-drop the >whole thing onto installme.plx. Works! Yep. ># :glue.19990622:ex already exists, will not overwrite >--- > >Alright, figuring that glue.19990622 is a destination folder and not a source >folder, I trash the one created by the first installation and try again. It >works. Yep. Although, with the new cpan-mac, the double-install in Mac::Glue was no longer necessary. Oh well. :) >(By the way. The installers don't ever notify you that an installation >has >actually finished. The camel stops racing and control is returned, >but nothing >is ever mentioned on the screen. Some positive feedback would be nice, IMHO.) Well, in MacPerl, the "Script" menu appears when no script is running, and disappears when a script is running. I usually just rely on that. I'll think about adding something else, though. >Anyway, time to run gluedialect as instructed. That bombs with a stack of >warnings (or are they errors? how does one tell?): >--- ># Use of uninitialized value. >File 'Phoenix:Applications:MacPerl 5.2.0r4:site_perl:Mac:Glue.pm'; Line 18 ># Use of uninitialized value. >File 'Phoenix:Applications:MacPerl 5.2.0r4:site_perl:Mac:Glue.pm'; Line 18 ># Use of uninitialized value. >File 'Phoenix:Applications:MacPerl 5.2.0r4:site_perl:Mac:Glue.pm'; Line 18 ># Use of uninitialized value. >File 'Phoenix:Applications:MacPerl 5.2.0r4:site_perl:Mac:Glue.pm'; Line 18 ># Mac::AppleEvents version 1.22 required--this is only version . >File 'Phoenix:Applications:MacPerl 5.2.0r4:site_perl:Mac:Glue.pm'; Line 18 ># BEGIN failed--compilation aborted. >File 'Phoenix:Applications:MacPerl 5.2.0r4:site_perl:Mac:Glue.pm'; Line 18 ># BEGIN failed--compilation aborted. >File 'Phoenix:Applications:MacPerl >5.2.0r4:glue.19990622:scripts:gluedialect'; Line 10 >--- >Hmmm... I search through the folders and find Mac::AppleEvents just where >it's >supposed to be. I then manually compare the date stamps on all >AE-related >files with those contained in glue.19990622 - they all check out. I remember >somewhere something about file paths so I check MacPerl's preferences and >:site_perl: is there alright, but it's underneath :lib:. Guessing that old >modules may be in use, I add :site_perl: and then try gluedialect again: That is also clearly spelled out (and in bold) in the cpan-mac README: # It is a very good idea to also go to your MacPerl preferences and put your # :site_perl directory in the libraries list specifically. It should # already be in the window, but you want it to come first, so you need to # add it in by hand. >--- ># Global symbol "Gestalt" requires explicit package name. >File 'Phoenix:Applications:MacPerl >5.2.0r4:glue.19990622:scripts:gluedialect'; Line 16 ># Execution of Phoenix:Applications:MacPerl >5.2.0r4:glue.19990622:scripts:gluedialect aborted due to compilation >errors. >--- > >Well, at least there is only one error this time! Heck, I might even be >able to work this one out. Let's check the suspect code: > >--- >if (!@ARGV) { > $ARGV[0] = catdir(($Gestalt{gestaltSystemVersion()} < hex(800) > ? FindFolder(kOnSystemDisk, 'Ÿscr') > : FindFolder(kOnSystemDisk, kExtensionFolderType) . > ":Scripting Additions"), 'Dialects'); >} >--- Hm, looks like I have a bug there. Will fix for impending release. >Alright. Drag-drop The Finder onto gluemac: > >--- ># Please run gluedialect and gluescriptadds programs.. >File 'Phoenix:Applications:MacPerl 5.2.0r4:site_perl:Mac:Glue.pm'; Line 709 >--- > >Huh? Don't like the sound of that, but a glue file *has* been created so I >plough on... I attempt to run the example script "get files in System >Folder": Well, my only guess is that gluedialect did not run properly. You should have the following directories with files in them: :site_perl:Mac:Glue:glues:additions: :site_perl:Mac:Glue:glues:dialects: >--- ># Please run gluedialect and gluescriptadds programs.. >File 'Phoenix:Applications:MacPerl 5.2.0r4:site_perl:Mac:Glue.pm'; Line 709 ># Class 'property' does not exist for 'System Folder'. ># Mac::Glue::_do_obj('Mac::Glue::GLUE0=HASH(0x196f9d0)', 'System >Folder', 'property', undef) called >File 'Phoenix:Applications:MacPerl 5.2.0r4:site_perl:Mac:Glue.pm'; Line 670 ># Mac::Glue::obj('Mac::Glue::GLUE0=HASH(0x196f9d0)', 'property', >'System Folder') called >File 'Phoenix:Applications:MacPerl 5.2.0r4:glue.19990622:ex:get files in >System Folder'; Line 6 >--- > >At this point I give up - too many errors had been generated along the way >and >I was no linger confident of the integrity of my MacPerl installation as a >whole. Obviously I'm missing something - problem is that I don't know >where it >is. This looks consistent not having a Dialect file: not finding "property", which is in the dialect. >1) The cpan-mac initialisation error? >2) The error generated by installme.plx on the second install attempt? >3) Did changing the library path actually make things better, or worse? >4) If gestalt isn't working, what *else* isn't working? >5) Glue files appear, but work do they not! > >I'm ready to trash my MacPerl directory and start from scratch - reinstalling >everything to a virgin state. Now that I've gone through the process once >(well, sorta) it shouldn't take that long. I wouldn't bother, yet. >I'm confident I have a good grasp on this whole thing. About the only bit I >wasn't sure of was "make sure that you have a HOME variable set in your >environment variables preferences in the MacPerl application" - is it just me >or is there *nowhere* which explains the purpose of this variable, or what it >*should* be set to? I hedged my bets and pointed it to my "MacPerl 5.2.0r4" >folder (before I installed cpan-mac, of course). Did I do the right thing? >The cpan-mac installation went smoothly, so I assumed I did. Hm, I'll have to sanity-check this. >Anyway, that was my first experience of cpan-mac and Mac::Glue. Gotta >*love* >alpha-testing! ;) Thanks much for your report! -- Chris Nandor mailto:pudge@pobox.com http://pudge.net/ %PGPKey = ('B76E72AD', [1024, '0824090B CE73CA10 1FF77F13 8180B6B6']) ==== Want to unsubscribe from this list? ==== Send mail with body "unsubscribe" to macperl-modules-request@macperl.org