Ralat komposer bahawa maklumat fail sambungan PHP tiada daripada sistem
P粉465675962
P粉465675962 2023-10-18 11:47:04
0
2
607

Saya cuba memasang imej campur tangan pakej Laravel dan apabila saya menjalankan composer update:

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - intervention/image 2.0.5 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
    - intervention/image 2.0.4 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
    - intervention/image 2.0.3 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
    - intervention/image 2.0.2 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
    - intervention/image 2.0.1 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
    - intervention/image 2.0.0 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
    - Installation request for intervention/image 2.* -> satisfiable by intervention/image[2.0.0, 2.0.1, 2.0.2, 2.0.3, 2.0.4, 2.0.5].

Saya mempunyai php 5.4 dan sambungan didayakan dalam php.iniphpinfo():

fileinfo

fileinfo support                  enabled
version                           1.0.5

dan mulakan semula apache... tetapi masih tidak berjaya.

P粉465675962
P粉465675962

membalas semua(2)
P粉702946921

Pengguna Windows: Hanya edit php.ini dan nyahkomen baris ini:

extension=php_fileinfo.dll

Ingat untuk memulakan semula Apache agar php.ini baharu berkuat kuasa.

P粉277464743

Nampaknya ini disebabkan php.ini 文件,并且作曲家使用 CLI 而 phpinfo() 使用主 php.iniisu berasingan dengan web/apache dan CLI.

Jika anda berlari dalam CLI php -m 并且没有看到模块的名称,您应该找到 CLI php.ini (在我的例子中 php- cli.ini 并添加扩展名。例如 extension=php_fileinfo.dll

Muat turun terkini
Lagi>
kesan web
Kod sumber laman web
Bahan laman web
Templat hujung hadapan