Koozali.org: home of the SME Server

Other Languages => Français => Topic started by: kankan on June 23, 2007, 01:01:39 AM

Title: [HELP] Installation d'un Plugin Perl
Post by: kankan on June 23, 2007, 01:01:39 AM
Bonjour,

Pour faire tourner une application je dois installer deux plugin Perl:
XML::DOM et Term::ReadKey

Apres une recherche j'ai reussi a installer le premier plugin grace à la commande suivante:

perl -MCPAN -e "install XML::DOM"

mais je ne sais pas comment installer le deuxieme plugin:

# perl -MCPAN -e "install Term::ReadKey"
Can't locate object method "install" via package "Term::ReadKey" at -e line 1.

# perl -MCPAN -e "install ReadKey"
CPAN: Storable loaded ok
Going to read /root/.cpan/Metadata
  Database was generated on Sun, 03 Jun 2007 19:07:57 GMT
Warning: Cannot install ReadKey, don't know what it is.
Try the command

    i /ReadKey/

to find objects with matching identifiers.

Toute aide sera la bienvenue.

Merci
Title: [HELP] Installation d'un Plugin Perl
Post by: mmccarn on June 23, 2007, 03:49:18 AM
Voila:
Code: [Select]
/sbin/e-smith/db yum_repositories set dag repository \
Name 'Dag - EL4' \
BaseURL 'http://apt.sw.be/redhat/el4/en/$basearch/dag' \
EnableGroups no \
GPGCheck yes \
GPGKey http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt \
Visible no \
Exclude freetype,htop,iptraf,rsync,syslinux \
status disabled

expand-template /etc/yum.conf

yum --enablerepo=dag install perl-TermReadKey
Title: [HELP] Installation d'un Plugin Perl
Post by: CharlieBrady on June 25, 2007, 10:17:43 PM
Quote from: "mmccarn"
Voila:
Code: [Select]

...
yum --enablerepo=dag install perl-TermReadKey


ou meilleur:

yum --enablerepo=dag install 'perl(Term::ReadKey)' 'perl(XML::DOM)'