我试图安装WyriHaximus' Ratchet-Plugin for CakePHP使用WebSockets。我在Cakes composer.json中添加了以下行:
"require": {
"php": ">=5.2.8",
"ext-mcrypt": "*",
"react/socket": "0.3.*|0.4.*",
"wyrihaximus/ratchet": "dev-master"
},
"config": {
"vendor-dir": "/app/Vendor/"
},
当我跑步"作曲家更新"在CLI中,虽然我正在运行PHP 5.5,但它会引发以下错误:
Problem 1
- Installation request for wyrihaximus/ratchet dev-master -> satisfiable by wyrihaximus/ratchet[dev-master].
- wyrihaximus/ratchet dev-master requires php >=5.4.0 -> no matching package found.
原因是什么以及如何解决?
答案 0 :(得分:0)
查看该输出,您没有PHP5.4或更高版本。您可以使用php -v
检查该内容。