Hướng dẫn phpoffice/phpspreadsheet 1.23 0 requires ext-gd * but it is not present - phpoffice / phpspreadsheet 1.23 0 yêu cầu ext-gd * nhưng nó không hiện diện

2

Mới! Lưu câu hỏi hoặc câu trả lời và sắp xếp nội dung yêu thích của bạn. Tìm hiểu thêm.
Learn more.

Tôi cố gắng cài đặt phpspreadysheet nhưng những lỗi này xảy ra

Installation failed, deleting ./composer.json.


  [RuntimeException]
  No composer.json present in the current directory (./composer.json), this may   
  be the cause of the following exception.
                                                                                   


  [InvalidArgumentException]
  Package phpoffice/phpspreadsheet has requirements incompatible with your PHP v   
  ersion, PHP extensions and Composer version:                                     
    - phpoffice/phpspreadsheet 1.22.0 requires ext-fileinfo * but it is not pres   
  ent.                                                                             
    - phpoffice/phpspreadsheet 1.22.0 requires ext-gd * but it is not present.

Có ai biết làm thế nào để sửa lỗi này? Tôi bị mắc kẹt với những lỗi này trong hai ngày và không thể tìm thấy giải pháp. Cảm ơn bạn

Đã hỏi 24 tháng 2 lúc 17:32Feb 24 at 17:32

Hướng dẫn phpoffice/phpspreadsheet 1.23 0 requires ext-gd * but it is not present - phpoffice / phpspreadsheet 1.23 0 yêu cầu ext-gd * nhưng nó không hiện diện

3

Mở php.ini, tìm kiếm và không biết sau

  1. extension=gd
  2. extension=fileinfo

Đã trả lời ngày 16 tháng 3 lúc 6:25Mar 16 at 6:25

Mở dự án của bạn trong Visual Studio và nhấp vào CTR+Shift+`để mở thiết bị đầu cuối hoặc mở CMD và đến thư mục dự án của bạnclick ctr+shift+` to open terminal or open cmd and to your project directory

và dán mã bên dưới

composer require phpoffice/phpspreadsheet --ignore-platform-req=ext-gd

Cú pháp trên làm việc cho tôi.

Đã trả lời ngày 30 tháng 7 lúc 7:03Jul 30 at 7:03

Hướng dẫn phpoffice/phpspreadsheet 1.23 0 requires ext-gd * but it is not present - phpoffice / phpspreadsheet 1.23 0 yêu cầu ext-gd * nhưng nó không hiện diện

Trong khi cài đặt gói Maatwebsite/Excel trên máy chủ, nó sẽ gây ra lỗi dưới đây. Mã đang triển khai bằng Circleci. Tôi đã kiểm tra trên tiện ích mở rộng GD của máy chủ đã được bật. Bất cứ ai có thể giúp tôi về điều này xin vui lòng?

Yêu cầu của bạn không thể được giải quyết cho một bộ gói có thể cài đặt.

Bài 1 - Yêu cầu cài đặt cho PHPoffice/PHPSPREADSHEET 1.14.1 -> Sự hài lòng bởi PHPoffice/PHPSpreadSheet [1.14.1]. -PHPOFFICE/PHPSPREADSHEET 1.14.1 yêu cầu EXT -GD * -> GD mở rộng PHP được yêu cầu bị thiếu trong hệ thống của bạn. Bài toán 2 -PHPOffice/PHPSPREADSHEET 1.14.1 yêu cầu EXT -GD * -> GD mở rộng PHP được yêu cầu bị thiếu trong hệ thống của bạn. - Maatwebsite/Excel 3.1.21 yêu cầu PHPOFFICE/PHPSPREADSHEET ^1.14 -> Sự hài lòng bởi phpoffice/phpspreadsheet [1.14.1]. - Yêu cầu cài đặt cho maatwebsite/excel 3.1.21 -> Sự hài lòng bởi maatwebsite/excel [3.1.21].
- Installation request for phpoffice/phpspreadsheet 1.14.1 -> satisfiable by phpoffice/phpspreadsheet[1.14.1].
- phpoffice/phpspreadsheet 1.14.1 requires ext-gd * -> the requested PHP extension gd is missing from your system.
Problem 2
- phpoffice/phpspreadsheet 1.14.1 requires ext-gd * -> the requested PHP extension gd is missing from your system.
- maatwebsite/excel 3.1.21 requires phpoffice/phpspreadsheet ^1.14 -> satisfiable by phpoffice/phpspreadsheet[1.14.1].
- Installation request for maatwebsite/excel 3.1.21 -> satisfiable by maatwebsite/excel[3.1.21].

Để bật các tiện ích mở rộng, hãy xác minh rằng chúng được bật trong các tệp .ini của bạn: - - /usr .d/docker-php-ext-modium.ini-/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini-/usr/local/etc/php/conf.d/docker -php-ext-zip.ini Bạn cũng có thể chạy php --ini bên trong thiết bị đầu cuối để xem các tệp nào được sử dụng bởi PHP ở chế độ CLI.
-
- /usr/local/etc/php/conf.d/docker-php-ext-intl.ini
- /usr/local/etc/php/conf.d/docker-php-ext-sodium.ini
- /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
- /usr/local/etc/php/conf.d/docker-php-ext-zip.ini
You can also run php --ini inside terminal to see which files are used by PHP in CLI mode.

Thoát với trạng thái thoát mã 2 circleci đã nhận được mã thoát 2
CircleCI received exit code 2

Xin chào, tôi đang gặp lỗi khi cài đặt gói Maatwebsite/Excel bằng trình soạn thảo trên máy chủ.
Problem 1

- Installation request for phpoffice/phpspreadsheet 1.14.1 -> satisfiable by phpoffice/phpspreadsheet[1.14.1].
- phpoffice/phpspreadsheet 1.14.1 requires ext-gd * -> the requested PHP extension gd is missing from your system.

Bài 2

- phpoffice/phpspreadsheet 1.14.1 requires ext-gd * -> the requested PHP extension gd is missing from your system.
- maatwebsite/excel 3.1.21 requires phpoffice/phpspreadsheet ^1.14 -> satisfiable by phpoffice/phpspreadsheet[1.14.1].
- Installation request for maatwebsite/excel 3.1.21 -> satisfiable by maatwebsite/excel[3.1.21].

Vấn đề 3

Để bật các tiện ích mở rộng, hãy xác minh rằng chúng được bật trong các tệp .ini của bạn:

Bạn cũng có thể chạy php --ini bên trong thiết bị đầu cuối để xem các tệp nào được sử dụng bởi PHP ở chế độ CLI.

Thoát với trạng thái thoát mã 2circleci đã nhận được mã thoát 2`

@itsdeo Bạn cần cài đặt và bật

- phpoffice/phpspreadsheet 1.14.1 requires ext-gd * -> the requested PHP extension gd is missing from your system.
- maatwebsite/excel 3.1.21 requires phpoffice/phpspreadsheet ^1.14 -> satisfiable by phpoffice/phpspreadsheet[1.14.1].
- Installation request for maatwebsite/excel 3.1.21 -> satisfiable by maatwebsite/excel[3.1.21].
9 cho PHP được sử dụng bởi nhà soạn nhạc

Chào. Khách hàng của chúng tôi đang tải lên một số tệp Magic XLSX mà thư viện không thể đọc được. Tôi đang nhận được

- The requested PHP extension ext-gd * is missing from your system. Install or enable PHP's gd extension.
0, mặc dù mọi phần mềm (số, Google Sheets) có thể mở thành công và đọc tệp. Phần khó khăn là tôi không thể chia sẻ tệp này vì nó có dữ liệu cá nhân của người dùng và nếu tôi xóa dữ liệu này và lưu lại theo số hoặc bảng Google, lỗi sẽ biến mất. Ai đó có thể giúp tôi gỡ lỗi lỗi này, hoặc ít nhất là chỉ cho tôi nơi tôi nên nhìn? Tôi đã cố gắng gỡ lỗi cho người đọc xlsx nhưng không tìm thấy gì

Làm cách nào để kích hoạt mở rộng GD của PHP?

Adrien Crivelli

@PowerKiKi

Để bật cấu hình hỗ trợ GD-với gd-gd [= dir], trong đó dir là thư mục cài đặt cơ sở GD. Để sử dụng phiên bản đi kèm được đề xuất của thư viện GD, hãy sử dụng tùy chọn cấu hình-với-GD. Thư viện GD yêu cầu libpng và libjpeg biên dịch. it is right there in the error message: PHP extension gd is missing from your system

Làm cách nào để cài đặt GD trong Windows?

composer require phpoffice/phpspreadsheet --ignore-platform-req=ext-gd
0
composer require phpoffice/phpspreadsheet --ignore-platform-req=ext-gd
1
composer require phpoffice/phpspreadsheet --ignore-platform-req=ext-gd
2

Cài đặt PHP GD trong Windows.

Bước 1: Cài đặt XAMPP trong hệ thống Windows của bạn .. - are you including the composer autoloader? It doesn't look like it from your 3 lines of code

composer require phpoffice/phpspreadsheet --ignore-platform-req=ext-gd
3
composer require phpoffice/phpspreadsheet --ignore-platform-req=ext-gd
4
composer require phpoffice/phpspreadsheet --ignore-platform-req=ext-gd
4

composer require phpoffice/phpspreadsheet --ignore-platform-req=ext-gd
0
composer require phpoffice/phpspreadsheet --ignore-platform-req=ext-gd
1
composer require phpoffice/phpspreadsheet --ignore-platform-req=ext-gd
1

composer require phpoffice/phpspreadsheet --ignore-platform-req=ext-gd
7
composer require phpoffice/phpspreadsheet --ignore-platform-req=ext-gd
8
composer require phpoffice/phpspreadsheet --ignore-platform-req=ext-gd
9
composer require phpoffice/phpspreadsheet --ignore-platform-req=ext-gd
8
composer require phpoffice/phpspreadsheet --ignore-platform-req=ext-gd
9

Bước 2: Xác minh nếu GD đã được cài đặt hay chưa. ....

Bước 3: Xác định vị trí và mở PHP. ....

composer require phpoffice/phpspreadsheet --ignore-platform-req=ext-gd
2

Bước 4: Tìm; Phần mở rộng = GD ..

Bước 5: Xóa dấu chấm phẩy khỏi; Extension = gd và lưu tệp ..

Bước 6: Chuyển đến thư mục PHP. ....

Bước 7: Tìm PHP_GD. ....

Bước 8: Sao chép PHP_GD ..

Xin chào, tôi đang gặp lỗi khi cài đặt gói Maatwebsite/Excel bằng trình soạn thảo trên máy chủ.

Tôi đã kiểm tra GD là Alrady được bật trên hệ thống. Có ai giúp tôi về điều này xin vui lòng?

Ok, sẽ thử điều đó. Như tôi đã nói, tôi chỉ sử dụng một ví dụ và cố gắng tìm hiểu cách thức hoạt động của nó

Bạn đã cài đặt phpspreadsheet bằng

- Installation request for phpoffice/phpspreadsheet 1.14.1 -> satisfiable by phpoffice/phpspreadsheet[1.14.1].
- phpoffice/phpspreadsheet 1.14.1 requires ext-gd * -> the requested PHP extension gd is missing from your system.
6 chưa? Hoặc bạn đã tải xuống zip?

Tôi đã tải xuống tệp json và cài đặt trình soạn thảo chạy

- Installation request for phpoffice/phpspreadsheet 1.14.1 -> satisfiable by phpoffice/phpspreadsheet[1.14.1].
- phpoffice/phpspreadsheet 1.14.1 requires ext-gd * -> the requested PHP extension gd is missing from your system.
7 vì tôi cũng chưa bao giờ sử dụng nó.

Tôi đã có một tin nhắn siêu dài khác ở trên khi tôi đang cố gắng tìm ra mọi thứ, nhưng sau đó dường như tôi đang tiến bộ, tôi đã xóa (các) câu hỏi cũ

Ah! Gợi ý. Xóa

- Installation request for phpoffice/phpspreadsheet 1.14.1 -> satisfiable by phpoffice/phpspreadsheet[1.14.1].
- phpoffice/phpspreadsheet 1.14.1 requires ext-gd * -> the requested PHP extension gd is missing from your system.
8 và
- Installation request for phpoffice/phpspreadsheet 1.14.1 -> satisfiable by phpoffice/phpspreadsheet[1.14.1].
- phpoffice/phpspreadsheet 1.14.1 requires ext-gd * -> the requested PHP extension gd is missing from your system.
9, sau đó chạy
- phpoffice/phpspreadsheet 1.14.1 requires ext-gd * -> the requested PHP extension gd is missing from your system.
- maatwebsite/excel 3.1.21 requires phpoffice/phpspreadsheet ^1.14 -> satisfiable by phpoffice/phpspreadsheet[1.14.1].
- Installation request for maatwebsite/excel 3.1.21 -> satisfiable by maatwebsite/excel[3.1.21].
0 từ thư mục nhà của bạn ... Nếu bạn vừa tải xuống

Kiểm tra thư mục

- phpoffice/phpspreadsheet 1.14.1 requires ext-gd * -> the requested PHP extension gd is missing from your system.
- maatwebsite/excel 3.1.21 requires phpoffice/phpspreadsheet ^1.14 -> satisfiable by phpoffice/phpspreadsheet[1.14.1].
- Installation request for maatwebsite/excel 3.1.21 -> satisfiable by maatwebsite/excel[3.1.21].
2 của bạn sau đó và sau đó bạn nên tìm một thư mục con
- phpoffice/phpspreadsheet 1.14.1 requires ext-gd * -> the requested PHP extension gd is missing from your system.
- maatwebsite/excel 3.1.21 requires phpoffice/phpspreadsheet ^1.14 -> satisfiable by phpoffice/phpspreadsheet[1.14.1].
- Installation request for maatwebsite/excel 3.1.21 -> satisfiable by maatwebsite/excel[3.1.21].
3

Ermergerd! Cảm ơn! Tôi nhận thấy không có thư mục Office PHP trong thư mục nhà cung cấp, nhưng nghĩ rằng nó chỉ nằm dưới một nhà cung cấp trong danh sách (trong đó Tehre giống như 25).

Tôi nghĩ rằng lỗi khác có liên quan đến việc cần chỉnh sửa SQL cho các bảng của tôi.

Dù bằng cách nào, tôi đã vượt qua dòng đó, cảm ơn bạn rất nhiều.

Tôi có nên lo lắng về các tin nhắn "Gói XYZ đã bị bỏ rơi" trong quá trình cài đặt không?

Không phải tại thời điểm này (tôi cho rằng bạn đang đề cập đến jpgraph); Nếu bạn đang lên kế hoạch sử dụng các tính năng phụ thuộc vào gói đó (tức là chuyển đổi biểu đồ MS Excel sang hình ảnh JPEG), thì nó vẫn sẽ hoạt động vào lúc này, nhưng chúng tôi không thể đảm bảo nó sẽ như vậy trong tương lai

-stoken-stream chỉ được sử dụng như một phần của bộ công cụ phát triển của riêng chúng tôi, vì vậy không quan trọng cho chính bạn

@PowerKiKi

@itsdeo nó ở ngay trong thông báo lỗi: PHP extension gd is missing from your system it is right there in the error message: PHP extension gd is missing from your system

Nhưng tôi đã kiểm tra vào php.ini, GD đã được bật. $ PHP - -info | grep -i gd/etc/php-7.3.d/20-gd.ini, hỗ trợ gdgd => enableDgd phiên bản => đi kèm (2.1.0 tương thích) gd.jpeg_ignore_warning => 1 => 1
$ php --info | grep -i gd
/etc/php-7.3.d/20-gd.ini,
gd
GD Support => enabled
GD Version => bundled (2.1.0 compatible)
gd.jpeg_ignore_warning => 1 => 1

Adrien Crivelli

@PowerKiKi

@itsdeo Kiểm tra xem nhà soạn nhạc nhìn thấy gì:

- phpoffice/phpspreadsheet 1.14.1 requires ext-gd * -> the requested PHP extension gd is missing from your system.
- maatwebsite/excel 3.1.21 requires phpoffice/phpspreadsheet ^1.14 -> satisfiable by phpoffice/phpspreadsheet[1.14.1].
- Installation request for maatwebsite/excel 3.1.21 -> satisfiable by maatwebsite/excel[3.1.21].
5 check what composer sees:
- phpoffice/phpspreadsheet 1.14.1 requires ext-gd * -> the requested PHP extension gd is missing from your system.
- maatwebsite/excel 3.1.21 requires phpoffice/phpspreadsheet ^1.14 -> satisfiable by phpoffice/phpspreadsheet[1.14.1].
- Installation request for maatwebsite/excel 3.1.21 -> satisfiable by maatwebsite/excel[3.1.21].
5

nhiều khả năng là nhà soạn nhạc không sử dụng phiên bản PHP mà bạn nghĩ rằng nó đang sử dụng

Trong nhà soạn nhạc bên dưới các tiện ích mở rộng và các gói được thêm vào yêu cầu require ": {" php ":"> = 7.1.3 "," ext-json ":" "," ext-gd ":" " "", "ext-opensssl": "", "ext-pdo": "" Dompdf ":"^0.8,5 "," Học thuyết/Dbal ":" 2.5. "," Eddturtle/Direct-Upload ":"^1.6 " : "^2.5", "Laravel/Framework": "5.6." : "^3.1", "Rossjcooper/Laravel-Hubspot": "^1.0.2", "Staudenmeir/Eloquent-Has-Many-sâu": "^1.7" 1.3.1 "},
require": {
"php": ">=7.1.3",
"ext-json": "",
"ext-gd":"",
"ext-mbstring": "",
"ext-openssl": "",
"ext-pdo": "",
"ext-tokenizer": "",
"aws/aws-sdk-php": "~3.0",
"barryvdh/laravel-dompdf": "^0.8.5",
"doctrine/dbal": "2.5.",
"eddturtle/direct-upload": "^1.6",
"fideloper/proxy": "~4.0",
"intervention/image": "^2.5",
"laravel/framework": "5.6.",
"laravel/tinker": "~1.0",
"league/flysystem-aws-s3-v3": "^1.0",
"maatwebsite/excel": "^3.1",
"rossjcooper/laravel-hubspot": "^1.0.2",
"staudenmeir/eloquent-has-many-deep": "^1.7",
"wikimedia/composer-merge-plugin": "^1.3.1"
},

- phpoffice/phpspreadsheet 1.14.1 requires ext-gd * -> the requested PHP extension gd is missing from your system.
- maatwebsite/excel 3.1.21 requires phpoffice/phpspreadsheet ^1.14 -> satisfiable by phpoffice/phpspreadsheet[1.14.1].
- Installation request for maatwebsite/excel 3.1.21 -> satisfiable by maatwebsite/excel[3.1.21].
6Composer Update ____37Composer Cập nhật `.
Your requirements could not be resolved to an installable set of packages.

Bài 1

- The requested PHP extension ext-gd * is missing from your system. Install or enable PHP's gd extension.

Bài 2

- Installation request for maatwebsite/excel 3.1.21 -> satisfiable by maatwebsite/excel[3.1.21].
- maatwebsite/excel 3.1.21 requires ext-gd * -> the requested PHP extension gd is missing from your system.

Vấn đề 3

- Installation request for phpoffice/phpspreadsheet 1.14.1 -> satisfiable by phpoffice/phpspreadsheet[1.14.1].
- phpoffice/phpspreadsheet 1.14.1 requires ext-gd * -> the requested PHP extension gd is missing from your system.

Để bật các tiện ích mở rộng, hãy xác minh rằng chúng được bật trong các tệp .ini của bạn:

- 
- /usr/local/etc/php/conf.d/docker-php-ext-intl.ini
- /usr/local/etc/php/conf.d/docker-php-ext-sodium.ini
- /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
- /usr/local/etc/php/conf.d/docker-php-ext-zip.ini

Bạn cũng có thể chạy php --ini bên trong thiết bị đầu cuối để xem các tệp nào được sử dụng bởi PHP ở chế độ CLI.

Thoát với trạng thái thoát mã 2circleci đã nhận được mã thoát 2`
CircleCI received exit code 2`

Adrien Crivelli

@PowerKiKi

@itsdeo Kiểm tra xem nhà soạn nhạc nhìn thấy gì:

- phpoffice/phpspreadsheet 1.14.1 requires ext-gd * -> the requested PHP extension gd is missing from your system.
- maatwebsite/excel 3.1.21 requires phpoffice/phpspreadsheet ^1.14 -> satisfiable by phpoffice/phpspreadsheet[1.14.1].
- Installation request for maatwebsite/excel 3.1.21 -> satisfiable by maatwebsite/excel[3.1.21].
5 you need to install and enable
- phpoffice/phpspreadsheet 1.14.1 requires ext-gd * -> the requested PHP extension gd is missing from your system.
- maatwebsite/excel 3.1.21 requires phpoffice/phpspreadsheet ^1.14 -> satisfiable by phpoffice/phpspreadsheet[1.14.1].
- Installation request for maatwebsite/excel 3.1.21 -> satisfiable by maatwebsite/excel[3.1.21].
9 for the PHP that is used by composer

Hướng dẫn phpoffice/phpspreadsheet 1.23 0 requires ext-gd * but it is not present - phpoffice / phpspreadsheet 1.23 0 yêu cầu ext-gd * nhưng nó không hiện diện

nhiều khả năng là nhà soạn nhạc không sử dụng phiên bản PHP mà bạn nghĩ rằng nó đang sử dụng

Làm cách nào để kích hoạt mở rộng GD của PHP?

Để bật cấu hình hỗ trợ GD-với gd-gd [= dir], trong đó dir là thư mục cài đặt cơ sở GD.Để sử dụng phiên bản đi kèm được đề xuất của thư viện GD, hãy sử dụng tùy chọn cấu hình-với-GD.Thư viện GD yêu cầu libpng và libjpeg biên dịch.configure PHP --with-gd[=DIR], where DIR is the GD base install directory. To use the recommended bundled version of the GD library, use the configure option --with-gd. GD library requires libpng and libjpeg to compile.

Làm cách nào để cài đặt GD trong Windows?

Cài đặt PHP GD trong Windows..
Bước 1: Cài đặt XAMPP trong hệ thống Windows của bạn ..
Bước 2: Xác minh nếu GD đã được cài đặt hay chưa.....
Bước 3: Xác định vị trí và mở PHP.....
Bước 4: Tìm; Phần mở rộng = GD ..
Bước 5: Xóa dấu chấm phẩy khỏi; Extension = gd và lưu tệp ..
Bước 6: Chuyển đến thư mục PHP.....
Bước 7: Tìm PHP_GD.....
Bước 8: Sao chép PHP_GD ..