我正在努力学习如何创建phars,我得到了这个错误,并且不知道如何修复它。有什么想法吗?
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我遵循这个页面的代码形式:用phar打包应用程序
发布于 2013-10-05 10:00:51
对窗口使用完整的路径,如
$srcRoot = getcwd() . '/src';
$buildRoot = getcwd() . '/build';发布于 2013-11-03 16:02:58
我一直在关注同一篇文章,问题是在前几行中,路径或它们是如何定义的,下面是我所做的:
$srcRoot = "src/";
$buildRoot = "build/";此解决方案适用于Ubuntu12.04.3 LTS
https://stackoverflow.com/questions/19043294
复制相似问题