'php composer.phar install' failed

394 views
Skip to first unread message

Tom Lee

unread,
Jul 14, 2012, 8:14:08 AM7/14/12
to be...@googlegroups.com
Hello,

I am new to Behat, I went to http://lestbddphp.wordpress.com/ , and
followed the method from 'May 7, Enjoy ‘MinkExtension’ for Behat' to
do the installation.
All steps were successful until 'php composer.phar install'. The error
message was:
'1) sudo php composer.phar install
Password:
Installing dependencies from lock file
Your lock file is out of sync with your composer.json, run
"composer.phar update" to update dependencies
Nothing to install or update
Generating autoload files

2) sudo php composer.phar update
Updating dependencies
Your requirements could not be solved to an installable set of packages.

Problem 1
- behat/mink-goutte-driver v1.0.0 requires fabpot/goutte 1.0.* ->
no matching package found.
- behat/mink-goutte-driver v1.0.3 requires fabpot/goutte @dev ->
no matching package found.
- behat/mink-goutte-driver v1.0.2 requires fabpot/goutte 1.0.*@dev
-> no matching package found.
- behat/mink-goutte-driver v1.0.1 requires fabpot/goutte 1.0.x-dev
-> no matching package found.
- Installation request for behat/mink-goutte-driver * ->
satisfiable by behat/mink-goutte-driver v1.0.1,
behat/mink-goutte-driver v1.0.2, behat/mink-goutte-driver v1.0.3,
behat/mink-goutte-driver v1.0.0.

Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according
to your minimum-stability setting
see https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion
for more details.
'

composer.json showed this:
{
"require": {
"behat/behat": "2.4@stable",
"behat/mink-extension": "*",

"behat/mink-goutte-driver": "*",
"behat/mink-selenium2-driver": "*"
},

"config": {
"bin-dir": "bin"
}
}

This (behat/mink-goutte-driver": "*") may be not correct in the
file. Please help.

Thanks in advance!

Tom

Christophe COEVOET

unread,
Jul 14, 2012, 8:34:41 AM7/14/12
to be...@googlegroups.com
Le 14/07/2012 14:14, Tom Lee a �crit :
> Hello,
>
> I am new to Behat, I went to http://lestbddphp.wordpress.com/ , and
> followed the method from 'May 7, Enjoy �MinkExtension� for Behat' to
Composer switched their default minimum-stability to stable instead of
dev 2 weeks ago (see the link in the composer output for the
announcement). As Goutte is not stable yet, you need to allow a dev
version explicitly.
The easiest solution is to add the minimum-stability to dev for now:

{
"minimum-stability": "dev",
"require": ...
}

--
Christophe | Stof

Konstantin Kudryashov

unread,
Jul 14, 2012, 8:50:13 AM7/14/12
to be...@googlegroups.com
Also, i would suggest to use updated official documentation http://docs.behat.org/cookbook/behat_and_mink.html
instead of maybe_outdated_article_on_the_web if you're just starting with Behat and Mink ;)

On Saturday, July 14, 2012 at 2:34 PM, Christophe COEVOET wrote:

Le 14/07/2012 14:14, Tom Lee a écrit :
Hello,

I am new to Behat, I went to http://lestbddphp.wordpress.com/ , and
followed the method from 'May 7, Enjoy ‘MinkExtension’ for Behat' to

stardog101

unread,
Jul 28, 2012, 11:56:56 AM7/28/12
to be...@googlegroups.com
I've jsut copy pasted from teh live mink installations description and I get "PHP Fatal error:  Call to a member function getSession() on a non-object in "

sigh... I really like behat.. and I am itching to use it (in my python app..) but so far freshen is starting to look a bit easier to work with.

I really like behat and you have done a great job.. I just wish that the dependencies would stabilize.
Reply all
Reply to author
Forward
0 new messages