Installing cpan modules without root
I went about trying to install cpanm and it requires access to folders I am restricted from. I'll continue on with the bootstrap install of local::lib, I spose. But I wonder, is there a way to change an env. You don't mess with your system's install of Perl, so you don't break your operating environment. Allows you to have multiple versions and builds of Perl installed with no hassle. No need for special permissions. Miguel Prz Miguel Prz MichaelN MichaelN 1, 11 11 silver badges 6 6 bronze badges.
Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Making Agile work for data science. Show 6 more comments. Also, once you install your modules in non-standard location, check out these two questions on loading libraries from non-standard locations some of the info is already available in the link above : How does a Perl program know where to find the file containing Perl module it uses?
Community Bot 1 1 1 silver badge. Disclosure - I authored both of SO questions linked in this answer. Of these, I find cpanm to be the easiest to install and use. Britton Kerin Britton Kerin 2 2 silver badges 7 7 bronze badges. Yordan Georgiev Yordan Georgiev 4, 1 1 gold badge 45 45 silver badges 52 52 bronze badges.
Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Making Agile work for data science. Stack Gives Back Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually.
Linked See more linked questions. Related 4. I know that nobody would have a problem with me installing them myself, so to save everyone's time and my sanity I would like to install them myself. It's just an issue of how to best do that. I have talked to various people and they said to use an RPM to install them to get around not having gcc. However, when trying to install modules from RPMs, it does not handle the dependencies so I would manually need to handle the dependencies, which could take a while.
As long as you don't do o conf commit , the configuration change will be temporary, so don't do that. For Makefile. See the ExtUtils::Makemaker documentation for more details.
Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Asked 9 years ago. Active 9 years ago. Viewed 1k times. I have been writing Perl scripts for my work and the machine that I have been given to work on makes installing Perl modules difficult: We cannot have gcc on my machine for security reasons, so I cannot use CPAN to install modules, for most modules. I do not have access to the root account.
How can I best install Perl modules with these limitations?
0コメント