Vous êtes ici : Accueil / TECHNICAL PAGES / Documentation / Système informatique (pour Super User) / Installation LCU / Installation module Perl sur LCU

Installation module Perl sur LCU

 


Juste pour info car la technique est un peu hazardeuse :o) cette technique fonctionne si on a pu instaler un module perl sur glslogin1

 

Exemple:

sous glslogin1 (sudo -s)

perl -MCPAN -e 'install Unix::Uptime'
...
Reading '/home/weber/.local/share/.cpan/sources/authors/01mailrc.txt.gz'
...
cd /home/weber/.local/share/.cpan/sources/authors/
ls -R

on voit:

./id/P/PI/PIOTO:
CHECKSUMS  Unix-Uptime-0.4000.tar.gz

 

on prend ce fichier sur le LCU sous root:

(rem maintenant le fichier est sous /opt/import/perl_pkg/ (clé d'installation)

ssh glsserv
su - root
cp ~weber/.local/share/.cpan/sources/authors/id/P/PI/PIOTO/Unix-Uptime-0.4000.tar.gz .
tar -zxvf Unix-Uptime-0.4000.tar.gz
cd Unix-Uptime-0.4000
perl Build.PL
./Build install

fin