At 22:50 Uhr -0800 28.02.2001, Evan Robinson wrote:
>I hate for my first post to a list to be "Help! I can't do X", but
>that seems to be my lot in life.
>
>I am a longtime programmer who's been using Perl on a Windows box for
>a bit over a year. I'm now also using a Mac and have discovered
>MacPerl within the last month. I have installed the application,
>MPW_GM, the source, and the MPW tool. My folder structure is:
>
>:DevTools:
>:DevTools:MacPerl Tool:
>:DevTools:MacPerl Ÿ:
>:DevTools:MacPerl Ÿ:MacPerl_Src:
>:DevTools:MPW-GM:
>
>I'm trying to install either Convert-UU-O.40 or Convert-UUlib-0.11
>but MakeMaker consistently returns the message "On MacOS, we need to
>build under the Perl source directory or have the MacPerl SDK
>installed in the MacPerl folder.", which means that $self->{PERL_SRC}
>isn't defined in init_main() of MM_MacOS.pm.
>
>I've tried putting the modules in :MacPerl Ÿ:, in :MacPerl
>Ÿ:MacPerl_Src:, in :DevTools:, and in :MacPerl Ÿ:ext:. I've tried
>using MPW set -e PERL_SRC to where the module is, to :MacPerl Ÿ:, to
>:MacPerl Ÿ:MacPerl_Src, and to :MacPerl Ÿ:MacPerl_Src:perl.
>
>I *know* that I'm missing something really simple here. Can anybody
>point out the problem without including "nyah, nyah, nyah, you're a
>PC-based idiot!" in their message? Or should I take this over to
>macperl-porters?
>
> Evan
Hi Evan,
things on a Mac are a bit different. Convert-UU is a pure Perl module. Such modules
are best installed using Chris Nandor's installme.plx droplet. Simply drop the packed
archive or the unpacked folder on the droplet. Answer the upcoming question "Convert
all text and MacBinary files?" with "Yes". This should install the module properly.
The installer is part of the cpan-mac 0.50 module, available from CPAN
http://www.perl.com/CPAN-local/authors/id/CNANDOR/
or via Chris Nandor's MacPerl page
http://pudge.net/macperl/ .
Tests 3,4 and 7 will fail, when you run the uu.t test script. For test 3 and 4, you
have to adjust the path to the file MANIFEST in open, depending from where you run
uu.t. Make it a full path to make these tests happy. Test 7 fails, because the newline
on a Mac is a CR, not a LF as on Unix. Change the line
my $badzero = "0\n" x 24;
to
my $badzero = "0\012" x 24; # LF
and test 7 will pass.
Convert-UUlib-0.11 is an extension module, that needs to be build as a shared library
for MacPerl. Usually, you will find pre-build extension modules, i.e. binary
distributions, on the MacPerl Porters Page at
http://pudge.net/mmp/ .
Unfortunately, a port of Convert::UUlib hasn't been done yet. Hopefully, Convert::UU
does all you need. If you want to build that module yourself, you should look at the
MacPerl XS tutorial:
Version 1.1 of the tutorial can be found on my website at
http://usemacperl.webjump.com/index.html
or direct
http://usemacperl.webjump.com/downloads/MP_XS_TUT_v1.1.tar.gz (26 KB)
Please note that I only provide the tutorial, not the tools and samples that come with
the original MacPerl XS tutorial, available at
http://macperl.com/depts/Tutorials/XS/Mac_XS.sea.hqx ,
thus you should download it too.
In the past, I've built some modules with the free Apple MPW MrC and SC compilers, and
provided the MPW worksheets with all the needed steps as part of the module
distribution. You may want to download one of my binary distributions, to get started.
Bit::ShiftReg is a good and small example. You will find it on the above website or in
my CPAN directory:
$CPAN/authors/id/T/TW/TWEGNER/
Best regards,
--Thomas
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com