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

[MacPerl-Modules] Fun with cpan and glue




OK here is my report of a recent wrestling match with Mac::Glue
et alia.

    System: Quadra 800 (68040 33MhZ, 40 MB RAM, no virtual memory)
    MacOS:  8.1
    MacPerl: 5.2.0r4  (I have MPW and the MacPerl tool - 
                       but these were not used in what follows).

=head1 cpan-mac install

I installed cpan-mac 0.22 it was a lot of fun to finally use
the CPAN shell.  I upped MacPerl's memory from 10MB to more than
20 MB but could not launch MacPerl, backed the memory allocation 
down to 18MB + change and was able to load a new CPAN index from
a nearby site (system was using 9.2 MB, PPP was using 346k).

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.

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?  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')>.)

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

=head1 Mac::Glue install

I started by asking cpan to `install Mac::Glue` - to no avail.
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?
(I'll try it at home, but I thought the answer would be
helpful to others).

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

=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

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


Peter Prymmer


==== Want to unsubscribe from this list?
==== Send mail with body "unsubscribe" to macperl-modules-request@macperl.org