Story/php

pear 웹에서 설치할때 오류발생시

Stdio 2014. 10. 15. 15:28
반응형

go-pear.php

http://pear.php.net/go-pear 에서 받은 파일로 go-pear.php 실행시

Fatal error: Class 'PEAR' not found in 경로 go-pear.php on line 697

이런 에러 발생시 해결방법

 

$bootstrap_files = array(
    'PEAR5.php'            => 'https://raw.github.com/pear/pear-core/master/PEAR5.php',
    'PEAR.php'             => 'https://raw.github.com/pear/pear-core/master/PEAR.php',
    'Archive/Tar.php'      => 'https://raw.github.com/pear/Archive_Tar/master/Archive/Tar.php',
    'Console/Getopt.php'   => 'https://raw.github.com/pear/Console_Getopt/trunk/Console/Getopt.php',
);

을 다음과 같이 바꿔준다.
$bootstrap_files = array(
    'PEAR5.php'            => 'https://raw.githubusercontent.com/pear/pear-core/master/PEAR5.php',
    'PEAR.php'             => 'https://raw.githubusercontent.com/pear/pear-core/master/PEAR.php',
    'Archive/Tar.php'      => 'https://raw.githubusercontent.com/pear/Archive_Tar/master/Archive/Tar.php',
    'Console/Getopt.php'   => 'https://raw.githubusercontent.com/pear/Console_Getopt/trunk/Console/Getopt.php',
);

 

출처 http://stackoverflow.com/questions/23472216/fatal-error-class-pear-not-found-in-home-user1-public-html-go-pear-php-on-li

반응형