-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Composer insallation methods fails #7082
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I have shorten the log to display the more intertesting parts. What procedure did you use to install sf (please list the all commands) |
@vicb see the beginningof the description (I have added the markup to make the command look like a code snippet) |
oops sorry. I have no problem when executing this command. Could you please try again. If this still does not work what is the content of you app folder (is there an autoload.php there ?). |
could be an issue with composer, try to update to the latest version |
Must be a pb with the path:
Can anybody on windows try this command and report if it works or not ? |
I got here via Google, after running to the same problem. I've only just installed Composer, so that is up to date.
Result:
Versions:
There is an
But the include path only includes the current directory and PEAR, so rather than Running the file by itself from the original directory (one above the directory into which things were being installed) doesn't generate any errors, and checking the CWD seems to give the right result in that context:
|
Ccing the pro @Seldaek darenc [email protected] wrote:
|
Sent a PR with a fix (see above), as a workaround if you hit this problem you can just cd in the dir where you installed it, and run |
This PR was merged into the 2.0 branch. Commits ------- 179cd58 [Process] Fix regression introduced in #6620 / 880da01, fixes #7082 Discussion ---------- [Process][2.0] getcwd failure fix Fix regression introduced in #6620 Fixes #7082 For reference, here is the current behavior I saw: PHP 5.4.11, windows: ``` 5.4.11\php.exe -r "chdir('c:\\'); var_dump(getcwd()); $p = proc_open('pwd', [['pipe', 'r'], ['pipe', 'w'], ['pipe', 'w']], $pipes, null); var_dump(stream_get_contents($pipes[1]));" string(3) "C:\\" string(14) "/c/Users/seld\n" ``` (I use pwd which is a unix util so it dumps a funny path, but don't look at that) PHP 5.5alpha4, windows (seems fixed): ``` 5.5.0a4\php.exe -r "chdir('c:\\'); var_dump(getcwd()); $p = proc_open('pwd', [['pipe', 'r'], ['pipe', 'w'], ['pipe', 'w']], $pipes, null); var_dump(stream_get_contents($pipes[1]));" string(3) "C:\" string(3) "/c\n" ``` PHP 5.3.10, ubuntu: ``` php -r "chdir('/'); var_dump(getcwd()); \$p = proc_open('pwd', array(array('pipe', 'r'), array('p ipe', 'w'), array('pipe', 'w')), \$pipes, null); var_dump(stream_get_contents(\$pipes[1]));" string(1) "/" string(2) "/\n" ``` Since the permission issue that #6620 originally was fixing is most likely not gonna happen on windows, this seems like a safe enough compromise. Ideally a check for PHP<5.5 should be introduced, but I would like to be sure it's been fixed and is not just a lucky coincidence (/cc @pierrejoye) I would recommend merging fast and maybe adding the version check later, since it breaks composer create-project on windows. The workaround being: cd in the dir and run `composer install` again to finalize the project setup. --------------------------------------------------------------------------- by vicb at 2013-02-17T20:12:17Z Thanks @Seldaek ! Would you mind creating an issue for the version check so that it doesn't get lost ? --------------------------------------------------------------------------- by Seldaek at 2013-02-18T10:43:56Z @vicb done. --------------------------------------------------------------------------- by vicb at 2013-02-18T11:45:16Z thanks !
* 2.2: (22 commits) [Process] Fix regression introduced in #6620 / 880da01, fixes #7082 [HttpKernel] added a unit for the previous commit (closes #7025) [HttpFoundation] fixed, overwritten CONTENT_TYPE [BrowserKit] fixed test added in the previous merge (refs #7059) [FrameworkBundle] tweaked reference dumper command (see #7093) Remove unnecessary comment and change test name [Config] tweaked dumper to indent multi-line info [HttpKernel] added some tests for previous merge Fix REMOTE_ADDR for cached subrequests [FrameworkBundle] CSRF should be on by default [WebProfilerBundle] removed dependency on FrameworkBundle (closes #6949) [HttpKernel] added error display suppression when using the ErrorHandler (if not, errors are displayed twice, refs #6254) [HttpFoundation] tweaked previous merge [HttpFoundation] Added getter for httpMethodParameterOverride state Create validators.lv.xlf [Process] Warn user with a useful message when tmpfile() failed [BrowserKit] added a test to make sure HTTP authentication is preserved when submitting a form Remove array type hint from GetResponseForControllerResultEvent::setControllerResult() bumped Symfony version to 2.2.0-DEV Revert "merged branch povilas/issue_6101 (PR #6708)" ...
OK the fix was merged and the latest composer now ships with it, so it should all be back to normal. |
👍 Jordi Boggiano [email protected] wrote:
|
I have been having this issue this week using latest versions of symfony and composer. Fatal error: require_once(): Failed opening required 'app/autoload.php' (include_path='.:') in /var/www/mypolitician/www/html/vendor/sensio/distribution-bundle/Sensio/Bundle/DistributionBundle/Resources/bin/build_bootstrap.php on line 24 So can't see it is fixed for current distributions. I can manually run the build_bootstrap.php file in its directory but as soon as I run another bundle thsi issue appears again. From debugging it is getting the wrong path |
What are the exact "latest versions" (they change every day !) ? |
yesterday, day before and day before that. Not sure how to give you exact specific apart from the download which was Each version I ran is later than said fix in this thread. Perhaps you can advise on a simple method for simpletons like me to give On 14 March 2013 18:24, Victor Berchet [email protected] wrote:
Darryl King CEO Ireckon Pty Ltd Phone: 07 3391 1488 Fax: 07 3391 1293 Web: http://www.ireckon.com http://www.blueglassinteractive.com.au/ Email: [email protected] |
If you downloaded Sf2.2.0 then you have 2.2.0 (I was asking in case you use a git version). Your fine on this side. You can get the composer version by using the What would be interesting is to also know your OS version. Don't worry, you're (probably not) a simpleton :) |
Ah cool thanks. Composer version 7b549010d59a45fcdda1cd1e6b6aed9843b6ee4e O/s = fedora Thanks On 14 March 2013 18:51, Victor Berchet [email protected] wrote:
Darryl King CEO Ireckon Pty Ltd Phone: 07 3391 1488 Fax: 07 3391 1293 Web: http://www.ireckon.com http://www.blueglassinteractive.com.au/ Email: [email protected] twitter: @ireckon |
@ireckon What version of Fedora ? What version of PHP ? This particular issue was related to windows, there might be a ~similar issue in Fedora. |
Ah ok that explains why the fix didn't help. its php 5.3.21, compiled from sources, for litespeed On 14 March 2013 19:25, Victor Berchet [email protected] wrote:
Darryl King CEO Ireckon Pty Ltd Phone: 07 3391 1488 Fax: 07 3391 1293 Web: http://www.ireckon.com http://www.blueglassinteractive.com.au/ Email: [email protected] twitter: @ireckon |
@ireckon could you try with a vanilla PHP to narrow down the issue. If a vanilla PHP also have the issue then it is worth creating a new issue in order for the pb to get fixed. If not, you will have to fix it ;) You might then look at #7102 and try to set up a test case to see if you have a similar pb. |
Hi thanks. unfortunately can't do vanilla all our kit is on this spec. SO i But what i find out I will share. Really appreciate the help. Might try one vanilla on a local and see what I get Darryl On 14 March 2013 19:45, Victor Berchet [email protected] wrote:
Darryl King CEO Ireckon Pty Ltd Phone: 07 3391 1488 Fax: 07 3391 1293 Web: http://www.ireckon.com http://www.blueglassinteractive.com.au/ Email: [email protected] twitter: @ireckon |
HI We did resolve. It was directly related to how litespeed handles requests. D On 14 March 2013 19:45, Victor Berchet [email protected] wrote:
Darryl King CEO Ireckon Pty Ltd Phone: 07 3391 1488 Fax: 07 3391 1293 Web: http://www.ireckon.com http://www.blueglassinteractive.com.au/ Email: [email protected] twitter: @ireckon |
Hi ireckon wrote:
I have the same issue on sharing hosting (Linux 3.8.4-1gb-csm-rcu-exp x86_64). On Windows everything is fine. Very thanks = = = end of my log = = =
|
Issue was due to cgi-version of php, that was preconfigured as default php-interpreter on shared hosting. |
@heckfy-ai thanks for letting us know. I added a check for that in composer so you get a proper warning instead of weird errors. |
Hello, help me please. I use Symfony 2.3 . Today this is my issue:
/home4/atamashi/Ezkua$ /opt/php53/bin/php -v
** ATTENTION **
** Mandatory requirements ** OK PHP version must be at least 5.3.3 (5.3.27 installed) ** Optional recommendations ** OK Requirements file should be up-to-date OK You should use PHP 5.3.18+ or PHP 5.4.8+ to always get nice error messages for fatal errors in the development environment due to PHP bug #61767/#60909 WARNING short_open_tag should be disabled in php.ini OK magic_quotes_gpc should be disabled in php.ini Composer successfully installed to: /home4/atamashi/Ezkua/composer.phar Warning: Unexpected character in input: '' (ASCII=92) state=1 in /home4/atamashi/Ezkua/vendor/sensio/distribution-bundle/Sensio/Bundle/DistributionBundle/Resources/bin/build_bootstrap.php on line 30 Warning: Unexpected character in input: '' (ASCII=92) state=1 in /home4/atamashi/Ezkua/vendor/sensio/distribution-bundle/Sensio/Bundle/DistributionBundle/Resources/bin/build_bootstrap.php on line 30 Parse error: syntax error, unexpected T_STRING in /home4/atamashi/Ezkua/vendor/sensio/distribution-bundle/Sensio/Bundle/DistributionBundle/Resources/bin/build_bootstrap.php on line 30 [RuntimeException] update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-plugins] [--no-custom-installers] [--no-scripts] [--no-progress] [--with-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [packages1] ... [packagesN]
Hello, Thank you for contacting Hostgator. This error complains about an unexpected string in the file #!/usr/bin/env php |
@atamashi The php version provided by the /usr/bin/env (detected from the $PATH global shell variable) is older then the version shown above. Executing this on the command line, and then running composer again should fix it. |
@sstok Is right! Thank you very much! |
HI, php composer.phar require hwi/oauth-bundle [RuntimeException] require [--dev] [--prefer-source] [--prefer-dist] [--no-progress] [--no-update] [packages1] ... [packagesN] F.Y.I: Thanks for help |
This PR was submitted for the master branch but it was merged into the 2.1 branch instead (closes sensiolabs#79). Discussion ---------- Add check for PHP_SAPI See symfony/symfony#7082 (comment) Commits ------- e144e85 Add check for PHP_SAPI
* 2.2: (22 commits) [Process] Fix regression introduced in symfony#6620 / 880da01, fixes symfony#7082 [HttpKernel] added a unit for the previous commit (closes symfony#7025) [HttpFoundation] fixed, overwritten CONTENT_TYPE [BrowserKit] fixed test added in the previous merge (refs symfony#7059) [FrameworkBundle] tweaked reference dumper command (see symfony#7093) Remove unnecessary comment and change test name [Config] tweaked dumper to indent multi-line info [HttpKernel] added some tests for previous merge Fix REMOTE_ADDR for cached subrequests [FrameworkBundle] CSRF should be on by default [WebProfilerBundle] removed dependency on FrameworkBundle (closes symfony#6949) [HttpKernel] added error display suppression when using the ErrorHandler (if not, errors are displayed twice, refs symfony#6254) [HttpFoundation] tweaked previous merge [HttpFoundation] Added getter for httpMethodParameterOverride state Create validators.lv.xlf [Process] Warn user with a useful message when tmpfile() failed [BrowserKit] added a test to make sure HTTP authentication is preserved when submitting a form Remove array type hint from GetResponseForControllerResultEvent::setControllerResult() bumped Symfony version to 2.2.0-DEV Revert "merged branch povilas/issue_6101 (PR symfony#6708)" ...
I'm trying to install the latest version of Symfony with the Composer methods, but when I type
php composer.phar create-project symfony/framework-standard-edition Symfony 2.1.7
, I get this :I don't know whether this has to do with Composer or Symfony standard edition...
The text was updated successfully, but these errors were encountered: