Installation de Koha - adadb

Transcription

Installation de Koha - adadb
Installation de Koha Récupération de koha et Installation des dépendances
Nous allons travailler avec 3 Terminaux Pour ouvrir un Terminal, Cliquer sur Applications puis sur Accessoires et choisir enfin Terminal
Dans le premier Terminal nous allons récupérer Koha (La meilleure solution est d'utiliser un navigateur , par exemple pour récupérer Koha sur le site de koha) mais la commande wget vous aide à récupérer koha depuis le site de koha
ola@ola:~$ wget http://download.koha.org/koha­3.00.01­stable.tar.gz ­­2009­03­15 09:10:54­­ http://download.koha.org/koha­3.00.01­stable.tar.gz Résolution de download.koha.org... 66.249.19.54 Connexion vers download.koha.org|66.249.19.54|:80... connecté. requête HTTP transmise, en attente de la réponse... 200 OK Longueur: 58420406 (56M) [application/x­gzip] Saving to: `koha­3.00.01­stable.tar.gz' 100%[======================================>] 58 420 406 23,7K/s in 31m 14s 2009­03­15 09:42:10 (30,4 KB/s) ­ « koha­3.00.01­stable.tar.gz » sauvegardé [58420406/58420406] Nous allons ensuite décompresser le fichier téléchargé (ne pas oublier de souvent utiliser la touche de tabulation pour compléter les commandes et les noms de fichiers)
ola@ola:~$ tar ­xzvf koha­3.00.01­stable.tar.gz koha­3.00.01­stable/etc/zebradb/etc/usmarc.mar koha­3.00.01­stable/etc/zebradb/etc/urx.chr koha­3.00.01­stable/etc/zebradb/etc/numeric.chr koha­3.00.01­stable/etc/zebradb/etc/passwd koha­3.00.01­stable/etc/zebradb/etc/explain.abs koha­3.00.01­stable/etc/zebradb/etc/default.idx koha­3.00.01­stable/etc/zebradb/etc/gils.att koha­3.00.01­stable/etc/koha­conf.xml koha­3.00.01­stable/etc/README.txt ola@ola:~$ cd koha­3.00.01­stable/
ola@ola:~/koha­3.00.01­stable$ ls about.pl fix­perl­path.PL acqui help.pl admin INSTALL authorities install­CPAN.pl C4 INSTALL.debian catalogue installer cataloguing INSTALL.fedora7 changelanguage.pl install_misc circ INSTALL.opensuse debian koha­tmpl edithelp.pl kohaversion.pl errors labels mainpage.pl skel Makefile.PL sms MANIFEST suggestion MANIFEST.SKIP svc members t
misc tags opac tmp README tools reports virtualshelves reserve xt reviews rewrite­config.PL etc LICENSE ola@ola:~/koha­3.00.01­stable$ serials le fichier INSTALL.debian est le fichier que nous allons suivre pour l'installation de Koha sur Ubuntu vue qu'il n'y a pas de fichier d'installation prévue pour Ubuntu. Comme le contenu de ce fichier sera suivi le long de cette installation , je vous conseille donc de me suivre sans. Nous allons à présent modifier le fichier /etc/apt/sources.list pour nous conformer aux sources.list à utiliser pour l'installation. Pour cette modification nous allons utiliser le fichier gedit
ola@ola:~/koha­3.00.01­stable$ sudo gedit /etc/apt/sources.list
[sudo] password for ola: « Entrez votre mot de passe à la première utilisation de sudo : N'oubliez pas; vous ne verrez rien s'afficher en tapant ce mot de passe»
En résumé (il faut enlever le « # » de la partie Backports et ajouter la dernière ligne) Attention: Pour ceux la qui se retrouvent sur une Hardy (Ubuntu 8.04) remplacer intrepid par hardy. Mon installation de koha est faite sur une Intrepid (ubuntu 8.10)
Votre fichier devrait ressembler àceci (c'est la partie en rouge qui est fait à modifier)
#deb cdrom:[Ubuntu 8.10 _Intrepid Ibex_ ­ Release i386 (20081029.5)]/ intrepid main restricted # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to # newer versions of the distribution. deb http://bj.archive.ubuntu.com/ubuntu/ intrepid main restricted deb­src http://bj.archive.ubuntu.com/ubuntu/ intrepid main restricted ## Major bug fix updates produced after the final release of the ## distribution. deb http://bj.archive.ubuntu.com/ubuntu/ intrepid­updates main restricted deb­src http://bj.archive.ubuntu.com/ubuntu/ intrepid­updates main restricted ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team. Also, please note that software in universe WILL NOT receive any ## review or updates from the Ubuntu security team. deb http://bj.archive.ubuntu.com/ubuntu/ intrepid universe deb­src http://bj.archive.ubuntu.com/ubuntu/ intrepid universe deb http://bj.archive.ubuntu.com/ubuntu/ intrepid­updates universe deb­src http://bj.archive.ubuntu.com/ubuntu/ intrepid­updates universe ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team, and may not be under a free licence. Please satisfy yourself as to ## your rights to use the software. Also, please note that software in ## multiverse WILL NOT receive any review or updates from the Ubuntu ## security team. deb http://bj.archive.ubuntu.com/ubuntu/ intrepid multiverse deb­src http://bj.archive.ubuntu.com/ubuntu/ intrepid multiverse deb http://bj.archive.ubuntu.com/ubuntu/ intrepid­updates multiverse deb­src http://bj.archive.ubuntu.com/ubuntu/ intrepid­updates multiverse ## Uncomment the following two lines to add software from the 'backports' ## repository. ## N.B. software from this repository may not have been tested as ## extensively as that contained in the main release, although it includes ## newer versions of some applications which may provide useful features. ## Also, please note that software in backports WILL NOT receive any review ## or updates from the Ubuntu security team. deb http://bj.archive.ubuntu.com/ubuntu/ intrepid­backports main restricted universe multiverse deb­src http://bj.archive.ubuntu.com/ubuntu/ intrepid­backports main restricted universe multiverse ## Uncomment the following two lines to add software from Canonical's ## 'partner' repository. This software is not part of Ubuntu, but is ## offered by Canonical and the respective vendors as a service to Ubuntu ## users. # deb http://archive.canonical.com/ubuntu intrepid partner # deb­src http://archive.canonical.com/ubuntu intrepid partner deb http://security.ubuntu.com/ubuntu intrepid­security main restricted deb­src http://security.ubuntu.com/ubuntu intrepid­security main restricted deb http://security.ubuntu.com/ubuntu intrepid­security universe deb­src http://security.ubuntu.com/ubuntu intrepid­security universe deb http://security.ubuntu.com/ubuntu intrepid­security multiverse deb­src http://security.ubuntu.com/ubuntu intrepid­security multiverse deb http://ftp.indexdata.dk/ubuntu intrepid main Enregistrez le fichier et fermez gedit. Votre terminal pourrait affichier un message comme celui­ci
** (gedit:16001): WARNING **: Could not write gedit state file: La création du fichier « /root/.gnome2/gedit­2.5SDEQU » a échoué : Aucun fichier ou dossier de ce type I/O error : No such file or directory I/O error : No such file or directory ola@ola:~/koha­3.00.01­stable$ wget http://ftp.indexdata.dk/debian/indexdata.asc ­­2009­03­15 11:04:33­­ http://ftp.indexdata.dk/debian/indexdata.asc Résolution de ftp.indexdata.dk... 83.133.64.60 Connexion vers ftp.indexdata.dk|83.133.64.60|:80... connecté. requête HTTP transmise, en attente de la réponse... 200 OK Longueur: 1702 (1,7K) [text/plain] Saving to: `indexdata.asc' 100%[======================================>] 1 702 ­­.­K/s in 0,001s 2009­03­15 11:04:33 (1,37 MB/s) ­ « indexdata.asc » sauvegardé [1702/1702] ola@ola:~/koha­3.00.01­stable$ sudo apt­key add indexdata.asc OK ola@ola:~/koha­3.00.01­stable$ sudo apt­get update Réception de : 15 http://ubuntu.bj.refer.org intrepid­updates/restricted Packages [8018B] Réception de : 16 http://ubuntu.bj.refer.org intrepid­updates/universe Packages [96,5kB] Réception de : 17 http://ubuntu.bj.refer.org intrepid­updates/multiverse Packages [11,0kB] Réception de : 18 http://ubuntu.bj.refer.org intrepid­backports/main Packages [108kB] Réception de : 19 http://ubuntu.bj.refer.org intrepid­backports/restricted Packages [20B] Réception de : 20 http://ubuntu.bj.refer.org intrepid­backports/universe Packages [44,8kB] Réception de : 21 http://ubuntu.bj.refer.org intrepid­backports/multiverse Packages [20B] 8626ko réceptionnés en 5s (1664ko/s) Lecture des listes de paquets... Fait ola@ola:~/koha­3.00.01­stable$ sudo dpkg ­­set­selections < install_misc/debian.packages
ola@ola:~/koha­3.00.01­stable$ sudo aptitude install dselect Lecture des listes de paquets... Fait Construction de l'arbre des dépendances Lecture des informations d'état... Fait Initialisation de l'état des paquets... Fait Écriture de l'information d'état étendu... Fait Les NOUVEAUX paquets suivants vont être installés : dselect 0 paquets mis à jour, 1 nouvellement installés, 0 à enlever et 269 non mis à jour. Il est nécessaire de télécharger 406ko d'archives. Après dépaquetage, 2220ko seront utilisés. Écriture de l'information d'état étendu... Fait Prendre :1 http://ubuntu.bj.refer.org intrepid­updates/main dselect 1.14.20ubuntu6.1 [406kB] 406ko téléchargés en 0s (2509ko/s) Sélection du paquet dselect précédemment désélectionné. (Lecture de la base de données... 101756 fichiers et répertoires déjà installés.) Dépaquetage de dselect (à partir de .../dselect_1.14.20ubuntu6.1_i386.deb) ... Traitement des « déclenchements (triggers) » pour « man­db »... Paramétrage de dselect (1.14.20ubuntu6.1) ... Lecture des listes de paquets... Fait Construction de l'arbre des dépendances Lecture des informations d'état... Fait Lecture de l'information d'état étendu Initialisation de l'état des paquets... Fait Écriture de l'information d'état étendu... Fait ola@ola:~/koha­3.00.01­stable$ sudo dselect install
Construction de l'arbre des dépendances Lecture des informations d'état... Fait Les NOUVEAUX paquets suivants seront installés : apache2 apache2­mpm­worker apache2­utils apache2.2­common cvs daemon gettext iamerican idzebra­2.0 idzebra­2.0­common idzebra­2.0­doc idzebra­2.0­utils ispell libapr1 libaprutil1 libbit­vector­perl libbrasero­media0 libcarp­clan­perl libcgi­session­perl libclass­factory­util­perl libclass­singleton­perl libconvert­asn1­perl libdate­calc­perl libdate­ical­perl libdate­leapyear­perl libdate­manip­perl libdatetime­format­mail­perl libdatetime­format­strptime­perl libdatetime­format­w3cdtf­perl libdatetime­locale­perl libdatetime­perl libdatetime­timezone­perl libdbd­mysql­perl libdbi­perl libemail­date­format­perl libfilter­perl libgcrypt11­dev libgpg­error­dev libhtml­clean­perl libidzebra­2.0 libidzebra­2.0­dev libidzebra­2.0­mod­alvis libidzebra­2.0­mod­dom libidzebra­2.0­mod­grs­marc libidzebra­2.0­mod­grs­regx libidzebra­2.0­mod­grs­xml libidzebra­2.0­mod­text libidzebra­2.0­modules liblingua­ispell­perl liblingua­pt­stemmer­perl liblingua­stem­perl liblingua­stem­snowball­da­perl liblist­moreutils­perl liblocale­po­perl libmail­sendmail­perl libmime­lite­perl libmime­types­perl libmysqlclient15­dev libmysqlclient15off libnet­daemon­perl libnet­ldap­perl libparams­validate­perl libpdf­api2­perl libplrpc­perl libpoe­perl libpq5 libsnowball­norwegian­perl libsnowball­swedish­perl libsys­hostname­long­perl libtext­csv­perl libtext­csv­xs­perl libtext­german­perl libtime­duration­perl libtime­format­perl libunix­syslog­perl libxml­dom­perl libxml­dumper­perl libxml­libxml­common­perl libxml­libxml­perl libxml­libxslt­perl libxml­perl libxml­regexp­perl libxml­xslt­perl libxml2­dev libxslt1­dev libyaml­syck­perl libyaz3 linux­headers­2.6.27­11 linux­headers­2.6.27­11­generic linux­image­2.6.27­11­generic linux­restricted­modules­2.6.27­11­generic mysql­client­5.0 mysql­common mysql­server mysql­server­5.0 nullmailer tcl8.4 ttf­dejavu ttf­dejavu­extra yaz yaz­doc zlib1g­dev Les paquets suivants seront mis à jour : acpi­support alsa­utils apparmor apparmor­utils at­spi avahi­autoipd avahi­daemon avahi­utils base­files bind9­host brasero busybox­initramfs ca­certificates capplets­data command­not­found command­not­found­data compiz compiz­core compiz­fusion­plugins­main compiz­gnome compiz­plugins compiz­wrapper console­setup consolekit cpp­4.3 cups cups­bsd cups­client cups­common dash dnsutils dpkg evolution evolution­common evolution­data­server evolution­data­server­common evolution­exchange evolution­plugins f­spot fglrx­modaliases firefox firefox­3.0 firefox­3.0­branding firefox­3.0­gnome­support firefox­gnome­support foomatic­filters gcc­4.3 gcc­4.3­base gdm­guest­session gedit gedit­common ghostscript ghostscript­x gimp gimp­data gnome­cards­data gnome­control­center gnome­games gnome­games­data gnome­panel gnome­panel­data gnome­pilot gnome­power­manager gnome­settings­daemon gnome­terminal gnome­terminal­data gvfs gvfs­backends gvfs­bin gvfs­fuse hal­info human­theme initramfs­tools jockey­common jockey­gtk language­pack­en language­pack­en­base language­pack­gnome­en language­pack­gnome­en­base libapparmor­perl libapparmor1 libasound2­plugins libatspi1.0­0 libavahi­client3 libavahi­common­data libavahi­common3 libavahi­compat­libdnssd1 libavahi­core5 libavahi­glib1 libavahi­gobject0 libavahi­ui0 libbind9­40 libc6 libc6­dev libc6­i686 libcairo2 libcamel1.2­14 libck­connector0 libcups2 libcupsimage2 libcurl3 libcurl3­gnutls libdecoration0 libdeskbar­tracker libdns43 libebackend1.2­0 libebook1.2­9 libecal1.2­7 libedata­book1.2­2 libedata­cal1.2­6 libedataserver1.2­11 libedataserverui1.2­8 libegroupwise1.2­13 libexchange­storage1.2­3 libgadu3 libgcc1 libgdata­google1.2­1 libgdata1.2­1 libgimp2.0 libglib2.0­0 libglib2.0­data libgnome­pilot2 libgnome­window­settings1 libgnomecanvas2­0 libgnomecanvas2­common libgnutls26 libgomp1 libgphoto2­2 libgphoto2­port0 libgs8 libgtkhtml­editor­common libgtkhtml­editor0 libgtkhtml3.14­19 libgtksourceview2.0­0 libgtksourceview2.0­common libgvfscommon0 libisc44 libisccc40 libisccfg40 liblcms1 libldap­2.4­2 liblircclient0 liblwres40 libnautilus­extension1 libnm­glib0 libnm­util0 libopal­2.2 libpam­ck­connector libpam­modules libpam­runtime libpam0g libpanel­applet2­0 libpango1.0­0 libpango1.0­common libperl5.10 libpng12­0 libpoppler­glib3 libpoppler3 libpulse­browse0 libpulse0 libpulsecore5 libpurple­bin libpurple0 libshout3 libsmbclient libsnmp­base libsnmp15 libsqlite3­0 libssl0.9.8 libstdc++6 libtotem­plparser12 libtracker­gtk0 libtrackerclient0 libv4l­0 libvolume­id0 libwbclient0 libx11­6 libx11­data libx11­xcb1 libxml2 libxml2­utils linux­generic linux­headers­2.6.27­7 linux­headers­2.6.27­7­generic linux­headers­generic linux­image­2.6.27­7­generic linux­image­generic linux­libc­dev linux­restricted­modules­common linux­restricted­modules­generic login nautilus nautilus­data network­manager network­manager­gnome ntpdate nvidia­173­modaliases nvidia­177­modaliases nvidia­96­modaliases openoffice.org­base­core openoffice.org­calc openoffice.org­common openoffice.org­core openoffice.org­draw openoffice.org­emailmerge openoffice.org­gnome openoffice.org­gtk openoffice.org­impress openoffice.org­math openoffice.org­style­human openoffice.org­writer openssl passwd perl perl­base perl­modules pidgin pidgin­data pm­utils poppler­utils ppp procps pulseaudio pulseaudio­esound­compat pulseaudio­module­gconf pulseaudio­module­hal pulseaudio­module­x11 pulseaudio­utils python­libxml2 python­pyatspi python­software­properties python­uno rhythmbox samba­common smbclient software­properties­gtk splix sqlite3 sudo system­tools­backends totem totem­common totem­gstreamer totem­mozilla totem­plugins tracker tracker­search­tool tracker­utils transmission­common transmission­gtk ttf­opensymbol tzdata ubufox udev ufw update­manager update­manager­core vim­common vim­tiny vinagre xkb­data xserver­xorg­input­evdev xserver­xorg­input­vmmouse xserver­xorg­video­ati xserver­xorg­video­intel xserver­xorg­video­radeon xterm xulrunner­1.9 xulrunner­1.9­gnome­support 269 mis à jour, 102 nouvellement installés, 0 à enlever et 0 non mis à jour. Il est nécessaire de prendre 351Mo dans les archives. Après cette opération, 367Mo d'espace disque supplémentaires seront utilisés. Souhaitez­vous continuer [O/n] ? O
L'installation de la plupart des paquets va se poursuivre après votre appui sur Entrée et cela peut prendre du temps en fonction de la vitesse de votre connexion. La fenêtre suivante vous invitera à mettre le mot de passe pour l'utilisateur root de mysql( Si le paquet mysql­server n'etait pas installé auparavant)
Mettez 2 fois un mot passe (Attention: Ne pas oublier le mot de passe Mysql ) Pour la configuration de nullmailer choisir les options par défaut
Paramétrage de libxml­libxml­perl (1.66­1build2) ... update­perl­sax­parsers: Registering Perl SAX parser XML::LibXML::SAX::Parser with priority 50... update­perl­sax­parsers: Registering Perl SAX parser XML::LibXML::SAX with priority 50... update­perl­sax­parsers: Updating overall Perl SAX parser modules info file... Replacing config file /etc/perl/XML/SAX/ParserDetails.ini with new version Paramétrage de libxml­libxslt­perl (1.62­1.1build1) ... Paramétrage de libxml­xslt­perl (0.48­2) ... Paramétrage de libyaml­syck­perl (1.05­1) ... Paramétrage de mysql­server (5.0.67­0ubuntu6) ... Paramétrage de pidgin (1:2.5.2­0ubuntu1.1) ... Traitement des « déclenchements (triggers) » pour « libc6 »... ldconfig deferred processing now taking place Traitement des « déclenchements (triggers) » pour « python­support »... Traitement des « déclenchements (triggers) » pour « initramfs­tools »... update­initramfs: Generating /boot/initrd.img­2.6.27­11­generic Voulez­vous effacer les fichiers .deb précédemment téléchargés ? [Y/n] Veuillez appuyer sur Entrée pour continuer. ola@ola:~/koha­3.00.01­stable$
Installation des modules perl
ola@ola:~/koha­3.00.01­stable$ sudo cpan CPAN is the world­wide archive of perl resources. It consists of about 300 sites that all replicate the same contents 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, lots of things have to be configured. Fortunately, most of them can be determined automatically. If you prefer the automatic configuration, answer 'yes' below. If you prefer to enter a dialog instead, you can answer 'no' to this question and I'll let you configure in small steps one thing after the other. (Note: you can revisit this dialog anytime later by typing 'o conf init' at the cpan prompt.) Would you like me to configure as much as possible automatically? [yes] No
The following questions are intended to help you with the configuration. The CPAN module needs a directory of its own to cache important index files and maybe keep a temporary mirror of CPAN files. This may be a site­wide or a personal directory. First of all, I'd like to create this directory. Where? <cpan_home> CPAN build and cache directory? [/home/ola/.cpan]
Unless you are accessing the CPAN on your filesystem via a file: URL, CPAN.pm needs to keep the source files it downloads somewhere. Please supply a directory where the downloaded files are to be kept. <keep_source_where> Download target directory? [/home/ola/.cpan/sources] <build_dir> Directory where the build process takes place? [/home/ola/.cpan/build] Until version 1.88 CPAN.pm never trusted the contents of the build_dir directory between sessions. Since 1.88_58 CPAN.pm has a YAML­based mechanism that makes it possible to share the contents of the build_dir/ directory between different sessions with the same version of perl. People who prefer to test things several days before installing will like this feature because it safes a lot of time. If you say yes to the following question, CPAN will try to store enough information about the build process so that it can pick up in future sessions at the same state of affairs as it left a previous session. <build_dir_reuse> Store and re­use state information about distributions between CPAN.pm sessions? [yes] CPAN.pm can store customized build environments based on regular expressions for distribution names. These are YAML files where the default options for CPAN.pm and the environment can be overridden and dialog sequences can be stored that can later be executed by an Expect.pm object. The CPAN.pm distribution comes with some prefab YAML files that cover sample distributions that can be used as blueprints to store one own prefs. Please check out the distroprefs/ directory of the CPAN.pm distribution to get a quick start into the prefs system. <prefs_dir> Directory where to store default options/environment/dialogs for building modules that need some customization? [/home/ola/.cpan/prefs] Normally CPAN.pm keeps config variables in memory and changes need to be saved in a separate 'o conf commit' command to make them permanent between sessions. If you set the 'auto_commit' option to true, changes to a config variable are always automatically committed to disk. <auto_commit> Always commit changes to config variables to disk? [no] CPAN.pm can limit the size of the disk area for keeping the build directories with all the intermediate files. <build_cache> Cache size for build directory (in MB)? [100] The CPAN indexes are usually rebuilt once or twice per hour, but the typical CPAN mirror mirrors only once or twice per day. Depending on the quality of your mirror and your desire to be on the bleeding edge, you may want to set the following value to more or less than one day (which is the default). It determines after how many days CPAN.pm downloads new indexes. <index_expire> Let the index expire after how many days? [1] By default, each time the CPAN module is started, cache scanning is performed to keep the cache size in sync. To prevent this, answer 'never'. <scan_cache> Perform cache scanning (atstart or never)? [atstart] To considerably speed up the initial CPAN shell startup, it is possible to use Storable to create a cache of metadata. If Storable is not available, the normal index mechanism will be used. Note: this mechanism is not used when use_sqlite is on and SQLLite is running. <cache_metadata> Cache metadata (yes/no)? [yes] CPAN::SQLite is a layer between the index files that are downloaded from the CPAN and CPAN.pm that speeds up metadata queries and reduces memory consumption of CPAN.pm considerably. <use_sqlite> Use CPAN::SQLite if available? (yes/no)? [no] The CPAN module can detect when a module which you are trying to build depends on prerequisites. If this happens, it can build the prerequisites for you automatically ('follow'), ask you for confirmation ('ask'), or just ignore them ('ignore'). Please set your policy to one of the three values. <prerequisites_policy> Policy on building prerequisites (follow, ask or ignore)? [ask] When a module declares another one as a 'build_requires' prerequisite this means that the other module is only needed for building or testing the module but need not be installed permanently. In this case you may wish to install that other module nonetheless or just keep it in the 'build_dir' directory to have it available only temporarily. Installing saves time on future installations but makes the perl installation bigger. You can choose if you want to always install (yes), never install (no) or be always asked. In the latter case you can set the default answer for the question to yes (ask/yes) or no (ask/no). <build_requires_install_policy> Policy on installing 'build_requires' modules (yes, no, ask/yes, ask/no)? [ask/yes] CPAN packages can be digitally signed by authors and thus verified with the security provided by strong cryptography. The exact mechanism is defined in the Module::Signature module. While this is generally considered a good thing, it is not always convenient to the end user to install modules that are signed incorrectly or where the key of the author is not available or where some prerequisite for Module::Signature has a bug and so on. With the check_sigs parameter you can turn signature checking on and off. The default is off for now because the whole tool chain for the functionality is not yet considered mature by some. The author of CPAN.pm would recommend setting it to true most of the time and turning it off only if it turns out to be annoying. Note that if you do not have Module::Signature installed, no signature checks will be performed at all. <check_sigs> Always try to check and verify signatures if a SIGNATURE file is in the package and Module::Signature is installed (yes/no)? [no] The goal of the CPAN Testers project (http://testers.cpan.org/) is to test as many CPAN packages as possible on as many platforms as possible. This provides valuable feedback to module authors and potential users to identify bugs or platform compatibility issues and improves the overall quality and value of CPAN. One way you can contribute is to send test results for each module that you install. If you install the CPAN::Reporter module, you have the option to automatically generate and email test reports to CPAN Testers whenever you run tests on a CPAN package. See the CPAN::Reporter documentation for additional details and configuration settings. If your firewall blocks outgoing email, you will need to configure CPAN::Reporter before sending reports. <test_report> Email test reports if CPAN::Reporter is installed (yes/no)? [no] At the time of this writing there are two competing YAML modules, YAML.pm and YAML::Syck. The latter is faster but needs a C compiler installed on your system. There may be more alternative YAML conforming modules but at the time of writing a potential third player, YAML::Tiny, seemed not powerful enough to work with CPAN.pm. <yaml_module> Which YAML implementation would you prefer? [YAML] Warning (maybe harmless): 'YAML' not installed. CPAN: Time::HiRes loaded ok (v1.9711) Both YAML.pm and YAML::Syck are capable of deserialising code. As this requires a string eval, which might be a security risk, you can use this option to enable or disable the deserialisation of code. <yaml_load_code> Do you want to enable code deserialisation (yes/no)? [no] The CPAN module will need a few external programs to work properly. Please correct me, if I guess the wrong path for a program. Don't panic if you do not have some of them, just press ENTER for those. To disable the use of a program, you can type a space followed by ENTER. <bzip2> Where is your bzip2 program? [/bin/bzip2] <gzip> Where is your gzip program? [/bin/gzip] <tar> Where is your tar program? [/bin/tar] <unzip> Where is your unzip program? [/usr/bin/unzip] <make> Where is your make program? [/usr/bin/make] Warning: curl not found in PATH[/usr/local/sbin;/usr/local/bin;/usr/sbin;/usr/bin;/sbin;/bin;/usr/X11R6/bin] <curl> Where is your curl program? [] cpan n'est pas parvenu à retrouver le chemin du programme curl nous allons donc utiliser le 2ème terminal pour installer ce programme et lui preciser le chemin. Il en sera peut ­ être ainsi pour quelques autres programmes
2ème terminal ola@ola:~/koha­3.00.01­stable$ sudo aptitude install curl [sudo] password for ola: (Entrez votre mot de passe à chaque première utilisation de sudo)
Lecture des listes de paquets... Fait Construction de l'arbre des dépendances Lecture des informations d'état... Fait Lecture de l'information d'état étendu Initialisation de l'état des paquets... Fait Écriture de l'information d'état étendu... Fait Les NOUVEAUX paquets suivants vont être installés : curl Les paquets suivants seront ENLEVÉS : linux­headers­2.6.27­7{u} linux­headers­2.6.27­7­generic{u} 0 paquets mis à jour, 1 nouvellement installés, 2 à enlever et 0 non mis à jour. Il est nécessaire de télécharger 209ko d'archives. Après dépaquetage, 51,7Mo seront libérés. Voulez­vous continuer ? [Y/n/?] Écriture de l'information d'état étendu... Fait Prendre :1 http://ubuntu.bj.refer.org intrepid­updates/main curl 7.18.2­1ubuntu4.3 [209kB] 209ko téléchargés en 0s (1515ko/s) (Lecture de la base de données... 124518 fichiers et répertoires déjà installés.) Suppression de linux­headers­2.6.27­7­generic ... Suppression de linux­headers­2.6.27­7 ... Sélection du paquet curl précédemment désélectionné. (Lecture de la base de données... 111598 fichiers et répertoires déjà installés.) Dépaquetage de curl (à partir de .../curl_7.18.2­1ubuntu4.3_i386.deb) ... Traitement des « déclenchements (triggers) » pour « man­db »... Paramétrage de curl (7.18.2­1ubuntu4.3) ... Lecture des listes de paquets... Fait Construction de l'arbre des dépendances Lecture des informations d'état... Fait Lecture de l'information d'état étendu Initialisation de l'état des paquets... Fait Écriture de l'information d'état étendu... Fait ola@ola:~/koha­3.00.01­stable$ which curl /usr/bin/curl ola@ola:~/koha­3.00.01­stable$ Copiez la sortie de cette commande dans le premier terminal
1er terminal Where is your curl program? [] /usr/bin/curl
Warning: lynx not found in PATH[/usr/local/sbin;/usr/local/bin;/usr/sbin;/usr/bin;/sbin;/bin;/usr/X11R6/bin] <lynx> Where is your lynx program? []
2ème terminal ola@ola:~/koha­3.00.01­stable$ sudo apt­get install lynx Lecture des listes de paquets... Fait Construction de l'arbre des dépendances Lecture des informations d'état... Fait Les NOUVEAUX paquets suivants seront installés : lynx 0 mis à jour, 1 nouvellement installés, 0 à enlever et 0 non mis à jour. Il est nécessaire de prendre 1178ko dans les archives. Après cette opération, 5034ko d'espace disque supplémentaires seront utilisés. Réception de : 1 http://ubuntu.bj.refer.org intrepid/main lynx 2.8.6­2.1ubuntu3 [1178kB] 1178ko réceptionnés en 0s (2771ko/s) Sélection du paquet lynx précédemment désélectionné. (Lecture de la base de données... 111615 fichiers et répertoires déjà installés.) Dépaquetage de lynx (à partir de .../lynx_2.8.6­2.1ubuntu3_i386.deb) ... Traitement des « déclenchements (triggers) » pour « man­db »... Paramétrage de lynx (2.8.6­2.1ubuntu3) ... ola@ola:~/koha­3.00.01­stable$ which lynx /usr/bin/lynx 1er terminal Where is your lynx program? [] /usr/bin/lynx <wget> Where is your wget program? [/usr/bin/wget] Warning: ncftpget not found in PATH[/usr/local/sbin;/usr/local/bin;/usr/sbin;/usr/bin;/sbin;/bin;/usr/
X11R6/bin] <ncftpget> Where is your ncftpget program? [] 2ème Terminal
ola@ola:~/koha­3.00.01­stable$ sudo apt­get install ncftp Lecture des listes de paquets... Fait Construction de l'arbre des dépendances Lecture des informations d'état... Fait Les NOUVEAUX paquets suivants seront installés : ncftp 0 mis à jour, 1 nouvellement installés, 0 à enlever et 0 non mis à jour. Il est nécessaire de prendre 502ko dans les archives. Après cette opération, 1130ko d'espace disque supplémentaires seront utilisés. Réception de : 1 http://ubuntu.bj.refer.org intrepid/universe ncftp 2:3.2.1­1 [502kB] 502ko réceptionnés en 0s (2523ko/s) Sélection du paquet ncftp précédemment désélectionné. (Lecture de la base de données... 111683 fichiers et répertoires déjà installés.) Dépaquetage de ncftp (à partir de .../ncftp_2%3a3.2.1­1_i386.deb) ... Traitement des « déclenchements (triggers) » pour « man­db »... Paramétrage de ncftp (2:3.2.1­1) ... ola@ola:~/koha­3.00.01­stable$ 1er terminal
Where is your ncftpget program? [] /usr/bin/ncftpget <ftp> Where is your ftp program? [/usr/bin/ftp] <gpg> Where is your gpg program? [/usr/bin/gpg] Warning: patch not found in PATH[/usr/local/sbin;/usr/local/bin;/usr/sbin;/usr/bin;/sbin;/bin;/usr/X11R6/bin] <patch> Where is your patch program? [] 2ème terminal
ola@ola:~/koha­3.00.01­stable$ sudo apt­get install dpatch Lecture des listes de paquets... Fait Construction de l'arbre des dépendances Lecture des informations d'état... Fait Les paquets supplémentaires suivants seront installés : build­essential dpkg­dev fakeroot g++ g++­4.3 libstdc++6­4.3­dev patch patchutils Paquets suggérés : debian­keyring g++­multilib g++­4.3­multilib gcc­4.3­doc libstdc++6­4.3­dbg libstdc++6­4.3­doc diff­doc Les NOUVEAUX paquets suivants seront installés : build­essential dpatch dpkg­dev fakeroot g++ g++­4.3 libstdc++6­4.3­dev patch patchutils 0 mis à jour, 9 nouvellement installés, 0 à enlever et 0 non mis à jour. Il est nécessaire de prendre 6497ko dans les archives. Après cette opération, 22,4Mo d'espace disque supplémentaires seront utilisés. Souhaitez­vous continuer [O/n] ? Réception de : 1 http://ubuntu.bj.refer.org intrepid­updates/main libstdc++6­4.3­dev 4.3.2­1ubuntu12 [1354kB] Réception de : 2 http://ubuntu.bj.refer.org intrepid­updates/main g++­4.3 4.3.2­1ubuntu12 [4128kB] Réception de : 3 http://ubuntu.bj.refer.org intrepid/main g++ 4:4.3.1­1ubuntu2 [1444B] Réception de : 4 http://ubuntu.bj.refer.org intrepid/main patch 2.5.9­5 [100kB] Réception de : 5 http://ubuntu.bj.refer.org intrepid­updates/main dpkg­dev 1.14.20ubuntu6.1 [612kB] Réception de : 6 http://ubuntu.bj.refer.org intrepid/main build­essential 11.4 [7172B] Réception de : 7 http://ubuntu.bj.refer.org intrepid/main dpatch 2.0.29 [87,3kB] Réception de : 8 http://ubuntu.bj.refer.org intrepid/main fakeroot 1.9.5ubuntu1 [114kB] Réception de : 9 http://ubuntu.bj.refer.org intrepid/main patchutils 0.2.31­4 [92,2kB] 6497ko réceptionnés en 1s (3457ko/s) Sélection du paquet libstdc++6­4.3­dev précédemment désélectionné. (Lecture de la base de données... 111705 fichiers et répertoires déjà installés.) Dépaquetage de libstdc++6­4.3­dev (à partir de .../libstdc++6­4.3­
dev_4.3.2­1ubuntu12_i386.deb) ... Sélection du paquet g++­4.3 précédemment désélectionné. Dépaquetage de g++­4.3 (à partir de .../g++­4.3_4.3.2­1ubuntu12_i386.deb) ... Sélection du paquet g++ précédemment désélectionné. Dépaquetage de g++ (à partir de .../g++_4%3a4.3.1­1ubuntu2_i386.deb) ... Sélection du paquet patch précédemment désélectionné. Dépaquetage de patch (à partir de .../patch_2.5.9­5_i386.deb) ... Sélection du paquet dpkg­dev précédemment désélectionné. Dépaquetage de dpkg­dev (à partir de .../dpkg­dev_1.14.20ubuntu6.1_all.deb) ... Sélection du paquet build­essential précédemment désélectionné. Dépaquetage de build­essential (à partir de .../build­essential_11.4_i386.deb) ... Sélection du paquet dpatch précédemment désélectionné. Dépaquetage de dpatch (à partir de .../archives/dpatch_2.0.29_all.deb) ... Sélection du paquet fakeroot précédemment désélectionné. Dépaquetage de fakeroot (à partir de .../fakeroot_1.9.5ubuntu1_i386.deb) ... Sélection du paquet patchutils précédemment désélectionné. Dépaquetage de patchutils (à partir de .../patchutils_0.2.31­4_i386.deb) ... Traitement des « déclenchements (triggers) » pour « man­db »... Paramétrage de patch (2.5.9­5) ... Paramétrage de dpkg­dev (1.14.20ubuntu6.1) ... Paramétrage de dpatch (2.0.29) ... Paramétrage de fakeroot (1.9.5ubuntu1) ... Paramétrage de patchutils (0.2.31­4) ... Paramétrage de g++­4.3 (4.3.2­1ubuntu12) ... Paramétrage de libstdc++6­4.3­dev (4.3.2­1ubuntu12) ... Paramétrage de g++ (4:4.3.1­1ubuntu2) ... Paramétrage de build­essential (11.4) ... ola@ola:~/koha­3.00.01­stable$ which patch /usr/bin/patch ola@ola:~/koha­3.00.01­stable$ 1er terminal
Where is your patch program? [] /usr/bin/patch Warning: applypatch not found in PATH[/usr/local/sbin;/usr/local/bin;/usr/sbin;/usr/bin;/sbin;/bin;/usr/X11R6/bin] <applypatch> Where is your applypatch program? [] 2eme terminal ola@ola:~/koha­3.00.01­stable$ sudo apt­cache search applypatch makepatch ­ generate/apply patch files with more functionality than plain diff ola@ola:~/koha­3.00.01­stable$ sudo apt­get install makepatch Lecture des listes de paquets... Fait Construction de l'arbre des dépendances Lecture des informations d'état... Fait Les NOUVEAUX paquets suivants seront installés : makepatch 0 mis à jour, 1 nouvellement installés, 0 à enlever et 0 non mis à jour. Il est nécessaire de prendre 39,6ko dans les archives. Après cette opération, 152ko d'espace disque supplémentaires seront utilisés. Réception de : 1 http://ubuntu.bj.refer.org intrepid/universe makepatch 2.00.12­1 [39,6kB] 39,6ko réceptionnés en 0s (583ko/s) Sélection du paquet makepatch précédemment désélectionné. (Lecture de la base de données... 112725 fichiers et répertoires déjà installés.) Dépaquetage de makepatch (à partir de .../makepatch_2.00.12­1_all.deb) ... Traitement des « déclenchements (triggers) » pour « man­db »... Paramétrage de makepatch (2.00.12­1) ... ola@ola:~/koha­3.00.01­stable$ which applypatch /usr/bin/applypatch ola@ola:~/koha­3.00.01­stable$ 1er terminal Where is your applypatch program? [] /usr/bin/applypatch <pager> What is your favorite pager program? [/usr/bin/less] <shell> What is your favorite shell? [/bin/bash] When CPAN.pm uses the tar command, which switch for the verbosity shall be used? Choose 'none' for quiet operation, 'v' for file name listing, 'vv' for full listing. <tar_verbosity> Tar command verbosity level (none or v or vv)? [v] When CPAN.pm loads a module it needs for some optional feature, it usually reports about module name and version. Choose 'v' to get this message, 'none' to suppress it. <load_module_verbosity> Verbosity level for loading modules (none or v)? [v] When the CPAN shell is started it normally displays a greeting message that contains the running version and the status of readline support. <inhibit_startup_message> Do you want to turn this message off? [no] When you have Module::Build installed and a module comes with both a Makefile.PL and a Build.PL, which shall have precedence? The main two standard installer modules are the old and well established ExtUtils::MakeMaker (for short: EUMM) which uses the Makefile.PL. And the next generation installer Module::Build (MB) which works with the Build.PL (and often comes with a Makefile.PL too). If a module comes only with one of the two we will use that one but if both are supplied then a decision must be made between EUMM and MB. See also http://rt.cpan.org/Ticket/Display.html?id=29235 for a discussion about the right default. Or, as a third option you can choose RAND which will make a random decision (something regular CPAN testers will enjoy). <prefer_installer> In case you can choose between running a Makefile.PL or a Build.PL, which installer would you prefer (EUMM or MB or RAND)? [MB] Every Makefile.PL is run by perl in a separate process. Likewise we run 'make' and 'make install' in separate processes. If you have any parameters (e.g. PREFIX, LIB, UNINST or the like) you want to pass to the calls, please specify them here. If you don't understand this question, just press ENTER. Typical frequently used settings: PREFIX=~/perl # non­root users (please see manual for more hints) <makepl_arg> Parameters for the 'perl Makefile.PL' command? [INSTALLDIRS=site] Parameters for the 'make' command? Typical frequently used setting: ­j3 # dual processor system (on GNU make) <make_arg> Your choice: [] Do you want to use a different make command for 'make install'? Cautious people will probably prefer: su root ­c make or sudo make or /path1/to/sudo ­u admin_account /path2/to/make <make_install_make_command> or some such. Your choice: [/usr/bin/make] Parameters for the 'make install' command? Typical frequently used setting: UNINST=1 # to always uninstall potentially conflicting files <make_install_arg> Your choice: [] A Build.PL is run by perl in a separate process. Likewise we run './Build' and './Build install' in separate processes. If you have any parameters you want to pass to the calls, please specify them here. Typical frequently used settings: ­­install_base /home/xxx # different installation directory <mbuildpl_arg> Parameters for the 'perl Build.PL' command? [] Parameters for the './Build' command? Setting might be: ­­extra_linker_flags ­L/usr/foo/lib # non­standard library location <mbuild_arg> Your choice: [] Do you want to use a different command for './Build install'? Sudo users will probably prefer: su root ­c ./Build or sudo ./Build or /path1/to/sudo ­u admin_account ./Build <mbuild_install_build_command> or some such. Your choice: [./Build] Parameters for the './Build install' command? Typical frequently used setting: ­­uninst 1 # uninstall conflicting files <mbuild_install_arg> Your choice: [] Sometimes you may wish to leave the processes run by CPAN alone without caring about them. Because the Makefile.PL or the Build.PL sometimes contains question you're expected to answer, you can set a timer that will kill a 'perl Makefile.PL' process after the specified time in seconds. If you set this value to 0, these processes will wait forever. This is the default and recommended setting. <inactivity_timeout> Timeout for inactivity during {Makefile,Build}.PL? [0] If you're accessing the net via proxies, you can specify them in the CPAN configuration or via environment variables. The variable in the $CPAN::Config takes precedence. <ftp_proxy> Your ftp_proxy? [] <http_proxy> Your http_proxy? [] <no_proxy> Your no_proxy? [] <ftp_passive> Shall we always set the FTP_PASSIVE environment variable when dealing with ftp download (yes/no)? [yes] CPAN.pm changes the current working directory often and needs to determine its own current working directory. Per default it uses Cwd::cwd but if this doesn't work on your system for some reason, alternatives can be configured according to the following table: cwd Cwd::cwd getcwd Cwd::getcwd fastcwd Cwd::fastcwd backtickcwd external command cwd <getcwd> Preferred method for determining the current working directory? [cwd] The prompt of the cpan shell can contain the current command number for easier tracking of the session or be a plain string. <commandnumber_in_prompt> Do you want the command number in the prompt (yes/no)? [yes] When using Term::ReadLine, you can turn ornaments on so that your input stands out against the output from CPAN.pm. <term_ornaments> Do you want to turn ornaments on? [yes] The next option deals with the charset (aka character set) your terminal supports. In general, CPAN is English speaking territory, so the charset does not matter much but some CPAN have names that are outside the ASCII range. If your terminal supports UTF­8, you should say no to the next question. If it expects ISO­8859­1 (also known as LATIN1) then you should say yes. If it supports neither, your answer does not matter because you will not be able to read the names of some authors anyway. If you answer no, names will be output in UTF­8. <term_is_latin> Your terminal expects ISO­8859­1 (yes/no)? [yes] If you have one of the readline packages (Term::ReadLine::Perl, Term::ReadLine::Gnu, possibly others) installed, the interactive CPAN shell will have history support. The next two questions deal with the filename of the history file and with its size. If you do not want to set this variable, please hit SPACE RETURN to the following question. If you have one of the readline packages (Term::ReadLine::Perl, Term::ReadLine::Gnu, possibly others) installed, the interactive CPAN shell will have history support. The next two questions deal with the filename of the history file and with its size. If you do not want to set this variable, please hit SPACE RETURN to the following question. <histfile> File to save your history? [/home/ola/.cpan/histfile] <histsize> Number of lines to save? [100] The 'd' and the 'm' command normally only show you information they have in their in­memory database and thus will never connect to the internet. If you set the 'show_upload_date' variable to true, 'm' and 'd' will additionally show you the upload date of the module or distribution. Per default this feature is off because it may require a net connection to get at the upload date. <show_upload_date> Always try to show upload date with 'd' and 'm' command (yes/no)? [no] During the 'r' command CPAN.pm finds modules without version number. When the command finishes, it prints a report about this. If you want this report to be very verbose, say yes to the following variable. <show_unparsable_versions> Show all individual modules that have no $VERSION? [no] During the 'r' command CPAN.pm finds modules with a version number of zero. When the command finishes, it prints a report about this. If you want this report to be very verbose, say yes to the following variable. <show_zero_versions> Show all individual modules that have a $VERSION of zero? [no] You have no /home/ola/.cpan/sources/MIRRORED.BY I'm trying to fetch one CPAN: LWP::UserAgent loaded ok (v5.810) I would like to connect to one of the following sites to get 'MIRRORED.BY': http://www.perl.org/CPAN/ ftp://ftp.perl.org/pub/CPAN/ Is it OK to try to connect to the Internet? [yes] Fetching with LWP: http://www.perl.org/CPAN/MIRRORED.BY Now we need to know where your favorite CPAN sites are located. Push a few sites onto the array (just in case the first on the array won't work). If you are mirroring CPAN to your local workstation, specify a file: URL. First, pick a nearby continent and country by typing in the number(s) in front of the item(s) you want to select. You can pick several of each, separated by spaces. Then, you will be presented with a list of URLs of CPAN mirrors in the countries you selected, along with previously selected URLs. Select some of those URLs, or just keep the old list. Finally, you will be prompted for any extra URLs ­­ file:, ftp:, or http: ­­ that host a CPAN mirror. (1) Africa (2) Asia (3) Central America (4) Europe (5) North America (6) Oceania (7) South America Select your continent (or several nearby continents) [] 4 choisir ici le mirroir le plus proche de votre site
(1) Austria (2) Belgium (3) Bosnia and Herzegovina (4) Bulgaria (5) Croatia (6) Czech Republic (7) Denmark (8) Finland (9) France (10) Germany (11) Greece (12) Iceland (13) Ireland (14) Italy (15) Latvia (16) Lithuania 12 more items, hit RETURN to show them Select your country (or several nearby countries) [] 9 Moi j'ai choisi la France
(1) ftp://cpan.cict.fr/pub/CPAN/ (2) ftp://distrib­coffee.ipsl.jussieu.fr/pub/mirrors/cpan/ (3) ftp://ftp.erasme.org/pub/CPAN/ (4) ftp://ftp.u­strasbg.fr/CPAN (5) ftp://mir1.ovh.net/ftp.cpan.org (6) http://cpan.enstimac.fr/ Select as many URLs as you like (by number), put them on one line, separated by blanks, hyphenated ranges allowed e.g. '1 4 5' or '7 1­4 8' [] 6 5 4 2 1 Enter another URL or RETURN to quit: [] New set of picks: http://cpan.enstimac.fr/ commit: wrote '/etc/perl/CPAN/Config.pm' Terminal does not support AddHistory. cpan shell ­­ CPAN exploration and modules installation (v1.9205) ReadLine support available (maybe install Bundle::CPAN or Bundle::CPANxxl?) cpan[1]> J'ai un miroir cpan local que je vais préciser avec les trois commandes qui vont suivre: le miroir est:http://dragon.uac.bj/miroir/minicpan/ Je parle de ces commandes à titre indicatif pour ceux qui auront des miroirs cpan soit sur une clé soit sur une machine plus proche. Si non vous devez simplement lancer la commande install suivi e de la liste des modules telle qu'affichée plus loin.
cpan[1]> o conf urllist http://dragon.uac.bj/miroir/minicpan/ Please use 'o conf commit' to make the config permanent! cpan[2]> o conf commit commit: wrote '/etc/perl/CPAN/Config.pm' cpan[3]> reload index CPAN: Storable loaded ok (v2.18) Fetching with LWP: http://dragon.uac.bj/miroir/minicpan/authors/01mailrc.txt.gz Going to read /home/ola/.cpan/sources/authors/01mailrc.txt.gz ............................................................................DONE Fetching with LWP: http://dragon.uac.bj/miroir/minicpan/modules/02packages.details.txt.gz Going to read /home/ola/.cpan/sources/modules/02packages.details.txt.gz Database was generated on Sun, 15 Mar 2009 02:28:34 GMT ............... New CPAN.pm version (v1.9304) available. [Currently running version is v1.9205] You might want to try install CPAN reload cpan to both upgrade CPAN.pm and run the new version without leaving the current session. .............................................................DONE Fetching with LWP: http://dragon.uac.bj/miroir/minicpan/modules/03modlist.data.gz Going to read /home/ola/.cpan/sources/modules/03modlist.data.gz ............................................................................DONE Going to write /home/ola/.cpan/Metadata cpan[4]> install MARC::Record Class::Accessor MARC::Charset MARC::File::XML Net::Z3950::ZOOM HTML::Template::Pro MARC::Crosswalk::DublinCore PDF::Reuse PDF::Reuse::Barcode Data::ICal GD::Barcode::UPCE XML::RSS Algorithm::CheckDigits::M43_001 Biblio::EndnoteStyle POE Schedule::At Appuyer sur la touche Entrée pour accepter la liste des dépendances à chaque fois que cpan vous le propose. Sur une Intrepid, à la fin de l'installation de cette liste nous avons le message d'erreur suivant.
Warning (usually harmless): 'YAML' not installed, will not store persistent state Could not read '/home/ola/.cpan/build/Net­Z3950­ZOOM­1.25­2CgtkY/META.yml'. Falling back to other methods to determine prerequisites Failed during this command: MIRK/Net­Z3950­ZOOM­1.25.tar.gz : writemakefile NO '/usr/bin/perl Makefile.PL INSTALLDIRS=site' returned status 512 ce qui montre que le NET::Z3950::ZOOM n'a pu être installer de plus il réclame le YAML nous installons d'abord le YAML dans le premier terminal cpan[5]> install YAML
Puis dans le 2ème terminal nous chercherons dans la liste le Z3950
2ème terminal
ola@ola:~/koha­3.00.01­stable$ sudo apt­cache search z3950 [sudo] password for ola: libnet­z3950­perl ­ transitional dummy package libnet­z3950­zoom­perl ­ Perl extension implementing the ZOOM API for Information Retrieval via Z39.50 libnet­z3950­simpleserver­perl ­ Perl API to the YAZ generic front­end server (Z39.50 server). ola@ola:~/koha­3.00.01­stable$ sudo apt­get install libnet­z3950­zoom­perl Lecture des listes de paquets... Fait Construction de l'arbre des dépendances Lecture des informations d'état... Fait Les paquets supplémentaires suivants seront installés : libmarc­record­perl Les NOUVEAUX paquets suivants seront installés : libmarc­record­perl libnet­z3950­zoom­perl 0 mis à jour, 2 nouvellement installés, 0 à enlever et 0 non mis à jour. Il est nécessaire de prendre 211ko dans les archives. Après cette opération, 737ko d'espace disque supplémentaires seront utilisés. Souhaitez­vous continuer [O/n] ? Réception de : 1 http://ubuntu.bj.refer.org intrepid/universe libmarc­record­perl 2.0.0­2 [97,5kB] Réception de : 2 http://ubuntu.bj.refer.org intrepid/universe libnet­z3950­zoom­perl 1.24­1 [114kB] 211ko réceptionnés en 0s (1237ko/s) Sélection du paquet libmarc­record­perl précédemment désélectionné. (Lecture de la base de données... 112733 fichiers et répertoires déjà installés.) Dépaquetage de libmarc­record­perl (à partir de .../libmarc­record­perl_2.0.0­2_all.deb) ... Sélection du paquet libnet­z3950­zoom­perl précédemment désélectionné. Dépaquetage de libnet­z3950­zoom­perl (à partir de .../libnet­z3950­zoom­perl_1.24­1_i386.deb) ... Traitement des « déclenchements (triggers) » pour « man­db »... Paramétrage de libmarc­record­perl (2.0.0­2) ... Paramétrage de libnet­z3950­zoom­perl (1.24­1) ... ola@ola:~/koha­3.00.01­stable$ Configuration de UTF8 au niveau de apache2 et mysql
Nous pouvons verifier si LAMP (Linux Apache Mysql Php) est installé sinon nous allons le choisir dans tasksel (se pointer au niveau de LAMP et appuyer sur ESPACE puis TABULATION ) 2ème terminal ola@ola:~/koha­3.00.01­stable$ sudo tasksel ola@ola:~/koha­3.00.01­stable$ sudo gedit /etc/apache2/httpd.conf
Puis ajouter les 2 lignes suivantes dans ce fichier qui est initialement vide
AddCharset UTF-8 .utf8
AddDefaultCharset
UTF-8
Enregistrez et fermez gedit
ola@ola:~/koha­3.00.01­stable$ sudo gedit /etc/mysql/my.cnf
puis ajouter les lignes suivantes à la section [mysqld]
init-connect = 'SET NAMES utf8'
character-set-server=utf8
collation-server=utf8_general_ci
character_set_client=utf8
ce qui donne la copie d'écran suivante:
Enregistrez et fermez gedit
Redémarrer ensuite apache et mysql
ola@ola:~/koha­3.00.01­stable$ sudo /etc/init.d/apache2 restart * Restarting web server apache2 apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName ... waiting apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName [ OK ] ola@ola:~/koha­3.00.01­stable$ sudo /etc/init.d/mysql restart * Stopping MySQL database server mysqld [ OK ] * Starting MySQL database server mysqld [ OK ] * Checking for corrupt, not cleanly closed and upgrade needing tables. ola@ola:~/koha­3.00.01­stable$ Création de la base de données Koha ola@ola:~/koha­3.00.01­stable$ mysql ­u root ­p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 29 Server version: 5.0.67­0ubuntu6 (Ubuntu) Type 'help;' or '\h' for help. Type '\c' to clear the buffer. (Attention le mot de passe à mettre pour la base de données koha vous sera demandé plutard ici j'ai choisi kohap comme le montre la commande suivante)
mysql> create database koha;
mysql> grant all privileges on koha.* to 'kohaadmin'@'localhost' identified by 'kohap'; Query OK, 0 rows affected (0.02 sec) mysql> flush privileges; Query OK, 0 rows affected (0.00 sec) mysql> exit Bye ola@ola:~/koha­3.00.01­stable$ Teste de " SAX Parser " et Correction si nécessaire
ola@ola:~/koha­3.00.01­stable$ ./misc/sax_parser_print.pl XML::SAX::Expat=HASH(0x9b72f18)
Si vous obtenez Pureperl ou Expat (comme c'est mon cas )au lieu de Parser pour le message précédent alors :
ola@ola:~/koha­3.00.01­stable$ sudo gedit /etc/perl/XML/SAX/ParserDetails.ini modifier ce fichier comme suit (c'est à dire commenter les parties Pureperl et Expat avec des #):
on refait ensuite le test ola@ola:~/koha­3.00.01­stable$ ./misc/sax_parser_print.pl XML::LibXML::SAX::Parser=HASH(0x923ce38) ola@ola:~/koha­3.00.01­stable$ Installation du module Perl DBD::mysql avec test ola@ola:~/koha­3.00.01­stable$ mysql ­u root ­p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 30 Server version: 5.0.67­0ubuntu6 (Ubuntu) Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> create database test; Query OK, 1 row affected (0.00 sec) mysql> grant all on test.* to 'test'@'localhost' identified by 'test'; Query OK, 0 rows affected (0.00 sec) mysql> flush privileges; Query OK, 0 rows affected (0.00 sec) mysql> quit Bye ola@ola:~/koha­3.00.01­stable$ sudo cpan [sudo] password for ola: Terminal does not support AddHistory. cpan shell ­­ CPAN exploration and modules installation (v1.9205) ReadLine support available (maybe install Bundle::CPAN or Bundle::CPANxxl?) cpan[1]> o conf makepl_arg makepl_arg [INSTALLDIRS=site] Type 'o conf' to view all configuration items cpan[2]> o conf makepl_arg "­­testdb=test ­­testuser=test ­­testpass=test" makepl_arg [­­testdb=test ­­testuser=test ­­testpass=test] Please use 'o conf commit' to make the config permanent! cpan[3]> install DBD::mysql Installing /usr/local/lib/perl/5.10.0/auto/DBD/mysql/mysql.so Installing /usr/local/lib/perl/5.10.0/auto/DBD/mysql/mysql.bs Installing /usr/local/lib/perl/5.10.0/Bundle/DBD/mysql.pm Installing /usr/local/lib/perl/5.10.0/DBD/mysql.pm Installing /usr/local/lib/perl/5.10.0/DBD/mysql/INSTALL.pod Installing /usr/local/lib/perl/5.10.0/DBD/mysql/GetInfo.pm Installing /usr/local/man/man3/Bundle::DBD::mysql.3pm Installing /usr/local/man/man3/DBD::mysql.3pm Installing /usr/local/man/man3/DBD::mysql::INSTALL.3pm Writing /usr/local/lib/perl/5.10.0/auto/DBD/mysql/.packlist Appending installation info to /usr/local/lib/perl/5.10.0/perllocal.pod CAPTTOFU/DBD­mysql­4.010.tar.gz /usr/bin/make install ­­ OK cpan[4]> o conf makepl_arg 'INSTALLDIRS=site' makepl_arg [INSTALLDIRS=site] Please use 'o conf commit' to make the config permanent! cpan[5]> o conf commit commit: wrote '/etc/perl/CPAN/Config.pm' cpan[6]> exit
Terminal does not support GetHistory. Lockfile removed. ola@ola:~/koha­3.00.01­stable$ mysql ­u root ­p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 65 Server version: 5.0.67­0ubuntu6 (Ubuntu) Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> drop database test; Query OK, 0 rows affected (0.01 sec) mysql> quit Bye ola@ola:~/koha­3.00.01­stable$ perl Makefile.PL By default, Koha can be installed in one of three ways: standard: Install files in conformance with the Filesystem Hierarchy Standard (FHS). This is the default mode and should be used when installing a production Koha system. On Unix systems, root access is needed to complete a standard installation. single: Install files under a single directory. This option is useful for installing Koha without root access, e.g., on a web host that allows CGI scripts and MySQL databases but requires the user to keep all files under the user's HOME directory. dev: Create a set of symbolic links and configuration files to allow Koha to run directly from the source distribution. This mode is useful for developers who want to run Koha from a git clone. Installation mode (dev, single, standard) [standard] Please specify the directory under which most Koha files will be installed. Note that if you are planning in installing more than one instance of Koha, you may want to modify the last component of the directory path, which will be used as the package name in the FHS layout. Base installation directory [/usr/share/koha] Since you are using the 'standard' install mode, you should run 'make install' as root. However, it is recommended that a non­root user (on Unix and Linux platforms) have ownership of Koha's files, including the Zebra indexes if applicable. Please specify a user account. This user account does not need to exist right now, but it needs to exist before you run 'make install'. Please note that for security reasons, this user should not be the same as the user account Apache runs under. User account [koha] Please specify the group that should own Koha's files. As above, this group need not exist right now, but should be created before you run 'make install'. Group [koha] Please specify which database engine you will use to store data in Koha. The choices are MySQL and PostgreSQL; please note that at the moment PostgreSQL support is highly experimental. DBMS to use (Pg, mysql) [mysql] Please specify the name or address of your database server. Note that the database does not have to exist at this point, it can be created after running 'make install' and before you try using Koha for the first time. Database server [localhost] Please specify the port used to connect to the DMBS [3306] Please specify the name of the database to be used by Koha [koha] Please specify the user that owns the database to be used by Koha [kohaadmin] Please specify the password of the user that owns the database to be used by Koha [katikoan] kohap (c'est le mot de passe précisé lors de la création de la base de données koha qu'il mettre ici)
Koha can use the Zebra search engine for high­performance searching of bibliographic and authority records. If you have installed the Zebra software and would like to use it, please answer 'yes' to the following question. Otherwise, Koha will default to using its internal search engine. Please note that if you choose *NOT* to install Zebra, koha­conf.xml will still contain some references to Zebra settings. Those references will be ignored by Koha. Install the Zebra configuration files? (no, yes) [yes] no (Ne pas oublier de preciser ici no)
Would you like to run the database­dependent test suite? (no, yes) [no] Koha will be installed with the following configuration parameters: DB_HOST localhost DB_NAME koha DB_PASS kohap DB_PORT 3306 DB_TYPE mysql DB_USER kohaadmin INSTALL_BASE /usr/share/koha INSTALL_MODE standard INSTALL_ZEBRA no KOHA_GROUP koha KOHA_INSTALLED_VERSION 3.00.01.005 KOHA_USER koha RUN_DATABASE_TESTS no and in the following directories: DOC_DIR $(DESTDIR)/usr/share/koha/doc INTRANET_CGI_DIR $(DESTDIR)/usr/share/koha/intranet/cgi­bin INTRANET_TMPL_DIR $(DESTDIR)/usr/share/koha/intranet/htdocs/intranet­tmpl INTRANET_WWW_DIR $(DESTDIR)/usr/share/koha/intranet/htdocs KOHA_CONF_DIR $(DESTDIR)/etc/koha LOG_DIR $(DESTDIR)/var/log/koha MAN_DIR $(DESTDIR)/usr/share/koha/man MISC_DIR $(DESTDIR)/usr/share/koha/misc OPAC_CGI_DIR $(DESTDIR)/usr/share/koha/opac/cgi­bin OPAC_TMPL_DIR $(DESTDIR)/usr/share/koha/opac/htdocs/opac­tmpl OPAC_WWW_DIR $(DESTDIR)/usr/share/koha/opac/htdocs PAZPAR2_CONF_DIR $(DESTDIR)/etc/koha/pazpar2 PERL_MODULE_DIR $(DESTDIR)/usr/share/koha/lib SCRIPT_DIR $(DESTDIR)/usr/share/koha/bin SCRIPT_NONDEV_DIR $(DESTDIR)/usr/share/koha/bin ZEBRA_CONF_DIR $(DESTDIR)/etc/koha/zebradb ZEBRA_DATA_DIR $(DESTDIR)/var/lib/koha/zebradb ZEBRA_LOCK_DIR $(DESTDIR)/var/lock/koha/zebradb ZEBRA_RUN_DIR $(DESTDIR)/var/run/koha/zebradb To change any configuration setting, please run perl Makefile.PL again. To override one of the target directories, you can do so on the command line like this: perl Makefile.PL PERL_MODULE_DIR=/usr/share/perl/5.8 You can also set different default values for parameters or override directory locations by using environment variables. For example: export DB_USER=my_koha perl Makefile.PL or DB_USER=my_koha DOC_DIR=/usr/local/info perl Makefile.PL If installing on a Win32 platform, be sure to use: 'dmake ­x MAXLINELENGTH=300000' Checking if your kit is complete... Looks good [Sun Mar 15 23:20:05 2009] Makefile.PL: Warning: prerequisite CGI::Session::Serialize::yaml 4.20 not found. [Sun Mar 15 23:20:06 2009] Makefile.PL: Warning: prerequisite Email::Date 1.103 not found. [Sun Mar 15 23:20:06 2009] Makefile.PL: Warning: prerequisite GD 2.39 not found. [Sun Mar 15 23:20:06 2009] Makefile.PL: Warning: prerequisite HTML::Scrubber 0.08 not found. [Sun Mar 15 23:20:08 2009] Makefile.PL: Warning: prerequisite SMS::Send 0.05 not found. Writing Makefile for koha ola@ola:~/koha­3.00.01­stable$ Nous constatons encore qu'il manque de modules perl à installer nous allons les installer avec cpan ola@ola:~/koha­3.00.01­stable$ sudo cpan [sudo] password for ola: Terminal does not support AddHistory. cpan shell ­­ CPAN exploration and modules installation (v1.9205) ReadLine support available (maybe install Bundle::CPAN or Bundle::CPANxxl?) cpan[1]> install CGI::Session::Serialize::yaml Email::Date GD HTML::Scrubber SMS::Send CPAN: Storable loaded ok (v2.18) Going to read /home/ola/.cpan/Metadata Database was generated on Sun, 15 Mar 2009 02:28:34 GMT CPAN: YAML loaded ok (v0.68) Going to read /home/ola/.cpan/build/ ............................................................................DONE Found 2 old builds, restored the state of 2 Running install for module 'CGI::Session::Serialize::yaml' Running make for R/RS/RSAVAGE/CGI­Session­Serialize­yaml­4.24.tgz CPAN: LWP::UserAgent loaded ok (v5.810) CPAN: Time::HiRes loaded ok (v1.9711) Fetching with LWP: http://dragon.uac.bj/miroir/minicpan/authors/id/R/RS/RSAVAGE/CGI­Session­Serialize­
yaml­4.24.tgz CPAN: Digest::SHA loaded ok (v5.45) Fetching with LWP: http://dragon.uac.bj/miroir/minicpan/authors/id/R/RS/RSAVAGE/CHECKSUMS Checksum for /home/ola/.cpan/sources/authors/id/R/RS/RSAVAGE/CGI­Session­Serialize­
yaml­4.24.tgz ok Scanning cache /home/ola/.cpan/build for sizes ............................................................................DONE CGI­Session­Serialize­yaml­4.24/ CGI­Session­Serialize­yaml­4.24/INSTALL CGI­Session­Serialize­yaml­4.24/Changes.txt CGI­Session­Serialize­yaml­4.24/t/ CGI­Session­Serialize­yaml­4.24/t/g4_dbfile_yaml.t CGI­Session­Serialize­yaml­4.24/t/pod.t CGI­Session­Serialize­yaml­4.24/Changelog.ini CGI­Session­Serialize­yaml­4.24/MANIFEST CGI­Session­Serialize­yaml­4.24/lib/ CGI­Session­Serialize­yaml­4.24/lib/CGI/ CGI­Session­Serialize­yaml­4.24/lib/CGI/Session/ CGI­Session­Serialize­yaml­4.24/lib/CGI/Session/Serialize/ CGI­Session­Serialize­yaml­4.24/lib/CGI/Session/Serialize/yaml.pm CGI­Session­Serialize­yaml­4.24/META.yml CGI­Session­Serialize­yaml­4.24/README CGI­Session­Serialize­yaml­4.24/Build.PL CGI­Session­Serialize­yaml­4.24/Makefile.PL CPAN: File::Temp loaded ok (v0.18) CPAN: Module::Build loaded ok (v0.280801) CPAN.pm: Going to build R/RS/RSAVAGE/CGI­Session­Serialize­yaml­4.24.tgz Checking whether your kit is complete... Looks good Checking prerequisites... ­ ERROR: Test::Pod is not installed ERRORS/WARNINGS FOUND IN PREREQUISITES. You may wish to install the versions of the modules indicated above before proceeding with this installation Creating new 'Build' script for 'CGI­Session­Serialize­yaml' version '4.24' ­­­­ Unsatisfied dependencies detected during ­­­­ ­­­­ RSAVAGE/CGI­Session­Serialize­yaml­4.24.tgz ­­­­ Test::Pod [build_requires] Shall I follow them and prepend them to the queue of modules we are processing right now? [yes] Appending installation info to /usr/local/lib/perl/5.10.0/perllocal.pod ADAMK/SMS­Send­0.05.tar.gz /usr/bin/make install ­­ OK Failed during this command: LDS/GD­2.41.tar.gz : writemakefile NO '/usr/bin/perl Makefile.PL INSTALLDIRS=site' returned status 512 cpan[2]> Nous pouvons constater ici que le module GD ne s'est pas bien installé et l'erreur semble provenir de la cofuguration de cpan nous allons donc refaire la configuration en supprimant le dossier .cpan de notre utilisateur sudo et le fichier de configuration de cpan /etc/perl/CPAN/Config.pm pour cela:
cpan[2]> exit
ola@ola:~/koha­3.00.01­stable$ sudo rm ­r /home/ola/.cpan/ (Ne pas oublier de remplacer ola par votre utilisateur à vous) [sudo] password for ola: ola@ola:~/koha­3.00.01­stable$ sudo rm /etc/perl/CPAN/Config.pm ola@ola:~/koha­3.00.01­stable$ sudo cpan CPAN is the world­wide archive of perl resources. It consists of about 300 sites that all replicate the same contents 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, lots of things have to be configured. Fortunately, most of them can be determined automatically. If you prefer the automatic configuration, answer 'yes' below. If you prefer to enter a dialog instead, you can answer 'no' to this question and I'll let you configure in small steps one thing after the other. (Note: you can revisit this dialog anytime later by typing 'o conf init' at the cpan prompt.) Would you like me to configure as much as possible automatically? [yes] ­­­­­­­
­­­­­­­
­­­­­­­
During the 'r' command CPAN.pm finds modules with a version number of zero. When the command finishes, it prints a report about this. If you want this report to be very verbose, say yes to the following variable. <show_zero_versions> Show all individual modules that have a $VERSION of zero? [no] Autoconfigured everything but 'urllist'. Please call 'o conf init urllist' to configure your CPAN server(s) now! commit: wrote '/etc/perl/CPAN/Config.pm' Terminal does not support AddHistory. cpan shell ­­ CPAN exploration and modules installation (v1.9205) ReadLine support available (maybe install Bundle::CPAN or Bundle::CPANxxl?) cpan[1]> install GD Running install for module 'GD' Running make for L/LD/LDS/GD­2.41.tar.gz Fetching with LWP: http://dragon.uac.bj/miroir/minicpan/authors/id/L/LD/LDS/GD­2.41.tar.gz CPAN: Digest::SHA loaded ok (v5.45) Fetching with LWP: http://dragon.uac.bj/miroir/minicpan/authors/id/L/LD/LDS/CHECKSUMS Checksum for /home/ola/.cpan/sources/authors/id/L/LD/LDS/GD­2.41.tar.gz ok Scanning cache /home/ola/.cpan/build for sizes DONE GD­2.41/ GD­2.41/t/ GD­2.41/t/test.out.3.jpeg GD­2.41/t/GD.t GD­2.41/t/tile.jpeg GD­2.41/t/test.out.4.jpeg GD­2.41/t/test.out.5.jpeg GD­2.41/t/test.out.6.jpeg GD­2.41/t/test.out.7.jpeg GD­2.41/t/test.out.8.jpeg GD­2.41/t/test.out.9.jpeg GD­2.41/t/test.out.3.png­1 GD­2.41/t/Polyline.t GD­2.41/t/test.out.4.png­1 GD­2.41/t/test.out.4.png­2 GD­2.41/t/test.out.10.png­1 GD­2.41/t/test.out.10.png­2 GD­2.41/t/test.out.10.png­3 GD­2.41/t/test.out.1.png GD­2.41/t/test.out.2.gif GD­2.41/t/test.out.2.png GD­2.41/t/test.out.3.gif GD­2.41/t/test.out.3.png GD­2.41/t/test.out.4.gif GD­2.41/t/test.out.4.png GD­2.41/t/test.out.5.gif GD­2.41/t/test.out.5.png GD­2.41/t/test.out.6.gif GD­2.41/t/test.out.6.png GD­2.41/t/test.out.7.gif GD­2.41/t/test.out.7.png GD­2.41/t/test.out.8.gif GD­2.41/t/test.out.8.png GD­2.41/t/test.out.9.gif GD­2.41/t/test.out.9.png GD­2.41/t/test.out.5.png­1 GD­2.41/t/Generic.ttf GD­2.41/t/test.out.6.png­1 GD­2.41/t/test.out.7.png­1 GD­2.41/t/frog.jpg GD­2.41/t/frog.xpm GD­2.41/t/test.out.10.jpeg GD­2.41/t/test.out.8.png­1 GD­2.41/t/test.out.8.png­2 GD­2.41/t/test.out.8.png­3 GD­2.41/t/test.out.8.png­4 GD­2.41/t/test.out.8.png­5 GD­2.41/t/test.out.8.png­6 GD­2.41/t/tile.gif GD­2.41/t/tile.png GD­2.41/t/test.out.2.png­1 GD­2.41/t/test.out.9.png­1 GD­2.41/t/test.out.9.png­2 GD­2.41/t/palettemap.png GD­2.41/t/test.out.10.gif GD­2.41/t/test.out.10.png GD­2.41/t/test.out.2.jpeg GD­2.41/GD/ GD­2.41/GD/Group.pm GD­2.41/GD/Polygon.pm GD­2.41/GD/Simple.pm GD­2.41/GD/Image.pm.PLS GD­2.41/GD/Polyline.pm GD­2.41/GD.pm GD­2.41/GD.xs GD­2.41/demos/ GD­2.41/demos/brushes.pl GD­2.41/demos/font_list.png GD­2.41/demos/fonttest GD­2.41/demos/polys.pl GD­2.41/demos/fills.pl GD­2.41/demos/truetype_test GD­2.41/demos/shapes.pl GD­2.41/demos/copies.pl GD­2.41/demos/ttf.pl GD­2.41/demos/gd_example.cgi GD­2.41/demos/tile.png GD­2.41/demos/polyline.pl GD­2.41/demos/transform.pl GD­2.41/qd.pl GD­2.41/README GD­2.41/Makefile.PL GD­2.41/README.QUICKDRAW GD­2.41/META.yml GD­2.41/typemap GD­2.41/bdf_scripts/ GD­2.41/bdf_scripts/README GD­2.41/bdf_scripts/bdf2gdfont.PLS GD­2.41/bdf_scripts/bdftogd GD­2.41/bdf_scripts/bdf2gdfont.pl GD­2.41/README.unix GD­2.41/ChangeLog GD­2.41/MANIFEST CPAN: File::Temp loaded ok (v0.18) CPAN.pm: Going to build L/LD/LDS/GD­2.41.tar.gz **UNRECOVERABLE ERROR** Could not find gdlib­config in the search path. Please install libgd 2.0.28 or higher. If you want to try to compile anyway, please rerun this script with the option ­­ignore_missing_gd. Warning: No success on command[/usr/bin/perl Makefile.PL INSTALLDIRS=site] LDS/GD­2.41.tar.gz /usr/bin/perl Makefile.PL INSTALLDIRS=site ­­ NOT OK Running make test Make had some problems, won't test Running make install Make had some problems, won't install Failed during this command: LDS/GD­2.41.tar.gz : writemakefile NO '/usr/bin/perl Makefile.PL INSTALLDIRS=site' returned status 512 (cette fois ci il se plain de libgd version 2 nous allons donc le lui installer)
cpan[5]> exit ola@ola:~/koha­3.00.01­stable$ sudo apt­get install libgd2­xpm libgd2­xpm­dev Lecture des listes de paquets... Fait Construction de l'arbre des dépendances Lecture des informations d'état... Fait Les paquets supplémentaires suivants seront installés : libexpat1­dev libfontconfig1­dev libfreetype6­dev libjpeg62­dev libpng12­dev libpthread­stubs0 libpthread­stubs0­dev libx11­dev libxau­dev libxcb­xlib0­dev libxcb1­dev libxdmcp­dev libxext­dev libxi­dev libxpm­dev x11proto­core­dev x11proto­input­dev x11proto­kb­dev x11proto­xext­dev xtrans­dev Les NOUVEAUX paquets suivants seront installés : libexpat1­dev libfontconfig1­dev libfreetype6­dev libgd2­xpm­dev libjpeg62­dev libpng12­dev libpthread­stubs0 libpthread­stubs0­dev libx11­dev libxau­dev libxcb­xlib0­dev libxcb1­dev libxdmcp­dev libxext­dev libxi­dev libxpm­dev x11proto­core­dev x11proto­input­dev x11proto­kb­dev x11proto­xext­dev xtrans­dev 0 mis à jour, 21 nouvellement installés, 0 à enlever et 0 non mis à jour. Il est nécessaire de prendre 0o/4404ko dans les archives. Après cette opération, 15,1Mo d'espace disque supplémentaires seront utilisés. Souhaitez­vous continuer [O/n] ? Sélection du paquet x11proto­core­dev précédemment désélectionné. (Lecture de la base de données... 112799 fichiers et répertoires déjà installés.) Dépaquetage de x11proto­core­dev (à partir de .../x11proto­core­dev_7.0.12­1ubuntu0.1_all.deb) ... Sélection du paquet libxau­dev précédemment désélectionné. Dépaquetage de libxau­dev (à partir de .../libxau­dev_1%3a1.0.3­3_i386.deb) ... Sélection du paquet libxdmcp­dev précédemment désélectionné. Dépaquetage de libxdmcp­dev (à partir de .../libxdmcp­dev_1%3a1.0.2­3_i386.deb) ... Sélection du paquet x11proto­xext­dev précédemment désélectionné. Dépaquetage de x11proto­xext­dev (à partir de .../x11proto­xext­dev_7.0.2­6build1_all.deb) ... Sélection du paquet libxext­dev précédemment désélectionné. Dépaquetage de libxext­dev (à partir de .../libxext­dev_2%3a1.0.4­1_i386.deb) ... Sélection du paquet libxi­dev précédemment désélectionné. Dépaquetage de libxi­dev (à partir de .../libxi­dev_2%3a1.1.3­2build1_i386.deb) ... Sélection du paquet x11proto­input­dev précédemment désélectionné. Dépaquetage de x11proto­input­dev (à partir de .../x11proto­input­dev_1.4.3­2ubuntu6_all.deb) ... Sélection du paquet x11proto­kb­dev précédemment désélectionné. Dépaquetage de x11proto­kb­dev (à partir de .../x11proto­kb­dev_1.0.3­3ubuntu1_all.deb) ... Sélection du paquet xtrans­dev précédemment désélectionné. Dépaquetage de xtrans­dev (à partir de .../xtrans­dev_1.2­2_all.deb) ... Sélection du paquet libpthread­stubs0 précédemment désélectionné. Dépaquetage de libpthread­stubs0 (à partir de .../libpthread­stubs0_0.1­2_i386.deb) ... Sélection du paquet libpthread­stubs0­dev précédemment désélectionné. Dépaquetage de libpthread­stubs0­dev (à partir de .../libpthread­stubs0­dev_0.1­2_i386.deb) ... Sélection du paquet libxcb1­dev précédemment désélectionné. Dépaquetage de libxcb1­dev (à partir de .../libxcb1­dev_1.1­1.1_i386.deb) ... Sélection du paquet libxcb­xlib0­dev précédemment désélectionné. Dépaquetage de libxcb­xlib0­dev (à partir de .../libxcb­xlib0­dev_1.1­1.1_i386.deb) ... Sélection du paquet libx11­dev précédemment désélectionné. Dépaquetage de libx11­dev (à partir de .../libx11­dev_2%3a1.1.5­2ubuntu1.1_i386.deb) ... Sélection du paquet libxpm­dev précédemment désélectionné. Dépaquetage de libxpm­dev (à partir de .../libxpm­dev_1%3a3.5.7­1_i386.deb) ... Sélection du paquet libexpat1­dev précédemment désélectionné. Dépaquetage de libexpat1­dev (à partir de .../libexpat1­dev_2.0.1­4_i386.deb) ... Sélection du paquet libfreetype6­dev précédemment désélectionné. Dépaquetage de libfreetype6­dev (à partir de .../libfreetype6­dev_2.3.7­2ubuntu1_i386.deb) ... Sélection du paquet libfontconfig1­dev précédemment désélectionné. Dépaquetage de libfontconfig1­dev (à partir de .../libfontconfig1­dev_2.6.0­1ubuntu4_i386.deb) ... Sélection du paquet libjpeg62­dev précédemment désélectionné. Dépaquetage de libjpeg62­dev (à partir de .../libjpeg62­dev_6b­14_i386.deb) ... Sélection du paquet libpng12­dev précédemment désélectionné. Dépaquetage de libpng12­dev (à partir de .../libpng12­dev_1.2.27­1ubuntu0.1_i386.deb) ... Sélection du paquet libgd2­xpm­dev précédemment désélectionné. Dépaquetage de libgd2­xpm­dev (à partir de .../libgd2­xpm­
dev_2.0.36~rc1~dfsg­3ubuntu1_i386.deb) ... Traitement des « déclenchements (triggers) » pour « man­db »... Traitement des « déclenchements (triggers) » pour « doc­base »... Processing 3 added doc­base file(s)... Registering documents with scrollkeeper... Paramétrage de x11proto­core­dev (7.0.12­1ubuntu0.1) ... Paramétrage de libxau­dev (1:1.0.3­3) ... Paramétrage de libxdmcp­dev (1:1.0.2­3) ... Paramétrage de x11proto­kb­dev (1.0.3­3ubuntu1) ... Paramétrage de xtrans­dev (1.2­2) ... Paramétrage de libpthread­stubs0 (0.1­2) ... Paramétrage de libpthread­stubs0­dev (0.1­2) ... Paramétrage de libxcb1­dev (1.1­1.1) ... Paramétrage de libxcb­xlib0­dev (1.1­1.1) ... Paramétrage de libexpat1­dev (2.0.1­4) ... Paramétrage de libfreetype6­dev (2.3.7­2ubuntu1) ... Paramétrage de libfontconfig1­dev (2.6.0­1ubuntu4) ... Paramétrage de libjpeg62­dev (6b­14) ... Paramétrage de libpng12­dev (1.2.27­1ubuntu0.1) ... Paramétrage de x11proto­input­dev (1.4.3­2ubuntu6) ... Paramétrage de x11proto­xext­dev (7.0.2­6build1) ... Paramétrage de libx11­dev (2:1.1.5­2ubuntu1.1) ... Paramétrage de libxext­dev (2:1.0.4­1) ... Paramétrage de libxi­dev (2:1.1.3­2build1) ... Paramétrage de libxpm­dev (1:3.5.7­1) ... Paramétrage de libgd2­xpm­dev (2.0.36~rc1~dfsg­3ubuntu1) ... ola@ola:~/koha­3.00.01­stable$ sudo cpan Terminal does not support AddHistory. cpan shell ­­ CPAN exploration and modules installation (v1.9205) ReadLine support available (maybe install Bundle::CPAN or Bundle::CPANxxl?) cpan[1]> install GD ­­­­­­­­­­­­
­­­­­­­­­­­­
F iles found in blib/arch: installing files in blib/lib into architecture dependent library tree Installing /usr/local/lib/perl/5.10.0/auto/GD/GD.bs Installing /usr/local/lib/perl/5.10.0/auto/GD/GD.so Installing /usr/local/lib/perl/5.10.0/qd.pl Installing /usr/local/lib/perl/5.10.0/GD.pm Installing /usr/local/lib/perl/5.10.0/auto/GD/autosplit.ix Installing /usr/local/lib/perl/5.10.0/GD/Polygon.pm Installing /usr/local/lib/perl/5.10.0/GD/Image.pm Installing /usr/local/lib/perl/5.10.0/GD/Simple.pm Installing /usr/local/lib/perl/5.10.0/GD/Polyline.pm Installing /usr/local/man/man1/bdf2gdfont.pl.1p Installing /usr/local/man/man3/GD::Image.3pm Installing /usr/local/man/man3/GD::Polygon.3pm Installing /usr/local/man/man3/GD.3pm Installing /usr/local/man/man3/GD::Polyline.3pm Installing /usr/local/man/man3/GD::Simple.3pm Installing /usr/local/bin/bdf2gdfont.pl Writing /usr/local/lib/perl/5.10.0/auto/GD/.packlist Appending installation info to /usr/local/lib/perl/5.10.0/perllocal.pod LDS/GD­2.41.tar.gz /usr/bin/make install ­­ OK cpan[5]> exit Terminal does not support GetHistory. Lockfile removed. ola@ola:~/koha­3.00.01­stable$ perl Makefile.PL By default, Koha can be installed in one of three ways: standard: Install files in conformance with the Filesystem Hierarchy Standard (FHS). This is the default mode and should be used when installing a production Koha system. On Unix systems, root access is needed to complete a standard installation. single: Install files under a single directory. This option is useful for installing Koha without root access, e.g., on a web host that allows CGI scripts and MySQL databases but requires the user to keep all files under the user's HOME directory. dev: Create a set of symbolic links and configuration files to allow Koha to run directly from the source distribution. This mode is useful for developers who want to run Koha from a git clone. Installation mode (dev, single, standard) [standard] Please specify the directory under which most Koha files will be installed. Note that if you are planning in installing more than one instance of Koha, you may want to modify the last component of the directory path, which will be used as the package name in the FHS layout. Base installation directory [/usr/share/koha] Since you are using the 'standard' install mode, you should run 'make install' as root. However, it is recommended that a non­root user (on Unix and Linux platforms) have ownership of Koha's files, including the Zebra indexes if applicable. Please specify a user account. This user account does not need to exist right now, but it needs to exist before you run 'make install'. Please note that for security reasons, this user should not be the same as the user account Apache runs under. User account [koha] Please specify the group that should own Koha's files. As above, this group need not exist right now, but should be created before you run 'make install'. Group [koha] Please specify which database engine you will use to store data in Koha. The choices are MySQL and PostgreSQL; please note that at the moment PostgreSQL support is highly experimental. DBMS to use (Pg, mysql) [mysql] Please specify the name or address of your database server. Note that the database does not have to exist at this point, it can be created after running 'make install' and before you try using Koha for the first time. Database server [localhost] Please specify the port used to connect to the DMBS [3306] Please specify the name of the database to be used by Koha [koha] Please specify the user that owns the database to be used by Koha [kohaadmin] Please specify the password of the user that owns the database to be used by Koha [katikoan] kohap Koha can use the Zebra search engine for high­performance searching of bibliographic and authority records. If you have installed the Zebra software and would like to use it, please answer 'yes' to the following question. Otherwise, Koha will default to using its internal search engine. Please note that if you choose *NOT* to install Zebra, koha­conf.xml will still contain some references to Zebra settings. Those references will be ignored by Koha. no Install the Zebra configuration files? (no, yes) [yes]
Would you like to run the database­dependent test suite? (no, yes) [no] Koha will be installed with the following configuration parameters: DB_HOST localhost DB_NAME koha DB_PASS kohap DB_PORT 3306 DB_TYPE mysql DB_USER kohaadmin INSTALL_BASE /usr/share/koha INSTALL_MODE standard INSTALL_ZEBRA no KOHA_GROUP koha KOHA_INSTALLED_VERSION 3.00.01.005 KOHA_USER koha RUN_DATABASE_TESTS no and in the following directories: DOC_DIR $(DESTDIR)/usr/share/koha/doc INTRANET_CGI_DIR $(DESTDIR)/usr/share/koha/intranet/cgi­bin INTRANET_TMPL_DIR $(DESTDIR)/usr/share/koha/intranet/htdocs/intranet­tmpl INTRANET_WWW_DIR $(DESTDIR)/usr/share/koha/intranet/htdocs KOHA_CONF_DIR $(DESTDIR)/etc/koha LOG_DIR $(DESTDIR)/var/log/koha MAN_DIR $(DESTDIR)/usr/share/koha/man MISC_DIR $(DESTDIR)/usr/share/koha/misc OPAC_CGI_DIR $(DESTDIR)/usr/share/koha/opac/cgi­bin OPAC_TMPL_DIR $(DESTDIR)/usr/share/koha/opac/htdocs/opac­tmpl OPAC_WWW_DIR $(DESTDIR)/usr/share/koha/opac/htdocs PAZPAR2_CONF_DIR $(DESTDIR)/etc/koha/pazpar2 PERL_MODULE_DIR $(DESTDIR)/usr/share/koha/lib SCRIPT_DIR $(DESTDIR)/usr/share/koha/bin SCRIPT_NONDEV_DIR $(DESTDIR)/usr/share/koha/bin ZEBRA_CONF_DIR $(DESTDIR)/etc/koha/zebradb ZEBRA_DATA_DIR $(DESTDIR)/var/lib/koha/zebradb ZEBRA_LOCK_DIR $(DESTDIR)/var/lock/koha/zebradb ZEBRA_RUN_DIR $(DESTDIR)/var/run/koha/zebradb To change any configuration setting, please run perl Makefile.PL again. To override one of the target directories, you can do so on the command line like this: perl Makefile.PL PERL_MODULE_DIR=/usr/share/perl/5.8 You can also set different default values for parameters or override directory locations by using environment variables. For example: export DB_USER=my_koha perl Makefile.PL or DB_USER=my_koha DOC_DIR=/usr/local/info perl Makefile.PL If installing on a Win32 platform, be sure to use: 'dmake ­x MAXLINELENGTH=300000' Writing Makefile for koha ola@ola:~/koha­3.00.01­stable$ make Manifying blib/man3/misc::cronjobs::cloud­kw.3pm Manifying blib/man3/cataloguing::value_builder::unimarc_field_123d.3pm Manifying blib/man3/C4::Acquisition.3pm Manifying blib/man3/C4::Debug.3pm Manifying blib/man3/C4::OAI::DP.3pm Manifying blib/man3/C4::UploadedFile.3pm Manifying blib/man3/cataloguing::value_builder::unimarc_field_125b.3pm Manifying blib/man3/C4::BackgroundJob.3pm Manifying blib/man3/cataloguing::value_builder::unimarc_field_105.3pm Manifying blib/man3/cataloguing::value_builder::unimarc_field_115b.3pm Manifying blib/man3/opac::opac­dictionary.3pm Manifying blib/man3/serials::member­search.3pm /usr/bin/perl "­Iblib/arch" "­Iblib/lib" fix­perl­path.PL blib /usr/bin/perl "­Iblib/arch" "­Iblib/lib" rewrite­config.PL blib/KOHA_CONF_DIR/koha­conf.xml /usr/bin/perl "­Iblib/arch" "­Iblib/lib" rewrite­config.PL blib/KOHA_CONF_DIR/koha­httpd.conf /usr/bin/perl "­Iblib/arch" "­Iblib/lib" rewrite­config.PL blib/MISC_DIR/koha­install­log /usr/bin/perl "­Iblib/arch" "­Iblib/lib" rewrite­config.PL blib/PERL_MODULE_DIR/C4/Context.pm /usr/bin/perl "­Iblib/arch" "­Iblib/lib" rewrite­config.PL blib/SCRIPT_NONDEV_DIR/kohalib.pl ola@ola:~/koha­3.00.01­stable$ make test PERL_DL_NONLAZY=1 KOHA_CONF=blib/KOHA_CONF_DIR/koha­conf.xml /usr/bin/perl "­
MExtUtils::Command::MM" "­e" "test_harness(0, 'blib/PERL_MODULE_DIR', 'blib/arch')" t/*.t t/Amazon.......................ok t/Barcodes_PrinterConfig.......ok t/Bookfund.....................ok t/Bookseller...................ok t/Boolean......................ok t/Branch.......................ok t/Calendar.....................ok t/Charset......................ok t/Circulation_barcodedecode....ok t/Dates........................ok 1/126# # In order to run without DB access, this test will substitute 'us' # as your default date format. Export environmental variable KOHA_TEST_DATE_FORMAT # to override this default, or pass the value as an argument to this test script. # # NOTE: we test for the system handling dd=00 and 00 for TIME values, # therefore you *should* see some warnings 'Illegal date specified' related to those. # # Testing Legacy Functions: format_date and format_date_in_iso # Illegal date specified (year = 1952, month = 1, day = 00) at t/Dates.t line 58 Illegal date specified (year = 1952, month = 1, day = 00) at t/Dates.t line 61 # # Testing 4 formats. # Testing no input (defaults): # # Testing with valid inputs: Illegal date specified (year = 1952, month = 1, day = 00) at t/Dates.t line 80 Illegal date specified (year = 1952, month = 1, day = 00) at t/Dates.t line 80 Illegal date specified (year = 1952, month = 1, day = 00) at t/Dates.t line 80 Illegal date specified (year = 1952, month = 1, day = 00) at t/Dates.t line 80 # # Testing object independence from class # done. # Looks like you planned 126 tests but ran 9 extra. t/Dates........................dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 127­135 Failed 9/126 tests, 92.86% okay t/Debug........................# BEFORE use: $debug is not defined # BEFORE use: $cgi_debug is not defined t/Debug........................ok 1/3# AFTER use: $debug is 0 # AFTER use: $cgi_debug is 0 # Done. t/Debug........................ok t/dummy........................ok t/Input........................ok t/Koha.........................ok t/Languages....................ok t/Maintainance.................ok t/Output.......................ok t/Record.......................ok t/Review.......................ok t/Scrubber.....................ok 1/10# Note: scrubber test output will have whitespace collapsed for readability # done. t/Scrubber.....................ok t/Stats........................ok Failed Test Stat Wstat Total Fail List of Failed ­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­ t/Dates.t 255 65280 126 9 127­135 Failed 1/21 test scripts. ­9/189 subtests failed. Files=21, Tests=189, 10 wallclock secs ( 5.19 cusr + 0.62 csys = 5.81 CPU) Failed 1/21 test programs. ­9/189 subtests failed. make: *** [test_dynamic] Erreur 255 Dans mon cas le make test a échoué dans mon cas je ne sais pas pour quelle raison mais je vais essayé de continuer l'installation
ola@ola:~/koha­3.00.01­stable$ sudo adduser koha [sudo] password for ola: Ajout de l'utilisateur « koha »... Ajout du nouveau groupe « koha » (1001)... Ajout du nouvel utilisateur « koha » (1001) avec le groupe « koha »... Création du répertoire personnel « /home/koha »... Copie des fichiers depuis « /etc/skel »... Entrez le nouveau mot de passe UNIX : Retapez le nouveau mot de passe UNIX : passwd : le mot de passe a été mis à jour avec succès Modification des informations relatives à l'utilisateur koha Entrez la nouvelle valeur ou « Entrée » pour conserver la valeur proposée Nom complet []: Utilisateur Koha N° de bureau []: Téléphone professionnel []: Téléphone personnel []: Autre []: Ces informations sont­elles correctes ? [O/n] ola@ola:~/koha­3.00.01­stable$ sudo make install ola@ola:~/koha­3.00.01­stable$ export KOHA_CONF=/etc/koha/koha­conf.xml ola@ola:~/koha­3.00.01­stable$ export PERL5LIB=/usr/share/koha/lib ola@ola:~/koha­3.00.01­stable$ sudo ln ­s /etc/koha/koha­httpd.conf /etc/apache2/sites­
available/koha ola@ola:~/koha­3.00.01­stable$ sudo gedit /etc/apache2/ports.conf ajouter la ligne suivante Listen 8080 comme suit : Enregistrer et femer gedit
ola@ola:~/koha­3.00.01­stable$ sudo a2enmod rewrite ola@ola:~/koha­3.00.01­stable$ sudo a2ensite koha Enabling module rewrite. Run '/etc/init.d/apache2 restart' to activate new configuration! ola@ola:~/koha­3.00.01­stable$ sudo a2ensite koha Enabling site koha. Run '/etc/init.d/apache2 reload' to activate new configuration! ola@ola:~/koha­3.00.01­stable$ sudo apache2ctl restart apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName ola@ola:~/koha­3.00.01­stable$ taper ensuite dans un navigateur le nom de votre machine comme suit pour mon cas ma machine s'appelle ola

Documents pareils