PEAR on Windows: How to change pear.ini location

前端 未结 5 1500
闹比i
闹比i 2021-02-07 00:44

I am trying to install a PEAR package into my recent XAMPP PHP installation (PHP 5.3.1) on Windows 7 64-bit.

Installing new packages fails because PEAR tries to access <

5条回答
  •  天涯浪人
    2021-02-07 01:05

    In windows 7 i use powershell.

    you can set the PHP_PEAR_SYSCONF_DIR variable and then run a pear command. For Example:

    $env:PEAR_CONFIG_SYSCONFDIR = 'c:\path_to_xampp\php'
    pear install pear.phpunit.de/PHPUnit
    

提交回复
热议问题