在windows上安装梨,路径错误

编程入门 行业动态 更新时间:2024-10-26 22:16:30
本文介绍了在windows上安装梨,路径错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在尝试在 Windows 7 上安装 PEAR.

I'm trying to install PEAR on Windows 7.

我在 d:\web\soft\php 目录中有 php 5.4,我也想在这个目录中安装 PEAR.我跑:

I have php 5.4 in d:\web\soft\php directory, and I want to install PEAR in this directory too. I run:

php go-pear.phar

我看到了:

这条路对我来说没问题.

This paths are ok for me.

然后我运行 enter 并安装它.最后我看到这个警告:

Then I run enter and install it. In the end I see this warning:

警告!在 D:\web\soft\php 找到旧版本,请将其删除或确保使用新的 d:\web\soft\php\pear.bat 命令'pear' 命令现在在 d:\web\soft\php\pear.bat` 为您服务

WARNING! Old version found at D:\web\soft\php, please remove it or be sure to use the new d:\web\soft\php\pear.bat command The 'pear' command is now at your service at d:\web\soft\php\pear.bat`

当我按下 pear config-show 时,我看到与磁盘 C:\ 相关的完全错误的路径:

and when I press pear config-show I see completely wrong paths related to disk C:\:

Auto-discover new Channels auto_discover <not set> Default Channel default_channel pear.php HTTP Proxy Server Address http_proxy <not set> PEAR server [DEPRECATED] master_server pear.php Default Channel Mirror preferred_mirror pear.php Remote Configuration File remote_config <not set> PEAR executables directory bin_dir D:\web\soft\php PEAR documentation directory doc_dir C:\php\pear\docs PHP extension directory ext_dir d:/web/soft/php/ext PEAR directory php_dir D:\web\soft\php\pear PEAR Installer cache directory cache_dir C:\Users\zzz\AppData\Local\Temp\pear\cache PEAR configuration file cfg_dir C:\php\pear\cfg PEAR data directory data_dir C:\php\pear\data PEAR Installer download download_dir C:\Users\zzz\AppData\Local\Temp\pear\download PHP CLI/CGI binary php_bin D:\web\soft\php\php.exe php.ini location php_ini <not set> PEAR Installer temp directory temp_dir C:\Users\zzz\AppData\Local\Temp\pear\temp PEAR test directory test_dir C:\php\pear\tests PEAR www files directory www_dir C:\php\pear\www Signature Handling Program sig_bin c:\gnupg\gpg.exe Signature Key Directory sig_keydir C:\Windows\pearkeys User Configuration File Filename C:\Windows\pear.ini System Configuration File Filename C:\Windows\pearsys.ini

所以它不起作用.

我做错了什么?

推荐答案

将 PHP_PEAR_SYSCONF_DIR 设置为 pear.ini 所在的目录.

Set PHP_PEAR_SYSCONF_DIR to the directory where your pear.ini is located.

SETX PHP_PEAR_SYSCONF_DIR d:\web\soft\php /M

更多推荐

在windows上安装梨,路径错误

本文发布于:2023-10-20 13:02:32,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1511042.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:路径   错误   windows

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!