当我尝试在php 7.4上安装PEAR时,出现此错误:
WARNING: Cannot write to /usr/local/php7/etc/php.ini, but php.ini was successfully created
at </home/daniel/pear/php.ini-gopear>. Please replace the file </usr/local/php7/etc/php.ini> with
</home/daniel/pear/php.ini-gopear> or modify your php.ini by adding:
include_path=".:/home/daniel/pear/share/pear"
Current include path : .:/:/usr/local/php7/lib/pear
Configured directory : /home/daniel/pear/share/pear
Currently used php.ini (guess) : /usr/local/php7/etc/php.ini
Press Enter to continue:
** WARNING! Old version found at /home/daniel/pear/bin, please remove it or be sure to use the new /home/daniel/pear/bin/pear command
The 'pear' command is now at your service at /home/daniel/pear/bin/pear
** The 'pear' command is not currently in your PATH, so you need to
** use '/home/daniel/pear/bin/pear' until you have added
** '/home/daniel/pear/bin' to your PATH environment variable.
我将php.ini-gopear
更改为php.ini
,但是pear命令不起作用。
有人可以帮我吗?