I'm a casual perl user. I just upgraded from a PPC OSX machine to a MacBook Pro, and I can't get perl to work right for me.

I used the Apple Migration Assistant to move my data from my PPC machine to the MacBook Pro.

Trying to run a simple perl script (requiring XML-RPC, DBI, and DBD- mysql) with the installed Apple Perl, I get errors like this:

@GlenEllen Fetch % perl walk.pl
Can't load '/Library/Perl/5.8.6/darwin-thread-multi-2level/auto/XML/ Parser/Expat/Expat.bundle' for module XML::Parser::Expat: dlopen(/ Library/Perl/5.8.6/darwin-thread-multi-2level/auto/XML/Parser/Expat/ Expat.bundle, 1): no suitable image found. Did find: /Library/Perl/5.8.6/darwin-thread-multi-2level/auto/XML/ Parser/Expat/Expat.bundle: mach-o, but wrong architecture at /System/ Library/Perl/5.8.6/darwin-thread-multi-2level/DynaLoader.pm line 230.
at /Library/Perl/5.8.6/darwin-thread-multi-2level/XML/Parser.pm line 14
Compilation failed in require at /Library/Perl/5.8.6/darwin-thread- multi-2level/XML/Parser.pm line 14. BEGIN failed--compilation aborted at /Library/Perl/5.8.6/darwin- thread-multi-2level/XML/Parser.pm line 18. Compilation failed in require at /Library/Perl/5.8.6/RPC/XML/ Parser.pm line 85. BEGIN failed--compilation aborted at /Library/Perl/5.8.6/RPC/XML/ Parser.pm line 85. Compilation failed in require at /Library/Perl/5.8.6/RPC/XML/ Client.pm line 47.
Compilation failed in require at Confluence.pm line 24.
BEGIN failed--compilation aborted at Confluence.pm line 24.
Compilation failed in require at walk.pl line 2.
BEGIN failed--compilation aborted at walk.pl line 2.
@GlenEllen Fetch %

If I try to install XML-RPC with CPAN, I get a similar kind of failure:

  CPAN.pm: Going to build R/RB/RBERJON/XML-SAX-Expat-0.37.tar.gz

cp Expat.pm blib/lib/XML/SAX/Expat.pm
Manifying blib/man3/XML::SAX::Expat.3pm
  /usr/bin/make  -- OK
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/00basic....Can't load '/Library/Perl/5.8.6/darwin-thread- multi-2level/auto/XML/Parser/Expat/Expat.bundle' for module XML::Parser::Expat: dlopen(/Library/Perl/5.8.6/darwin-thread- multi-2level/auto/XML/Parser/Expat/Expat.bundle, 2): no suitable image found. Did find: /Library/Perl/5.8.6/darwin-thread-multi-2level/auto/XML/ Parser/Expat/Expat.bundle: mach-o, but wrong architecture at /System/ Library/Perl/5.8.6/darwin-thread-multi-2level/DynaLoader.pm line 230.
at /Library/Perl/5.8.6/darwin-thread-multi-2level/XML/Parser.pm line 14
Compilation failed in require at /Library/Perl/5.8.6/darwin-thread- multi-2level/XML/Parser.pm line 14. BEGIN failed--compilation aborted at /Library/Perl/5.8.6/darwin- thread-multi-2level/XML/Parser.pm line 18. Compilation failed in require at /private/var/root/.cpan/build/XML- SAX-Expat-0.37/blib/lib/XML/SAX/Expat.pm line 13. BEGIN failed--compilation aborted at /private/var/root/.cpan/build/ XML-SAX-Expat-0.37/blib/lib/XML/SAX/Expat.pm line 13.
Compilation failed in require at t/00basic.t line 3.
BEGIN failed--compilation aborted at t/00basic.t line 3.
t/00basic....dubious
        Test returned status 255 (wstat 65280, 0xff00)

I tried installing ActiveState Perl, but I get this:

@GlenEllen Fetch % /usr/local/ActivePerl-5.8/bin/perl walk.pl
install_driver(mysql) failed: Can't load '/usr/local/ActivePerl-5.8/ lib/site_perl/5.8.8/darwin-thread-multi-2level/auto/DBD/mysql/ mysql.bundle' for module DBD::mysql: dlopen(/usr/local/ActivePerl-5.8/ lib/site_perl/5.8.8/darwin-thread-multi-2level/auto/DBD/mysql/ mysql.bundle, 1): no suitable image found. Did find: /usr/local/ActivePerl-5.8/lib/site_perl/5.8.8/darwin-thread- multi-2level/auto/DBD/mysql/mysql.bundle: unknown file type, first eight bytes: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 at /usr/local/ ActivePerl-5.8/lib/5.8.8/darwin-thread-multi-2level/DynaLoader.pm line 230.
at (eval 12) line 3
Compilation failed in require at (eval 12) line 3.
Perhaps a required shared library or dll isn't installed where expected
at walk.pl line 24
@GlenEllen Fetch %


Arggh! What's the right way to get my perl environment working on OSX 10.4.5 Intel Core Duo architecture? Do I need to install a parallel version of perl from source?

THanks,

Cheryl

Reply via email to