cboden / Ratchet-examples

Tutorial code and cookbook classes for Ratchet
http://socketo.me
238 stars 73 forks source link

Composer update #10

Closed TGM closed 10 years ago

TGM commented 10 years ago

Hello,

I've bumped into the fallowing problem when using "composer update".

composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - The requested package tavendo/autobahnjs could not be found in any version
, there may be a typo in the package name.
  Problem 2
    - Installation request for react/zmq dev-master -> satisfiable by react/zmq[
dev-master].
    - react/zmq dev-master requires ext-zmq * -> the requested PHP extension zmq
 is missing from your system.

I think the composer.json file it outdated.

            "type": "package"
          , "package": {
                "name": "tavendo/AutobahnJS"
              , "type": "library"
              , "version": "dev-master"
              , "source": {
                    "url": "https://github.com/tavendo/AutobahnJS.git"
                  , "type": "git"
                  , "reference": "5408bd8748a1debe1b234e04411fc549b44d82b3"
                }
            }
        }

I'm still working to fix the remaining problems tough.

cboden commented 10 years ago

Try doing a git pull origin first. composer.json was updated yesterday to target AugobahnJS 0.8.2.

The other error says you need to install the ZeroMQ extension...I think I'll probably change that to a suggest and let user land error be thrown when trying to use a demo script that requires it.

TGM commented 10 years ago

Ok thanks, just removed ZeroMQ, as i'm not planning to use anything related to it.

Any ideea what may cause this exception on the other hand?

composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)
  - Installing cujojs/when (dev-master 16f1704)
    Cloning 16f1704177075f66413e901a5a77ca60eb5d429a

  [RuntimeException]
  Failed to clone git@github.com:cujojs/when.git, git was not found, check th
  at it is installed and in your PATH env.
  'git' is not recognized as an internal or external command,
  operable program or batch file.

Edit: Doh, i was running composer update from CMD instead of GiT bash. Running this thing on windows is a real pain.