2013-09-27 1 views
1

나는 phars를 만드는 법을 배우기 위해 노력하고 있으며이 오류가 발생하고 있으며 해결 방법이 없습니다. 어떤 아이디어?Phar를 만들 수 없습니다

Fatal error: Uncaught exception 'UnexpectedValueException' with message 'Cannot create phar '/myapp/build/myapp.phar', file extension (or combination) not recognised or the directory does not exist' in /Volumes/www/vhosts/myapp/create-phar.php:11 
Stack trace: 
#0 /Volumes/www/vhosts/myapp/create-phar.php(11): Phar->__construct('/myapp/build/my...', 256, 'myapp.phar') 
#1 {main} 
    thrown in /Volumes/www/vhosts/myapp/create-phar.php on line 11 

나는 코드 형태로이 페이지를 다음입니다 : packaging your app with phar

답변

3

내가 같은 기사 및 문제 다음 봤는데

$srcRoot = getcwd() . '/src'; 
$buildRoot = getcwd() . '/build'; 
1

같은 창에 대한 전체 경로를 사용을 경로 또는 처음 두 줄에서 어떻게 정의되는지는 다음과 같습니다.

$srcRoot = "src/"; 
    $buildRoot = "build/"; 

Th 솔루션은 Ubuntu 12.04.3입니다. LTS