You should just generally treat this situation as a variation of “installing Perl libraries as a non-root user,” which is already richly provided-for in Super Search. You want to set up PERL5LIB and CPAN configuration such that there is an entirely-separate directory into which everything is installed. (This may also necessitate creating a local library search-path for .so [or Windows .dll] files, as well.)
In general, you don’t ever want to necessitate “sudo anything.” Pretend that you are not able to do that. Many (say ...) Linux distros rely heavily upon Perl to run their software configuration-management systems, and I am therefore very reluctant to do anything that might disturb that. I want my local installs to sit entirely on-top-of anything at the system level. And that includes any (XS ...) object-module code.
|