On Nov 2, 2004, at 6:22 PM, Paul McCann wrote:

But that still leaves the difficulty of getting XML::LibXML or some of
the expat dependent modules to install.

No, packaging something for distribution is a piece of cake.

Just use a unique installation prefix when you configure things. Use 'configure --prefix= ...' for the C libraries and 'perl Makefile.PL PREFIX= ...' for Perl modules. Keeping everything in its own directory makes it simple to bundle it all up to copy to another machine.

You can also use DESTDIR in the install step. This works the same way with both the C libraries and Perl modules: 'make install DESTDIR= ...'. The directory specified is prepended to the path of any files that are installed. So, for example, if a file would ordinarily be installed in /usr/local/bin, and you've specified a DESTDIR of /tmp/my_app, it would be installed in /tmp/my_app/usr/local/bin.

It's *building* the stuff on 10.3 that would be hard. You could use Xcode's build SDKs for the C libraries - you'd need to play with the preprocessor and linker flags to get it to use the SDK dir instead of the standard locations. It would be a PITA, but it's possible.

It would be a real PITA for a Perl module though. You'd need to build a copy of Perl 5.6.1 using the appropriate SDK, being sure to include the SDK's Perl module directories in that Perl's @INC, and making sure it will use the SDK preprocessor and linker options when it writes a makefile to build a module. Then you'd need to make sure to use DESTDIR to install the modules you build against it.

Building a Perl module on Panther that's intended to run on Jaguar would certainly be *really* hairy, but probably possible. And the pain would be heavily front-loaded - once you've figured out how to do it, and set up the "Perl cross-compile SDK", you could use it to build any number of modules with relative ease. So if you anticipate needing to do this sort of thing often enough, it might make sense for you to put in the up-front work.

In most cases though, you'd probably be far better off just installing Jaguar and working on that.

sherm--



Reply via email to