Benutzer-Werkzeuge

Webseiten-Werkzeuge


tachtler:cpan
no way to compare when less than two revisions

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.


tachtler:cpan [2009/07/16 12:08] (aktuell) – angelegt - Externe Bearbeitung 127.0.0.1
Zeile 1: Zeile 1:
 +====== CPAN ======
  
 +[[http://www.perl.com/CPAN/|{{:tachtler:index:cpan-48x48.png }}]] CPAN ist das "Comprehensive Perl Archive Network", eine große Sammlung von [[http://www.perl.org|Perl]] Software und Dokumentationen. Die Sammlung ist im Internet unter der Adresse [[http://www.cpan.org/|www.cpan.org/]], [[http://www.perl.com/CPAN/|www.perl.com/CPAN/]] oder einer der vielen zusätzlichen Seiten (Mirrors) unter [[http://www.cpan.org/SITES.html|www.cpan.org/SITES.html]] zu finden.
 +
 +:!: **Folgendens ist zu beachten**: CPAN ist auch der Name eines Perl-Modules, CPAN.pm, welches dazu genutzt werden kann, Perl-Software aus dem CPAN-Archiven herunterzuladen und zu installieren. Weitergehende Informationen können unter [[http://theoryx5.uwinnipeg.ca/CPAN/perl/CPAN.html|CPAN.pm-Dokumentation]] eigesehen werden.
 +
 +===== Voraussetzungen =====
 +
 +Als Voraussetzung für die Installation von [[http://www.cpan.org/|CPAN.pm]] ist folgende Komponente erforderlich:
 +  * Ein installierte Version der Script-Sprache [[http://www.perl.org/|Perl]]
 +
 +===== Konfiguration =====
 +
 +Mit folgendem Befehl kann [[http://www.cpan.org/|CPAN.pm]] interaktiv konfiguriert werden:
 +<code>
 +# perl -MCPAN -e shell
 +</code>
 +
 +Anschließend startet ein interaktiver Dialog, mit folgenden Fragen:
 +<code>
 +
 +/usr/lib/perl5/5.8.8/CPAN/Config.pm initialized.
 +
 +
 +CPAN is the world-wide archive of perl resources. It consists of about
 +100 sites that all replicate the same contents all around the globe.
 +Many countries have at least one CPAN site already. The resources
 +found on CPAN are easily accessible with the CPAN.pm module. If you
 +want to use CPAN.pm, you have to configure it properly.
 +
 +If you do not want to enter a dialog now, you can answer 'no' to this
 +question and I'll try to autoconfigure. (Note: you can revisit this
 +dialog anytime later by typing 'o conf init' at the cpan prompt.)
 +
 +Are you ready for manual configuration? [yes]
 +</code>
 +
 +Nach Beantwortung aller Fragen kann mit folgendem Befehl die Konfiguration eingesehen werden:
 +<code>
 +# perl -MCPAN -e shell
 +Terminal does not support AddHistory.
 +
 +cpan shell -- CPAN exploration and modules installation (v1.7602)
 +ReadLine support available (try 'install Bundle::CPAN')
 +
 +cpan>
 +</code>
 +
 +Bei dem Prompt ''cpan>'' muss folgender Befehl eingegeben werden:
 +<code>
 +cpan> o conf
 +CPAN::Config options from /usr/lib/perl5/5.8.8/CPAN/Config.pm:
 +    commit             Commit changes to disk
 +    defaults           Reload defaults from disk
 +    init               Interactive setting of all options
 +
 +    build_cache        0
 +    build_dir          /root/.cpan/build
 +    cache_metadata     0
 +    cpan_home          /root/.cpan
 +    ftp                /usr/kerberos/bin/ftp
 +    ftp_proxy
 +    getcwd             cwd
 +    gpg                /usr/bin/gpg
 +    gzip               /bin/gzip
 +    histfile           /root/.cpan/histfile
 +    histsize           100
 +    http_proxy
 +    inactivity_timeout 0
 +    index_expire       1
 +    inhibit_startup_message 0
 +    keep_source_where  /root/.cpan/sources
 +    links              /usr/bin/links
 +    make               /usr/bin/make
 +    make_arg
 +    make_install_arg
 +    makepl_arg
 +    ncftp
 +    ncftpget
 +    no_proxy
 +    pager              /usr/bin/less
 +    prerequisites_policy ask
 +    scan_cache         atstart
 +    shell              /bin/bash
 +    tar                /bin/tar
 +    term_is_latin      1
 +    defaults           Reload defaults from disk
 +    init               Interactive setting of all options
 +
 +    build_cache        0
 +    build_dir          /root/.cpan/build
 +    cache_metadata     0
 +    cpan_home          /root/.cpan
 +    ftp                /usr/kerberos/bin/ftp
 +    ftp_proxy
 +    getcwd             cwd
 +    gpg                /usr/bin/gpg
 +    gzip               /bin/gzip
 +    histfile           /root/.cpan/histfile
 +    histsize           100
 +    http_proxy
 +    inactivity_timeout 0
 +    index_expire       1
 +    inhibit_startup_message 0
 +    keep_source_where  /root/.cpan/sources
 +    links              /usr/bin/links
 +    make               /usr/bin/make
 +    make_arg
 +    make_install_arg
 +    makepl_arg
 +    ncftp
 +    ncftpget
 +    no_proxy
 +    pager              /usr/bin/less
 +    prerequisites_policy ask
 +    scan_cache         atstart
 +    shell              /bin/bash
 +    tar                /bin/tar
 +    term_is_latin      1
 +    unzip              /usr/bin/unzip
 +    urllist
 +
 +        ftp://cpan.mirror.iphh.net/pub/CPAN/
 +        ftp://cpan.noris.de/pub/CPAN/
 +        ftp://ftp-stud.hs-esslingen.de/pub/Mirrors/CPAN/
 +        ftp://ftp.cw.net/pub/CPAN/
 +        ftp://ftp.freenet.de/pub/ftp.cpan.org/pub/CPAN/
 +        ftp://ftp.fu-berlin.de/unix/languages/perl/
 +        ftp://ftp.gmd.de/mirrors/CPAN/
 +        ftp://ftp.gwdg.de/pub/languages/perl/CPAN/
 +        ftp://ftp.hosteurope.de/pub/CPAN/
 +        ftp://ftp.mpi-sb.mpg.de/pub/perl/CPAN/
 +        ftp://ftp.rub.de/pub/CPAN/
 +        ftp://pandemonium.tiscali.de/pub/CPAN/
 +        http://cpan.mirror.clusters.kg/
 +        http://cpan.mirroring.de/
 +        http://cpan.net.pl/
 +        http://cpan.triplemind.com/
 +        http://dl.ambiweb.de/mirrors/ftp.cpan.org/
 +        http://mirrors.zerg.biz/cpan/
 +        http://www.chemmedia.de/mirrors/CPAN/
 +        http://www.planet-elektronik.de/CPAN/
 +        ftp://cpan.inode.at
 +        ftp://gd.tuwien.ac.at/pub/CPAN/
 +        http://cpan.serveroffice.at/
 +        ftp://ftp.solnet.ch/mirror/CPAN/
 +        ftp://mirror.switch.ch/mirror/CPAN/
 +    wget               /usr/bin/wget
 +</code>
 +
 +Mit folgendem Befehl kann die interaktive Konfiguration von [[http://www.cpan.org/|CPAN.pm]] erneut gestartete werden:
 +<code>
 +cpan> o conf init
 +</code>
 +
 +Mit folgendem Befehl kann eine Hilfeseite der [[http://www.cpan.org/|CPAN]]-Shell angezeigt werden:
 +<code>
 +cpan> ?
 +</code>
 +
 +Mit folgendem Befehl wird die [[http://www.cpan.org/|CPAN]]-Shell verlassen:
 +<code>
 +cpan> q
 +Terminal does not support GetHistory.
 +Lockfile removed.
 +</code>
tachtler/cpan.txt · Zuletzt geändert: 2009/07/16 12:08 von 127.0.0.1