douzhenzu0247 2012-11-06 12:36
浏览 96

在窗户上安装梨,错误的路径

I'm trying to install PEAR on Windows 7.

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

I see this: enter image description here

This paths are ok for me.

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

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`

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.net
HTTP Proxy Server Address      http_proxy       <not set>
PEAR server [DEPRECATED]       master_server    pear.php.net
Default Channel Mirror         preferred_mirror pear.php.net
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

So it doesn't work.

What am I doing wrong?

  • 写回答

3条回答 默认 最新

  • dshakcsq64956 2012-11-06 15:14
    关注

    Try taking a look in parameter include_path at your php.ini:

    include_path = ".;d:\web\soft\php;d:\web\soft\php\PEAR"
    
    评论

报告相同问题?

悬赏问题

  • ¥50 如何用脚本实现输入法的热键设置
  • ¥20 我想使用一些网络协议或者部分协议也行,主要想实现类似于traceroute的一定步长内的路由拓扑功能
  • ¥30 深度学习,前后端连接
  • ¥15 孟德尔随机化结果不一致
  • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
  • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
  • ¥15 谁有desed数据集呀
  • ¥20 手写数字识别运行c仿真时,程序报错错误代码sim211-100
  • ¥15 关于#hadoop#的问题
  • ¥15 (标签-Python|关键词-socket)