Considering I find iTunesupdate to be quite a neat plugin and my need to
get it working in the x86 based Mac OS X, I dug around a bit more on
getting Mac::AppleScript to compile.  Any body else with any thoughts
please chime in.

I found a user post a similar question in the Apple forums and here is
a response that helped. I have included the text and the link below.

I am not very proficient in perl, but if possible, I would like a
hacked solution which I promise to document well for other new Intel
Mac users :-).  Any thoughts on using the information below to get
iTunesupdate to work properly?  I will try running slimserver.pl with
the "slim" version of perl and see whether that helps in loading the
iTunesupdate plugin, but I am concerned that it may cause other core
plugins to fail.  

Does anybody have instructions on how I can compile Mac::AppleScript
for the x86 architecture(Mac OS X).  I tried doing it in cpan, but it
still ended up creating the Applescript.bundle for the ppc.


The post that I read in Apple's web site.
Question :
http://lists.apple.com/archives/scitech/2006/Apr/msg00000.html

Playing with an Intel Macbook Pro, looks like Rosetta works for
everything but dynamic loading.

e.g. trying to dynamically load a perl module compiled for PPC:

Can't load '/Users/kgb/Downloads/Simple-0.01/blib/arch/auto/Simple/
Simple.bundle' for module Simple: dlopen(/Users/kgb/Downloads/
Simple-0.01/blib/arch/auto/Simple/Simple.bundle, 1): no suitable image
found. Did find:
/Users/kgb/Downloads/Simple-0.01/blib/arch/auto/Simple/ Simple.bundle:
mach-o, but wrong architecture at /System/Library/Perl/
5.8.6/darwin-thread-multi-2level/DynaLoader.pm line 230.
at test.pl line 11

Anyone know any simple trick to get the perl infrastructure to ignore
the incorrect architecture? e.g. a magic environment variable?

Obviously I can re-compile everything but was hoping to avoid having to
deal with this right away!

Karl

Response :
http://lists.apple.com/archives/scitech/2006/Apr/msg00002.html

So, to run perl as a ppc app, you should make a "thin" copy of it:


4 % file /usr/bin/perl
/usr/bin/perl: Mach-O universal binary with 2 architectures
/usr/bin/perl (for architecture i386):  Mach-O executable i386
/usr/bin/perl (for architecture ppc):   Mach-O executable ppc

5 % lipo -thin ppc -output perl.ppc /usr/bin/perl

6 % file perl.ppc
perl.ppc: Mach-O executable ppc


-- 
govardha
------------------------------------------------------------------------
govardha's Profile: http://forums.slimdevices.com/member.php?userid=4130
View this thread: http://forums.slimdevices.com/showthread.php?t=24648

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/plugins

Reply via email to