Algolia - Symfony 7 捆绑包安装问题

问题描述 投票:0回答:1

我无法在 Mac 上使用 Symfony 7、php 8.2 和 MAMP Pro 安装 Symfony / Algolia 捆绑包。我拥有他们所需的所有依赖项(Symfony > 3.4 和 php > 7.2)。运行(直接来自 Algolia 文档)

composer require algolia/search-bundle

结果

 Problem 1
    - Root composer.json requires PHP extension ext-mysql_xdevapi * but it is missing from your system. Install or enable PHP's mysql_xdevapi extension.
  Problem 2
    - algolia/search-bundle[1.0.0, ..., 1.0.12] require symfony/framework-bundle ~2.5 -> found symfony/framework-bundle[v2.5.0, ..., v2.8.52] but it conflicts with your root composer.json require (7.0.*).
    - algolia/search-bundle 1.0.13 requires symfony/framework-bundle ~2.5|~3.0 -> found symfony/framework-bundle[v2.5.0, ..., v2.8.52, v3.0.0, ..., v3.4.47] but it conflicts with your root composer.json require (7.0.*).
    - algolia/search-bundle[2.0.0, ..., 2.2.0, 4.0.0, ..., 4.1.2] require php ^5.6 || ^7.0 -> your php version (8.2.0) does not satisfy that requirement.
    - algolia/search-bundle[3.0.0, ..., 3.4.0] require symfony/filesystem ^3.4.0 || ^4.0.0 -> found symfony/filesystem[v3.4.0, ..., v3.4.47, v4.0.0, ..., v4.4.42] but these were not loaded, likely because it conflicts with another require.
    - algolia/search-bundle[5.0.0, ..., 5.2.1] require symfony/filesystem ^3.4 || ^4.0 || ^5.0 -> found symfony/filesystem[v3.4.0, ..., v3.4.47, v4.0.0, ..., v4.4.42, v5.0.0, ..., v5.4.40] but these were not loaded, likely because it conflicts with another require.
    - algolia/search-bundle[6.0.0, ..., 6.0.1] require symfony/filesystem ^5.0 || ^6.0 -> found symfony/filesystem[v5.0.0, ..., v5.4.40, v6.0.0, ..., v6.4.8] but these were not loaded, likely because it conflicts with another require.
    - Root composer.json requires algolia/search-bundle * -> satisfiable by algolia/search-bundle[1.0.0, ..., 1.0.13, 2.0.0, 2.1.0, 2.2.0, 3.0.0, ..., 3.4.0, 4.0.0, 4.1.0, 4.1.1, 4.1.2, 5.0.0, ..., 5.2.1, 6.0.0, 6.0.1].

To enable extensions, verify that they are enabled in your .ini files:
    - /Applications/MAMP/bin/php/php8.2.0/conf/php.ini
You can also run `php --ini` in a terminal to see which files are used by PHP in CLI mode.
Alternatively, you can run Composer with `--ignore-platform-req=ext-mysql_xdevapi` to temporarily ignore these required extensions.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require algolia/search-bundle:*" to figure out if any version is installable, or "composer require algolia/search-bundle:^2.1" if you know which you need.

好的,需要ext-mysql_xdevapi。它似乎可以通过 PECL 安装,但我没有成功(网上文档很少 - 我的错误?也许......)

问题2对我来说是无稽之谈,它需要symfony 2.5,什么是poutdated by... 10年?

可能是我的错,但经过两天的谷歌搜索我不知道。任何帮助都是最有用的。谢谢。

symfony algolia mamp-pro
1个回答
0
投票

看起来像seach-bundle,还不支持Symfony 7。

https://github.com/algolia/search-bundle/issues/377

© www.soinside.com 2019 - 2024. All rights reserved.