Viele Warnungen bei der Installation von Pear unter Linux

521
Gautam Vashisht

Ich habe versucht, Pear in Kali Linux 2018.3 zu installieren. Ich habe go-pear.pharden Befehl heruntergeladen und ausgeführt php go-pear.phar. Ich erhalte jedoch viele PHP Startup: Unable to load dynamic libraryFehler und es scheint auch, dass eine ältere Version von Birne installiert ist. Hier sind die Warnungen, die ich bekomme:

Below is a suggested file layout for your new PEAR installation. To change individual locations, type the number in front of the directory. Type 'all' to change all of them or simply press Enter to accept these locations.  1. Installation base ($prefix) : /home/gkv/pear 2. Temporary directory for processing : /tmp/pear/install 3. Temporary directory for downloads : /tmp/pear/install 4. Binaries directory : /home/gkv/pear/bin 5. PHP code directory ($php_dir) : /home/gkv/pear/share/pear 6. Documentation directory : /home/gkv/pear/docs 7. Data directory : /home/gkv/pear/data 8. User-modifiable configuration files directory : /home/gkv/pear/cfg 9. Public Web Files directory : /home/gkv/pear/www 10. System manual pages directory : /home/gkv/pear/man 11. Tests directory : /home/gkv/pear/tests 12. Name of configuration file : /home/gkv/.pearrc  1-12, 'all' or Enter to continue:  Beginning install... Configuration written to /home/gkv/.pearrc... Initialized registry... Preparing to install... installing phar:///home/gkv/go-pear.phar/PEAR/go-pear-tarballs/Archive_Tar-1.4.3.tar... installing phar:///home/gkv/go-pear.phar/PEAR/go-pear-tarballs/Console_Getopt-1.4.1.tar... installing phar:///home/gkv/go-pear.phar/PEAR/go-pear-tarballs/PEAR-1.10.5.tar... installing phar:///home/gkv/go-pear.phar/PEAR/go-pear-tarballs/Structures_Graph-1.1.1.tar... installing phar:///home/gkv/go-pear.phar/PEAR/go-pear-tarballs/XML_Util-1.4.2.tar... install ok: channel://pear.php.net/Archive_Tar-1.4.3 install ok: channel://pear.php.net/Console_Getopt-1.4.1 install ok: channel://pear.php.net/Structures_Graph-1.1.1 install ok: channel://pear.php.net/XML_Util-1.4.2 install ok: channel://pear.php.net/PEAR-1.10.5 PEAR: Optional feature webinstaller available (PEAR's web-based installer) PEAR: Optional feature gtkinstaller available (PEAR's PHP-GTK-based installer) PEAR: Optional feature gtk2installer available (PEAR's PHP-GTK2-based installer) PEAR: To install optional features use "pear install pear/PEAR#featurename"  ****************************************************************************** WARNING! The include_path defined in the currently used php.ini does not contain the PEAR PHP directory you just specified: </home/gkv/pear/share/pear> If the specified directory is also not in the include_path used by your scripts, you will have problems getting any PEAR packages working.   Would you like to alter php.ini </etc/php/7.2/cli/php.ini>? [Y/n] : y  ****************************************************************************** WARNING: Cannot write to /etc/php/7.2/cli/php.ini, but php.ini was successfully created at </home/gkv/pear/php.ini-gopear>. Please replace the file </etc/php/7.2/cli/php.ini> with </home/gkv/pear/php.ini-gopear> or modify your php.ini by adding:  include_path=".:/home/gkv/pear/share/pear"   Current include path : .:/usr/share/php Configured directory : /home/gkv/pear/share/pear Currently used php.ini (guess) : /etc/php/7.2/cli/php.ini Press Enter to continue:   ** WARNING! Old version found at /home/gkv/pear/bin, please remove it or be sure to use the new /home/gkv/pear/bin/pear command  The 'pear' command is now at your service at /home/gkv/pear/bin/pear  ** The 'pear' command is not currently in your PATH, so you need to ** use '/home/gkv/pear/bin/pear' until you have added ** '/home/gkv/pear/bin' to your PATH environment variable.  Run it without parameters to see the available actions, try 'pear list' to see what packages are installed, or 'pear help' for help.  For more information about PEAR, see:  http://pear.php.net/faq.php http://pear.php.net/manual/  Thanks for using go-pear! 

Wie kann ich diese Warnungen beheben?

0
Ist Birne nicht in den Standard-Repositorys oder zumindest eine kompatible PPA (falls Kali solche hat)? Gibt es keine Pear-Installationsanleitung, in der angegeben wird, wie Sie vorgehen sollen? Xen2050 vor 5 Jahren 0
Es sollte sich im Standard-Repository befinden. Aber Birnenbefehl lief nicht früher. Also habe ich Pear mit der .phar-Datei installiert. Aber jetzt bekomme ich diese Warnung. Gautam Vashisht vor 5 Jahren 0
Wenn die Standardversion defekt war, dann bricht vielleicht die defekte Version auch diese andere Version Xen2050 vor 5 Jahren 0
Ich habe die PHP-Startup-Warnungen durch Kommentieren der `extension =` -Zeilen in der `php.ini`-Datei gelöst. Aber ich kenne die Lösung der älteren Version von Pear Warning immer noch nicht. Gautam Vashisht vor 5 Jahren 0

0 Antworten auf die Frage