On Feb 3, 2004, at 6:23 PM, [EMAIL PROTECTED] wrote:

I've written the following to sweep a folder and set creator/type for pdf
files (coming off a Linux server).

Standard caveat: Creator/type has been deprecated for Mac OS X, so you really shouldn't need to do this unless these files either lack a proper .pdf extension, or will be used by Macs running older OSes.


This works from MacPerl, but I really need
to run it from OSX Perl. How do I get Perl to use MacPerl.pm, which @INC can't

Mac OS X doesn't need a special Perl - it comes with the standard UNIX Perl. What you need now is the Mac::Carbon package, which includes the MacPerl module.


See 'perldoc perlmodinstall' for details, but in a nutshell what you do is download the module from cpan.org (or a mirror site), unpack it (StuffIt should work), and then open a Terminal window and navigate to the unpacked directory. In the terminal window you want to run a series of four commands:

perl Makefile.PL
make
make test
make install

Make sure to review the output from "make test" before proceeding to "make install" - you may not want to install the module if the self-tests fail.

If you find yourself needing more than a handful of modules, you'll probably want to use the CPAN shell. It automates the process of downloading, testing, and installing most modules, handling dependencies, etc. I wrote a rather lengthy spiel about it just a couple of days ago, in a thread titled 'many module questions'. You can find it in the archives at <http://www.mail-archive.com/macosx%40perl.org/>

sherm--



Reply via email to