php - Error Creating New Symfony 2.7 Project Using Symfony Installer -


i trying create brand new symfony 2.7 project , i'm following installation instructions in symfony book. running mac os 10.10.2. php version 5.4. when try create new project following command:

$ symfony new myproject 

i following error:

php warning:  require(phar:///usr/local/bin/symfony/symfony): failed open stream: phar error: cannot open temporary file decompressing phar archive "/usr/local/bin/symfony" file "symfony" in /usr/local/bin/symfony on line 10  warning: require(phar:///usr/local/bin/symfony/symfony): failed open stream: phar error: cannot open temporary file decompressing phar archive "/usr/local/bin/symfony" file "symfony" in /usr/local/bin/symfony on line 10 php fatal error:  require(): failed opening required 'phar:///usr/local/bin/symfony/symfony' (include_path='.:/usr/local/zend/share/zendframework/library:/usr/local/zend/share/pear') in /usr/local/bin/symfony on line 10  fatal error: require(): failed opening required 'phar:///usr/local/bin/symfony/symfony' (include_path='.:/usr/local/zend/share/zendframework/library:/usr/local/zend/share/pear') in /usr/local/bin/symfony on line 10 

in past have created symfony projects using composer , have had no issues. appreciated.

i use these steps (under linux) because had same errors:

in public_html directory launch these commands create "local" symfony installer file (not /usr/local/bin/symfony explain in https://github.com/symfony/symfony-installer)

curl -lss http://symfony.com/installer -o symfony chmod +x symfony 

then launch installer symfony demo application php

php symfony demo 

or create new symfony project

php symfony new project_name 

then visit http://localhost/symfony_demo/web/config.php or http://localhost/project_name/web/config.php configure symfony project


ps: check permission of file or directories


Comments