access spellcheck service from perl?

2006-04-09 Thread Cheryl Chase
I would like to do some spell checking from perl. ASpell is not yet  
available for intel macs.


Can I use the OSX spellcheck service? How can I access it from Perl?

Thanks,

Cheryl



Re: problems with intel architecture

2006-04-04 Thread Cheryl Chase


On Apr 3, 2006, at 3:56 PM, Joel Rees wrote:

Even though it's not as necessary as it was when the system perl  
was at v5.6 and we all wanted the Unicode stuff in v5.8, I'm still  
inclined to build a separate install of perl for application use.  
That way I don't have to worry as much about fine-tuning what gets  
installed, and I find it's easier to get cpan to behave, as well.


(Not that you can ever ignore what gets installed, but it's easier  
to protect the server if you keep the OS clean.)


Are there OS functions that rely on perl? What sorts of things?

Are there nice directions somewhere for setting up a separate install?

Also, how does CPAN module determine what's installed? I hesitated to  
just remove stuff from /Library/Perl until Ed told me to do so,  
because I figured that CPAN was keeping some state info about what  
was there.


Thanks,

Cheryl



Re: problems with intel architecture

2006-04-03 Thread Cheryl Chase


On Apr 2, 2006, at 3:32 PM, Edward Moy wrote:

A native intel program can't load a ppc binary (like  
Expat.bundle).  Similarly, a ppc program running in Rosetta can't  
load an intel binary.  In the native or Rosetta environments, there  
can be no mixing of binaries.


You should probably move aside (or remove) the stuff in /Library/ 
Perl/5.8.6 (leaving the AppendToPath file), or at least the ones  
that have .bundle files.  Then you'll have to reinstall those CPAN  
modules.



Thanks Ed. That helped get me going. For others who may be  
investigating the same problem, let me add that CPAN was not totally  
successful at rebuilding some modules, for reasons I don't completely  
understand, but which probably included needing some stuff like LWP  
and HTTP in order to fetch things.


But I was able to download them manually from http://www.cpan.org,  
move them to /var/root/.cpan/build, and manually build and install them.


Cheryl



problems with intel architecture

2006-04-02 Thread Cheryl Chase
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/00basicCan'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/00basicdubious
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