Go-pear.bat will not install PEAR at all

I just did a new install of WAMP on Windows 7, and I'm trying to get PEAR to work. From the very beginning, everything happens wrong. When I try to execute the go-pear.bat file, it shows me this.

Headlight "C: \ WAMP \ Bin \ PHP \ php5.3.1 \ PEAR \ go-pear.phar" No signature Warning: require_once (Phar: //go-pear.phar/index.php): Could not open stream: error pha r: invalid url or nonexistent phar "phar: //go-pear.phar/index.php" in C: \ WAMP \ Bin \ PHP \ php5.3.1 \ PEAR \ go-pear.phar on line 1236 Click any key to continue.

How can I help him that the file has no signature?

+3
source share
4 answers

- : : "go-pear.phar"

, php.ini, , , WAMP 2.0 PHP 5.3, .

+6

PEAR. cd PEAR .

php.exe -d phar.require_hash=0 go-pear.phar

PEAR .

+2

, - Google: .phar http://pear.php.net/go-pear.phar.

(, , Windows:-)) . , , ..

Windows , , . , .

+2

go-pear.bat , :

  • cmd.exe:

    php -d phar.require_hash=0 go-pear.phar 
    

    php.ini.

  • PEAR_ENV.reg - PEAR: YOUR-PHP-INSTALL-PATH\PEAR\(, c:\PHP\PEAR\PEAR_ENV.reg), , . . , go-pear.bat php.ini( , php.exe).

  • pear
    

    , . , - .

  • Structures_Graph - PEAR ( ). - , . Structure YOUR-PHP-INSTALL-PATH\PEAR\(, c:\PHP\PEAR\Structures).

  • :

    pear install Structures_Graph
    

    , , Structures_Graph , .

  • :

    pear update PEAR

  • !

    !

0

Source: https://habr.com/ru/post/1725313/


All Articles