在本地目录中安装PERL CPAN模块 [英] Installing PERL CPAN modules in local directory
问题描述
我有一个1and1托管帐户,并且想安装一些不属于标准主机软件包的Perl CPAN模块。是否可以安装没有ROOT访问权限的模块?如果是这样,我该怎么做?
i have a 1and1 hosting account and would like to install some Perl CPAN modules that are not part of the standard host package. Is it possible to install modules without ROOT access? If so, how do i do that? Thanks for the pointers in advance.
推荐答案
cpanminus 迅速成为CPAN的选择界面。它支持将软件包安装到用户的主目录中。
cpanminus is quickly becoming the choice interface for CPAN. It supports installing packages in to the user's home directory.
它的用法非常简单。要在本地安装cpanminus软件包,请执行以下操作:
Its usage is frightening simple. To install the cpanminus package locally:
curl -L http://cpanmin.us | perl - App::cpanminus
要安装任意软件包:
curl -L http://cpanmin.us | perl - Lingua::Romana::Perligata
请记住将用户的本地库添加到PERL5LIB环境变量中
Remember to add the user's local library to the PERL5LIB environment variable.
export PERL5LIB=$HOME/perl5/lib/perl5:$PERL5LIB
这篇关于在本地目录中安装PERL CPAN模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!