[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl-Modules] Fun with cpan and glue



At 2.51 -0400 1999.06.09, Peter Prymmer wrote:
>Apparently config questions that take scalar values accept <return>
>to end input, whereas those that take lists need <Ctrl-d>.  I guess
>I'd request putting a reminder of this fact in at least the
>prompt for the first list question.

It _is_ in the cpan-mac README, but this is probably a good thing to do.


>CPAN nagged me to do a:
>
>  cpan> install Bundle::CPAN
>
>since I have no idea what the status of feeding Mac mods back to
>Andreas is I ignored this admonition.  Should I have done the
>upgrade?

No, simply because of the Compress::Zlib problem (it needs to be compiled).
I should probably add "don't do bundles unless you are sure of what you are
doing, because you might need compiled binaries" to the README.  If
binaries are ever integrated with CPAN "properly", CPAN.pm could ask you if
you want to download the binary version with it comes to Compress::Zlib and
notices 1. that you are on a Mac and 2. that there is a binary available.
If if if.


>Also, how should one answer the pager question on a Mac?
>the default is [more] but I am pretty sure I do not have that one
>(is the answer irrelevant? - perhaps [none] or [] should be the
>default C<if $^O eq 'MacOS')>.)

>From the README:

# When running the first time, select the defaults during configuration
# unless you know what you are doing.  For the "pager" configuration, you
# can put in the four-character creator ID of your favorite text editor.


>While I think someone reported these before I did collect this
>list of Uninitialized warnings seen in:
>
>    MM_MacOS.pm  Line 455, Line 439
>    Mac::Types.pm  Line 56
>    CPAN.pm  Line 1731
>    Net::FTP.pm  Line 236

Thanks, I'll look into them.


>=head1 Mac::Glue install
>
>I started by asking cpan to `install Mac::Glue` - to no avail.

Yes, it is not in there yet.  I don't want people downloading and
installing it unless they really want to, so I called it glue.\d+.tar.gz
instead of Mac-Glue-\d+.\d+.tar.gz.


>I fired up Netscape and explored a nearby CPAN site - nothing
>recent in the CNANDOR directory, so I went to ftp.funit.fi,
>saw glue.19990607.tar.gz there, reconfigured CPAN.pm to look
>in Finland (had to quit Netscape to allow for the memory that
>MacPerl is now consuming) asked it to `install glue.19990607`
>it tried failed and suggested that I try: `i /glue.19990607/`
>but that failed too.  I eventually gave up on asking the
>cpan shell to grab it off the net for me.  Hmm in browsing
>through CPAN.pm I could have apparently asked for
>`install CNANDOR/glue.19990607.tar.gz` - is that about right?

Yes, I do believe so.  That isn't Mac-specific, but it might be something
else to add in the README.


>Instead I asked Netscape to save the .tar.gz to the desktop for
>me.  It was set to save them as MacGzip files, I dropped it
>onto my desktop alias to installme.plx and noted that apparently
>nothing was installed, by noting dates on files within the
>:MacPerl f: tree compared to the :blib: for Mac::Glue - although
>I must admit I might not have been looking in :site_perl:.
>Following the installation advice I once again dropped the .tar.gz
>onto installme, but on the second pass it complained that the
>:glue.19990607: folder already existed and basically came to a stop
>right there.

Hm.  It sounds like the folder at least unpacked somewhere; that is the
expected behavior.


>I tried a different strategy this evening: I copied
>the .tar.gz file to the :MacPerl f: folder and dropped it right onto
>installme.plx - results!  Using the finder I renamed the
>':MacPerl f:glue.19990607:' folder to something else and re-dropped
>the .tar.gz onto installme.plx.  The odd thing is that the MacPerl
>STDOUT appeared quite similar on the second drop(?) It was supposed
>to have installed a new Autosplit - right?

Yes.  You probably would not notice any difference except for on the
Storable installation, which should be autosplit the second time through,
and probably not on the first.


>=head1 post install
>
>Upon running the gluedialect script the MacPerl STDOUT|ERR window
>contains:
>
> # Undefined subroutine &Mac::AppleEvents::Simple::typeObjectSpecifier called.
> File 'Seaweed:MacPerl Ÿ:site_perl:Mac:AppleEvents:Simple.pm'; Line 291
> # BEGIN failed--compilation aborted.
> File 'Seaweed:MacPerl Ÿ:site_perl:Mac:AppleEvents:Simple.pm'; Line 292
> # BEGIN failed--compilation aborted.
> File 'Seaweed:MacPerl Ÿ:site_perl:Mac:Glue.pm'; Line 14
> # BEGIN failed--compilation aborted.
> File 'Seaweed:MacPerl Ÿ:glue.19990607:scripts:gluedialect'; Line 10
>
>Ah OK - user error, I did not have :site_perl: ahead of :lib: in
>@INC, upon resetting Preferences.. I now see:
>
> # Please run gluedialect and gluescriptadds programs..
> File 'Seaweed:MacPerl Ÿ:site_perl:Mac:Glue.pm'; Line 375
> # Please run gluedialect and gluescriptadds programs..
> File 'Seaweed:MacPerl Ÿ:site_perl:Mac:Glue.pm'; Line 375
> # Name "Mac::Glue::CREATINGGLUES" used only once: possible typo.
> File 'Seaweed:MacPerl Ÿ:glue.19990607:scripts:gluedialect'; Line 4
>
>Now I try gluescriptadds:
>
> # Please run gluedialect and gluescriptadds programs..
> File 'Seaweed:MacPerl Ÿ:site_perl:Mac:Glue.pm'; Line 375
> # Name "Mac::Glue::CREATINGGLUES" used only once: possible typo.
> File 'Seaweed:MacPerl Ÿ:glue.19990607:scripts:gluescriptadds'; Line 4

Odd.  I must have done something not quite right.  Will fix for next
release, but they are only warnings and affect nothing.


>OK I now drop :System Folder:Finder: onto gluemac answer yes
>to both questions.  I try to run one of the eg's from the MPW
>tool and obtain:
>
> perl 'clean up startup drive window'
> # Can't find loadable object for module Data::Dumper in @INC
>(Seaweed:MacPerl Ÿ:lib Seaweed:MacPerl Ÿ:site_perl ) at Seaweed:MacPerl
>Ÿ:site_perl:Mac:Glue.pm line 11
> # BEGIN failed--compilation aborted.
> File 'Seaweed:MacPerl Ÿ:site_perl:Mac:Glue.pm'; Line 11
> # BEGIN failed--compilation aborted.
> File 'clean up startup drive window'; Line 2
>
>So I guess I need to update that too?  Whew it's been a long night -
>a lot of fun though :-)

:)

That doesn't make much sense, though.  Data::Dumper is use'd in the
creation of the glues ... why would it succeed there and fail here?  I
would try quitting and launching MacPerl again.  Hmmm.

Anyway, thanks much for the feedback.  I'll look into all this for the next
release.

--
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