I want to ship a Perl app (a rapid-prototyping development tool, and demo of XSUB) for MacOSX, and because it is for Cocoa applications (Objective C, Distributed Objects) I don't expect end-users to need Admin rights to the Library tree during final-app installation.
Note: The demo calls a 'Perl To Objective C Bridge' which ships with recent versions of MacOSX. I have a work-around: Developers install their resulting app locally with Admin rights and then bundle files for end-users so the end-user won't need Admin rights. Request For Information: What would be great is to make a change to Makefile.PL or use a command-line arg such that files don't get copied to '/Library/Perl/Darwin' by 'make install' . Here is the workaround: LOGGED IN WITH ADMIN RIGHTS: ## From first principals as generated by h2xs -A -n Foo (here, MathSystem) ## ## MathSystem.xs ## MathSystem.pm ## Makefile.PL ## Changes ## MANIFEST ## test.pl ## ## plus value added files: ## mathServer.pm ## mathClient.pm make clean perl MakeFile.PL make install ## Now, copy what we've made at the EXPECTED place (ie. from the Admin-restricted tree) ## to the current working tree ## mkdir auto mkdir auto/MathSystem cp -rf /Library/Perl/darwin/auto/MathSystem/* ./auto/MathSystem/. ## and fix ownership: chown -R george * ## and uninstall...and remove the remainder by hand... rm /Library/Perl/darwin/mathServer.pm rm /Library/Perl/darwin/mathClient.pm rm /Library/Perl/darwin/MathSystem.pm rm -rf /Library/Perl/darwin/auto/MathSystem NOW LOGGED IN WITHOUT ADMIN RIGHTS: The app runs OK. So I tar the files and use them on another MacOSX system without ever logging in as Admin, the app runs OK. **But can I avoid the need to be logged in as Admin in this process? An edit to Makefile.PL perhaps? (I tried the INSTALLDIR= arg, but files still get copied to '/Library/Perl/Darwin', and thus requires Admin rights to run the install.