Sambungan PHP ext-curl* tiada pada sistem anda. Sila pasang atau dayakan sambungan curl PHP. Walaupun ia sudah dipasang pada mesin saya
P粉141911244
P粉141911244 2024-02-25 21:43:04
0
1
481

Saya baru sahaja cuba menjalankan arahan composer install untuk projek laravel. Saya mempunyai semua sambungan PHP ini dalam direktori C:xamppphpext saya, tetapi ralat masih muncul seperti ini:

PS C:\Users\user\Documents\Test Real\Hantech\OceanAMS> composer install
You are running Composer with SSL/TLS protection disabled.
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Your lock file does not contain a compatible set of packages. Please run composer update.

  Problem 1
    - Root composer.json requires PHP extension ext-curl * but it is missing from your system. Install or enable PHP's curl extension.
  Problem 2
    - Root composer.json requires PHP extension ext-fileinfo * but it is missing from your system. Install or enable PHP's fileinfo extension.
  Problem 3
    - defuse/php-encryption is locked to version v2.3.1 and an update of this package was not requested.
    - defuse/php-encryption v2.3.1 requires ext-openssl * -> it is missing from your system. Install or enable PHP's openssl extension.
  Problem 4
    - eduardokum/laravel-mail-auto-embed is locked to version 1.0.7 and an update of this package was not requested.
    - eduardokum/laravel-mail-auto-embed 1.0.7 requires ext-curl * -> it is missing from your system. Install or enable PHP's curl extension.
  Problem 5
    - facade/ignition is locked to version 2.17.6 and an update of this package was not requested.
    - facade/ignition 2.17.6 requires ext-curl * -> it is missing from your system. Install or enable PHP's curl extension.
  Problem 6
    - intervention/image is locked to version 2.7.2 and an update of this package was not requested.
    - intervention/image 2.7.2 requires ext-fileinfo * -> it is missing from your system. Install or enable PHP's fileinfo extension.
  Problem 7
    - laravel/framework is locked to version v8.83.22 and an update of this package was not requested.
    - laravel/framework v8.83.22 requires ext-openssl * -> it is missing from your system. Install or enable PHP's openssl extension.
  Problem 8
    - lcobucci/jwt is locked to version 4.1.5 and an update of this package was not requested.
    - lcobucci/jwt 4.1.5 requires ext-openssl * -> it is missing from your system. Install or enable PHP's openssl extension.
  Problem 9
    - league/flysystem is locked to version 1.1.9 and an update of this package was not requested.
    - league/flysystem 1.1.9 requires ext-fileinfo * -> it is missing from your system. Install or enable PHP's fileinfo extension.
  Problem 10
    - league/mime-type-detection is locked to version 1.11.0 and an update of this package was not requested.
    - league/mime-type-detection 1.11.0 requires ext-fileinfo * -> it is missing from your system. Install or enable PHP's fileinfo extension.
  Problem 11
    - league/oauth1-client is locked to version v1.10.1 and an update of this package was not requested.
    - league/oauth1-client v1.10.1 requires ext-openssl * -> it is missing from your system. Install or enable PHP's openssl extension.
  Problem 12
    - league/oauth2-server is locked to version 8.3.5 and an update of this package was not requested.
    - league/oauth2-server 8.3.5 requires ext-openssl * -> it is missing from your system. Install or enable PHP's openssl extension.
  Problem 13
    - phpoffice/phpspreadsheet is locked to version 1.24.1 and an update of this package was not requested.
    - phpoffice/phpspreadsheet 1.24.1 requires ext-fileinfo * -> it is missing from your system. Install or enable PHP's fileinfo extension.
  Problem 14
    - robrichards/xmlseclibs is locked to version 3.1.1 and an update of this package was not requested.
    - robrichards/xmlseclibs 3.1.1 requires ext-openssl * -> it is missing from your system. Install or enable PHP's openssl extension.
  Problem 15
    - rollbar/rollbar is locked to version v2.1.0 and an update of this package was not requested.
    - rollbar/rollbar v2.1.0 requires ext-curl * -> it is missing from your system. Install or enable PHP's curl extension.
  Problem 16
    - tecnickcom/tc-lib-barcode is locked to version 1.17.14 and an update of this package was not requested.
    - tecnickcom/tc-lib-barcode 1.17.14 requires ext-gd * -> it is missing from your system. Install or enable PHP's gd extension.
  Problem 17
    - composer/ca-bundle is locked to version 1.3.5 and an update of this package was not requested.
    - composer/ca-bundle 1.3.5 requires ext-openssl * -> it is missing from your system. Install or enable PHP's openssl extension.
  Problem 18
    - php-webdriver/webdriver is locked to version 1.12.1 and an update of this package was not requested.
    - php-webdriver/webdriver 1.12.1 requires ext-curl * -> it is missing from your system. Install or enable PHP's curl extension.
  Problem 19
    - laravel/framework v8.83.22 requires ext-openssl * -> it is missing from your system. Install or enable PHP's openssl extension.
    - nunomaduro/larastan 1.0.4 requires illuminate/console ^6.0 || ^7.0 || ^8.0 || ^9.0 -> satisfiable by laravel/framework[v8.83.22].
    - nunomaduro/larastan is locked to version 1.0.4 and an update of this package was not requested.

Saya juga mengesahkan bahawa curl didayakan pada sistem saya dengan melihat http://localhost/dashboard/phpinfo.php dalam mesin saya.

Mesin saya ialah: Menang 10 64 bit PHP versi 8.0.28 Versi Komposer 2.6.1

P粉141911244
P粉141911244

membalas semua(1)
P粉659516906

Jadi saya menemui penyelesaian saya sendiri supaya saya boleh memasang php menggunakan bukan-thread-safe, yang menyebabkan masalah kerana menurut ini jawapan, ia mengatakan bahawa jika anda memasang PHP sebagai modul Apache dalam MPM (Model Pemprosesan Berbilang) yang berfungsi Kemudian anda harus menggunakan thread-safe .

Anda boleh menyemak sama ada php pada mesin anda menggunakan thread-safe atau non-thread-safe dengan menjalankan php -v, ia akan memberitahu anda pada penghujung versi php. Jika ia (ZTS) ia bermakna ia dibina dengan sokongan thread-safe (ZTS), tetapi jika ia bukan thread-safe (NTS) ia bermakna ia tidak thread-safe.

Berikut adalah contoh:

  • Benang selamat
    PHP 8.0.25 (cli) (Bina: 2022-10-25 10:49:29) (ZTS Visual C++ 2019 x64) Hak Cipta (c) Kumpulan PHP Zend Engine v4.0.25, Hak Cipta (c) Zend Technologies

  • Tidak selamat benang
    PHP 8.0.25 (cli) (Bina: 2022-10-25 10:49:29) (TS Visual C++ 2019 x64) Hak Cipta (c) Kumpulan PHP Zend Engine v4.0.25, Hak Cipta (c) Zend Technologies

Muat turun terkini
Lagi>
kesan web
Kod sumber laman web
Bahan laman web
Templat hujung hadapan
Tentang kita Penafian Sitemap
Laman web PHP Cina:Latihan PHP dalam talian kebajikan awam,Bantu pelajar PHP berkembang dengan cepat!