Я пытался установить Pear в Kali Linux 2018.3. Я скачал go-pear.phar и запустил команду php go-pear.phar . Но я получаю много PHP Startup: Unable to load dynamic library ошибки библиотеки, и также кажется, что установлена более старая версия pear. Вот предупреждения, которые я получаю:

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!

Как я могу исправить эти предупреждения?

0