国产+高潮+在线,国产 av 仑乱内谢,www国产亚洲精品久久,51国产偷自视频区视频,成人午夜精品网站在线观看

【付費(fèi)求助】系統(tǒng)之前用的workerman框架,現(xiàn)在需要增加 mqtt ;求助?。?!

pxfaizy

問(wèn)題描述

已經(jīng)實(shí)現(xiàn)了tcp/ip連接設(shè)備,現(xiàn)在需要增加mqtt方式;實(shí)現(xiàn)數(shù)據(jù)的讀寫。

為此你搜索到了哪些方案及不適用的原因

試了composer require workerman/mqtt 一直報(bào)錯(cuò),裝不了,也不清楚具體問(wèn)題在哪里;composer 已安裝,

Composer version 2.6.6 2023-12-08 18:32:26

1137 5 0
5個(gè)回答

pxfaizy

聯(lián)系方式:wx:pxfaizy

  • 暫無(wú)評(píng)論
pxfaizy

composer require workerman/mqtt:dev-master 這個(gè)也試了

  • 暫無(wú)評(píng)論
walkor 打賞

提問(wèn)要盡量詳細(xì),有報(bào)錯(cuò)發(fā)完整的具體報(bào)錯(cuò)

  • pxfaizy 2024-02-18

    Welcome to Alibaba Cloud Elastic Compute Service !

    [root@iZ5idcd7hxknovZ ~]# composer require workerman/mqtt --ignore-platform-reqs
    PHP Warning: PHP Startup: curl: Unable to initialize module
    Module compiled with module API=20100525
    PHP compiled with module API=20190902
    These options need to match
    in Unknown on line 0

    Installation failed, deleting ./composer.json.

    In RequireCommand.php line 225:

    No composer.json present in the current directory (./composer.json), this m
    ay be the cause of the following exception.

    In PackageDiscoveryTrait.php line 356:

    Could not find package workerman/mqtt. It was however found via repository
    search, which indicates a consistency issue with the repository.

    require [--dev] [--dry-run] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--fixed] [--no-suggest] [--no-progress] [--no-update] [--no-install] [--no-audit] [--audit-format AUDIT-FORMAT] [--update-no-dev] [-w|--update-with-dependencies] [-W|--update-with-all-dependencies] [--with-dependencies] [--with-all-dependencies] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--] [<packages>...]

    [root@iZ5idcd7hxknovZ ~]# composer require workerman/mqtt:dev-master --ignore-platform-reqs
    PHP Warning: PHP Startup: curl: Unable to initialize module
    Module compiled with module API=20100525
    PHP compiled with module API=20190902
    These options need to match
    in Unknown on line 0
    ./composer.json has been created
    Running composer update workerman/mqtt
    Loading composer repositories with package information
    Updating dependencies
    Your requirements could not be resolved to an installable set of packages.

    Problem 1

    • Root composer.json requires workerman/mqtt, it could not be found in any version, there may be a typo in the package name.

    Potential causes:

    Read https://getcomposer.org/doc/articles/troubleshooting.md for further common problems.

    Installation failed, deleting ./composer.json.
    [root@iZ5idcd7hxknovZ ~]#

  • pxfaizy 2024-02-18

    不知道怎么貼圖片,我把信息都復(fù)制過(guò)來(lái)了

  • 不敗少龍 2024-02-18

    就是編輯你的問(wèn)題 在里面把截圖放進(jìn)去

  • walkor 2024-02-18

    執(zhí)行 composer config -g --unset repos.packagist 刪除composer代理

  • pxfaizy 2024-02-18

    成功了,非常感謝;已贊助,一點(diǎn)心意;新年快樂(lè),萬(wàn)分感謝?。?!

不敗少龍

php7,8都安裝了 沒有遇到什么問(wèn)題 是不是你其他的擴(kuò)展導(dǎo)致的哦
在后面加上 --ignore-platform-reqs這個(gè)試試呢

  • pxfaizy 2024-02-18

    加了還是不成功呢

  • pxfaizy 2024-02-18

    我的是 PHP 7.4.15 (cli) (built: Feb 21 2021 11:34:37) ( NTS )

pxfaizy

統(tǒng)一回復(fù),問(wèn)題已解決,謝謝大家

  • 暫無(wú)評(píng)論
年代過(guò)于久遠(yuǎn),無(wú)法發(fā)表回答
??