Log inRegister

Foswiki installation

CPAN without root access

[<user>@<server> perlmod]$ PATH="$PATH:~/perl5/bin"
[<user>@<server> perlmod]$ echo $PATH
/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/<user>/.local/bin:/home/<user>/bin:~/perl5/bin
[<user>@<server> perlmod]$ export PERL5LIB=~/perl5/lib/perl5
[<user>@<server> perlmod]$ export PERL_MB_OPT="--install_base '$HOME/perl5'"
[<user>@<server> perlmod]$ export PERL_MM_OPT="INSTALL_BASE=$HOME/perl5"
[<user>@<server> perlmod]$ curl -L http://cpanmin.us | perl - -l ~/perl5 App::cpanminus local::lib
[<user>@<server> perlmod]$ pwd
/home/<user>/public_html/perlmod
[<user>@<server> perlmod]$ cd ..
[<user>@<server> public_html]$ cd ..
[<user>@<server> ~]$ ls
Maildir domains imap perl5 public_html tmp
[<user>@<server> ~]$ cd perl5
[<user>@<server> perl5]$ ls
bin lib man
[<user>@<server> perl5]$ cd bin
[<user>@<server> bin]$ ls
cpanm instmodsh
[<user>@<server> bin]$ cpanm Email::MIME::Header::AddressList

a

[<user>@<server> public_html]$ cd perlmod
[<user>@<server> perlmod]$ ./cpanm -L . Email::MIME::Header::AddressList
...
[<user>@<server> perlmod]$ ./cpanm -L . Module::Core
...
[<user>@<server> perlmod]$ ./cpanm -L . Module::CoreList
...
[<user>@<server> perlmod]$ PATH="$PATH:~/perl5/bin"
[<user>@<server> perlmod]$ echo $PATH
/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/<user>/.local/bin:/home/<user>/bin:~/perl5/bin
[<user>@<server> perlmod]$ export PERL5LIB=~/perl5/lib/perl5
[<user>@<server> perlmod]$ export PERL_MB_OPT="--install_base '$HOME/perl5'"
[<user>@<server> perlmod]$ export PERL_MM_OPT="INSTALL_BASE=$HOME/perl5"
[<user>@<server> perlmod]$ curl -L http://cpanmin.us | perl - -l ~/perl5 App::cpanminus local::lib
...
[<user>@<server> perlmod]$ cd ..
[<user>@<server> public_html]$ cd ..
[<user>@<server> ~]$ ls
Maildir domains imap perl5 public_html tmp
[<user>@<server> ~]$ cd perl5
[<user>@<server> perl5]$ ls
bin lib man
[<user>@<server> perl5]$ cd bin
[<user>@<server> bin]$ ls
cpanm instmodsh
[<user>@<server> bin]$ cpanm Email::MIME::Header::AddressList
...
[<user>@<server> bin]$ pwd
/home/<user>/perl5/bin
[<user>@<server> bin]$ cpanm Email::Address::XS
Email::Address::XS is up to date. (1.04)
[<user>@<server> bin]$ cpanm Encode
Encode is up to date. (3.01)
[<user>@<server> bin]$ ./cpanm -L . Encode
...
[<user>@<server> bin]$ ./cpanm -L . Email::MIME::Header::AddressList
...
[<user>@<server> bin]$ ./cpanm -L . Email::Address::XS
Email::Address::XS is up to date. (1.04)
[<user>@<server> bin]$ pwd
/home/<user>/perl5/bin
[<user>@<server> bin]$ cd /
[<user>@<server> /]$ cd /home
[<user>@<server> home]$ cd <user>/
[<user>@<server> ~]$ cd public_html/
[<user>@<server> public_html]$ cd wiki
[<user>@<server> wiki]$ cd lib
[<user>@<server> lib]$ cd CPAN
[<user>@<server> CPAN]$ cp -a /home/<user>/perl5/lib .
b
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback