Hướng dẫn no package php7 4 gd available - không có gói php7 4 gd nào có sẵn

Halo Guys. Tôi thực sự rất khó chịu cho hình ảnh can thiệp thiết lập trên Laravel của tôi. Tôi đang sử dụng :

  • Khung Laravel 5.4.36,
  • Php 7.2.12
  • bento/centos7.2
  • Vagrant 2.1.1

Lúc đầu, tôi gặp lỗi này sau khi thiết lập "hình ảnh can thiệp".

GD Library extension not available with this PHP installation.

Vì vậy, tôi chạy điều này khen ngợi:

sudo yum -y install php-gd

Nhưng lỗi hiển thị:

Error: Package: php-gd-5.4.16-46.el7.x86_64 (base)
           Requires: php-common(x86-64) = 5.4.16-46.el7
           Installed: php-common-7.2.12-1.el7.remi.x86_64 (@remi-php72)
               php-common(x86-64) = 7.2.12-1.el7.remi
           Available: php-common-5.4.16-46.el7.x86_64 (base)
               php-common(x86-64) = 5.4.16-46.el7
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

Tôi cũng chạy với mã này:

sudo yum -y install php-gd --skip-broken

Nhưng hiển thị lỗi này:

Packages skipped because of dependency problems:
    libX11-1.6.5-2.el7.x86_64 from base
    libX11-common-1.6.5-2.el7.noarch from base
    libXau-1.0.8-2.1.el7.x86_64 from base
    libXpm-3.5.12-1.el7.x86_64 from base
    libjpeg-turbo-1.2.90-6.el7.x86_64 from base
    2:libpng-1.5.13-7.el7_2.x86_64 from base
    libxcb-1.13-1.el7.x86_64 from base
    php-gd-5.4.16-46.el7.x86_64 from base
    t1lib-5.1.2-14.el7.x86_64 from base

Tôi cũng tìm thấy một mã khác:

sudo yum install php7.2-gd

Nhưng kết quả là:

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.buana.web.id
 * epel: epel.mirror.angkasa.id
 * extras: mirror.buana.web.id
 * remi-safe: mirror.xeonbd.com
 * updates: mirror.buana.web.id
No package php7.2-gd available.
Error: Nothing to do

tôi nên làm gì. Tôi cần thay đổi kích thước hình ảnh thành kích thước điện thoại thông minh và kích thước iPad. Vì vậy, tôi sử dụng "plugin hình ảnh can thiệp" .. có bất kỳ sự giải quyết nào cho việc này không?


Nordin74 ¶

2 năm trướcMarkdown to format your answer.

Gabriel Torres ¶!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Omni tại Ominsapien Dot Com ¶


Làm thế nào để cài đặt thư viện GD trong Php 7. 4?

Để 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. Kể từ Php 7.4.

sudo yum install php70u-gd

Làm thế nào để cài đặt thư viện GD trong PHP?

yum list installed *php*

Muốn tìm hiểu thêm? Tham gia cộng đồng DigitalOcean!

Tham gia cộng đồng DigitalOcean của chúng tôi miễn phí hơn một triệu nhà phát triển! Nhận trợ giúp và chia sẻ kiến ​​thức trong Q & A, đăng ký các chủ đề quan tâm và nhận các khóa học và công cụ sẽ giúp bạn phát triển như một nhà phát triển và mở rộng quy mô dự án hoặc doanh nghiệp của bạn.

Sau khi một số cuộc đấu tranh cố gắng để có được gói phù hợp với centos, nó đã bị thương: Yum cài đặt PHP-GDyum install php-gd

Các gói khác không có sẵn nữa.

Đây không phải là vấn đề Centos/Linux/Yum.

Để bật PHP-GD trên cPanel, bạn phải đi qua giao diện WHM của CPanel và bật nó qua menu sau:

Trang chủ> Phần mềm> EasyApache (Cập nhật Apache)

và bật mô -đun GD trên "Danh sách tùy chọn đầy đủ". CPanel sau đó sẽ xây dựng lại PHP và Apache với mô -đun được cập nhật.
cPanel will then rebuild PHP and Apache with the updated module.

Nordin74 ¶--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. As of PHP 7.4.0, --with-gd becomes --enable-gd (whether to enable the extension at all) and --with-external-gd (to opt into using an external libgd, rather than the bundled one).

Trong Windows, bạn sẽ bao gồm GD DLL PHP_GD.DLL dưới dạng phần mở rộng trong Php.ini. Trước PHP 8.0.0, DLL được đặt tên là PHP_GD2.dll.

Tăng cường khả năng của GD để xử lý nhiều định dạng hình ảnh hơn bằng cách chỉ định công tắc cấu hình --with-XXXX sang dòng cấu hình PHP của bạn.

Các định dạng hình ảnh được hỗ trợ
Định dạng hình ảnhĐịnh cấu hình công tắc
sudo yum -y install php-gd
0
Để cho phép hỗ trợ cho JPEG Thêm-với-JPEG-DIR = DIR. JPEG 6b, 7 hoặc 8 được hỗ trợ. Kể từ Php 7.4.0, sử dụng-với-jpeg thay thế.--with-jpeg-dir=DIR. Jpeg 6b, 7 or 8 are supported. As of PHP 7.4.0, use --with-jpeg instead.
sudo yum -y install php-gd
1
Để cho phép hỗ trợ cho PNG Thêm-với-png-dir = dir. Lưu ý, libpng yêu cầu thư viện zlib, do đó thêm-với-with-zlib-dir [= dir] vào dòng cấu hình của bạn. Kể từ Php 7.4.0,--with-png-dir và--with-zlib-dir đã bị loại bỏ. Libpng và zlib được yêu cầu.--with-png-dir=DIR. Note, libpng requires the zlib library, therefore add --with-zlib-dir[=DIR] to your configure line. As of PHP 7.4.0, --with-png-dir and --with-zlib-dir have been removed. libpng and zlib are required.
sudo yum -y install php-gd
2
Để bật hỗ trợ cho XPM Thêm-với-XPM-DIR = DIR. Nếu cấu hình không thể tìm thấy các thư viện cần thiết, bạn có thể thêm đường dẫn vào thư viện X11 của mình. Kể từ Php 7.4.0, sử dụng-với-XPM thay thế.--with-xpm-dir=DIR. If configure is not able to find the required libraries, you may add the path to your X11 libraries. As of PHP 7.4.0, use --with-xpm instead.
sudo yum -y install php-gd
3
Để bật hỗ trợ cho trang web Thêm-với WEBP-DIR = DIR. Kể từ Php 7.4.0, sử dụng-với WEBP thay thế.--with-webp-dir=DIR. As of PHP 7.4.0, use --with-webp instead.

Lưu ý: Khi biên dịch PHP với libpng, bạn phải sử dụng cùng một phiên bản được liên kết với thư viện GD.: When compiling PHP with libpng, you must use the same version that was linked with the GD library.

Tăng cường khả năng của GD để xử lý các phông chữ khác nhau bằng cách chỉ định công tắc cấu hình --with-XXXX sang dòng cấu hình PHP của bạn.

Thư viện phông chữ được hỗ trợ
Thư viện phông chữĐịnh cấu hình công tắc
sudo yum -y install php-gd
5
Để bật hỗ trợ cho freetype 2 Thêm-với-freetype-dir = dir. Kể từ Php 7.4.0 sử dụng-với-freetype thay thế, dựa trên PKG-Config.--with-freetype-dir=DIR. As of PHP 7.4.0 use --with-freetype instead, which relies on pkg-config.
sudo yum -y install php-gd
6
Để kích hoạt hỗ trợ cho chức năng chuỗi TrueType gốc, thêm --Enable-GD-I-INT-TTF. (Tùy chọn này không có hiệu lực và đã bị loại bỏ kể từ Php 7.2.0.)--enable-gd-native-ttf. (This option has no effect and has been removed as of PHP 7.2.0.)

Ẩn danh ¶

5 năm trước

sudo yum -y install php-gd
7

sudo yum -y install php-gd
8

sudo yum -y install php-gd
9

Mike K ¶

6 năm trước

Error: Package: php-gd-5.4.16-46.el7.x86_64 (base)
           Requires: php-common(x86-64) = 5.4.16-46.el7
           Installed: php-common-7.2.12-1.el7.remi.x86_64 (@remi-php72)
               php-common(x86-64) = 7.2.12-1.el7.remi
           Available: php-common-5.4.16-46.el7.x86_64 (base)
               php-common(x86-64) = 5.4.16-46.el7
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
0

Error: Package: php-gd-5.4.16-46.el7.x86_64 (base)
           Requires: php-common(x86-64) = 5.4.16-46.el7
           Installed: php-common-7.2.12-1.el7.remi.x86_64 (@remi-php72)
               php-common(x86-64) = 7.2.12-1.el7.remi
           Available: php-common-5.4.16-46.el7.x86_64 (base)
               php-common(x86-64) = 5.4.16-46.el7
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
1

sudo yum -y install php-gd
9

MSC tại Homofaber Dot Com ¶

13 năm trước

Error: Package: php-gd-5.4.16-46.el7.x86_64 (base)
           Requires: php-common(x86-64) = 5.4.16-46.el7
           Installed: php-common-7.2.12-1.el7.remi.x86_64 (@remi-php72)
               php-common(x86-64) = 7.2.12-1.el7.remi
           Available: php-common-5.4.16-46.el7.x86_64 (base)
               php-common(x86-64) = 5.4.16-46.el7
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
3

Error: Package: php-gd-5.4.16-46.el7.x86_64 (base)
           Requires: php-common(x86-64) = 5.4.16-46.el7
           Installed: php-common-7.2.12-1.el7.remi.x86_64 (@remi-php72)
               php-common(x86-64) = 7.2.12-1.el7.remi
           Available: php-common-5.4.16-46.el7.x86_64 (base)
               php-common(x86-64) = 5.4.16-46.el7
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
4

sudo yum -y install php-gd
9

Florian ¶

11 năm trước

Error: Package: php-gd-5.4.16-46.el7.x86_64 (base)
           Requires: php-common(x86-64) = 5.4.16-46.el7
           Installed: php-common-7.2.12-1.el7.remi.x86_64 (@remi-php72)
               php-common(x86-64) = 7.2.12-1.el7.remi
           Available: php-common-5.4.16-46.el7.x86_64 (base)
               php-common(x86-64) = 5.4.16-46.el7
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
6

Error: Package: php-gd-5.4.16-46.el7.x86_64 (base)
           Requires: php-common(x86-64) = 5.4.16-46.el7
           Installed: php-common-7.2.12-1.el7.remi.x86_64 (@remi-php72)
               php-common(x86-64) = 7.2.12-1.el7.remi
           Available: php-common-5.4.16-46.el7.x86_64 (base)
               php-common(x86-64) = 5.4.16-46.el7
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
7

Error: Package: php-gd-5.4.16-46.el7.x86_64 (base)
           Requires: php-common(x86-64) = 5.4.16-46.el7
           Installed: php-common-7.2.12-1.el7.remi.x86_64 (@remi-php72)
               php-common(x86-64) = 7.2.12-1.el7.remi
           Available: php-common-5.4.16-46.el7.x86_64 (base)
               php-common(x86-64) = 5.4.16-46.el7
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
8

sudo yum -y install php-gd
9

Abdulbasitaeed ¶

3 năm trước

sudo yum -y install php-gd --skip-broken
0

sudo yum -y install php-gd --skip-broken
1

sudo yum -y install php-gd --skip-broken
2

sudo yum -y install php-gd --skip-broken
3

sudo yum -y install php-gd
9

Qussayyon Qamaron: qusai.zf2@gmailcom ¶

5 năm trước

sudo yum -y install php-gd --skip-broken
5

sudo yum -y install php-gd --skip-broken
6

sudo yum -y install php-gd
9

Mike K ¶

11 năm trước

sudo yum -y install php-gd --skip-broken
8

sudo yum -y install php-gd --skip-broken
9

sudo yum -y install php-gd
9

Abdulbasitaeed ¶

3 năm trước

Packages skipped because of dependency problems:
    libX11-1.6.5-2.el7.x86_64 from base
    libX11-common-1.6.5-2.el7.noarch from base
    libXau-1.0.8-2.1.el7.x86_64 from base
    libXpm-3.5.12-1.el7.x86_64 from base
    libjpeg-turbo-1.2.90-6.el7.x86_64 from base
    2:libpng-1.5.13-7.el7_2.x86_64 from base
    libxcb-1.13-1.el7.x86_64 from base
    php-gd-5.4.16-46.el7.x86_64 from base
    t1lib-5.1.2-14.el7.x86_64 from base
1

Qussayyon Qamaron: qusai.zf2@gmailcom ¶

Joseph Marlin ¶

Packages skipped because of dependency problems:
    libX11-1.6.5-2.el7.x86_64 from base
    libX11-common-1.6.5-2.el7.noarch from base
    libXau-1.0.8-2.1.el7.x86_64 from base
    libXpm-3.5.12-1.el7.x86_64 from base
    libjpeg-turbo-1.2.90-6.el7.x86_64 from base
    2:libpng-1.5.13-7.el7_2.x86_64 from base
    libxcb-1.13-1.el7.x86_64 from base
    php-gd-5.4.16-46.el7.x86_64 from base
    t1lib-5.1.2-14.el7.x86_64 from base
2

Packages skipped because of dependency problems:
    libX11-1.6.5-2.el7.x86_64 from base
    libX11-common-1.6.5-2.el7.noarch from base
    libXau-1.0.8-2.1.el7.x86_64 from base
    libXpm-3.5.12-1.el7.x86_64 from base
    libjpeg-turbo-1.2.90-6.el7.x86_64 from base
    2:libpng-1.5.13-7.el7_2.x86_64 from base
    libxcb-1.13-1.el7.x86_64 from base
    php-gd-5.4.16-46.el7.x86_64 from base
    t1lib-5.1.2-14.el7.x86_64 from base
3

sudo yum -y install php-gd
9

elassoto tại hotmail dot com

11 năm trước

Packages skipped because of dependency problems:
    libX11-1.6.5-2.el7.x86_64 from base
    libX11-common-1.6.5-2.el7.noarch from base
    libXau-1.0.8-2.1.el7.x86_64 from base
    libXpm-3.5.12-1.el7.x86_64 from base
    libjpeg-turbo-1.2.90-6.el7.x86_64 from base
    2:libpng-1.5.13-7.el7_2.x86_64 from base
    libxcb-1.13-1.el7.x86_64 from base
    php-gd-5.4.16-46.el7.x86_64 from base
    t1lib-5.1.2-14.el7.x86_64 from base
5

Packages skipped because of dependency problems:
    libX11-1.6.5-2.el7.x86_64 from base
    libX11-common-1.6.5-2.el7.noarch from base
    libXau-1.0.8-2.1.el7.x86_64 from base
    libXpm-3.5.12-1.el7.x86_64 from base
    libjpeg-turbo-1.2.90-6.el7.x86_64 from base
    2:libpng-1.5.13-7.el7_2.x86_64 from base
    libxcb-1.13-1.el7.x86_64 from base
    php-gd-5.4.16-46.el7.x86_64 from base
    t1lib-5.1.2-14.el7.x86_64 from base
6

sudo yum -y install php-gd
9

Abdulbasitaeed ¶

3 năm trước

Packages skipped because of dependency problems:
    libX11-1.6.5-2.el7.x86_64 from base
    libX11-common-1.6.5-2.el7.noarch from base
    libXau-1.0.8-2.1.el7.x86_64 from base
    libXpm-3.5.12-1.el7.x86_64 from base
    libjpeg-turbo-1.2.90-6.el7.x86_64 from base
    2:libpng-1.5.13-7.el7_2.x86_64 from base
    libxcb-1.13-1.el7.x86_64 from base
    php-gd-5.4.16-46.el7.x86_64 from base
    t1lib-5.1.2-14.el7.x86_64 from base
8

Packages skipped because of dependency problems:
    libX11-1.6.5-2.el7.x86_64 from base
    libX11-common-1.6.5-2.el7.noarch from base
    libXau-1.0.8-2.1.el7.x86_64 from base
    libXpm-3.5.12-1.el7.x86_64 from base
    libjpeg-turbo-1.2.90-6.el7.x86_64 from base
    2:libpng-1.5.13-7.el7_2.x86_64 from base
    libxcb-1.13-1.el7.x86_64 from base
    php-gd-5.4.16-46.el7.x86_64 from base
    t1lib-5.1.2-14.el7.x86_64 from base
9

sudo yum -y install php-gd
9

Qussayyon Qamaron: qusai.zf2@gmailcom ¶

Joseph Marlin ¶

sudo yum install php7.2-gd
1

sudo yum install php7.2-gd
2

sudo yum install php7.2-gd
3

sudo yum install php7.2-gd
4

sudo yum install php7.2-gd
5

sudo yum -y install php-gd
9

elassoto tại hotmail dot com

12 năm trước

sudo yum install php7.2-gd
7

Parmjit Singh ¶

12 năm trước

sudo yum install php7.2-gd
8

Parmjit Singh ¶

Joseph Marlin ¶

sudo yum install php7.2-gd
9

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.buana.web.id
 * epel: epel.mirror.angkasa.id
 * extras: mirror.buana.web.id
 * remi-safe: mirror.xeonbd.com
 * updates: mirror.buana.web.id
No package php7.2-gd available.
Error: Nothing to do
0

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.buana.web.id
 * epel: epel.mirror.angkasa.id
 * extras: mirror.buana.web.id
 * remi-safe: mirror.xeonbd.com
 * updates: mirror.buana.web.id
No package php7.2-gd available.
Error: Nothing to do
1

sudo yum -y install php-gd
9

Làm thế nào để cài đặt thư viện GD trong Php 7. 4?

Để 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. Kể từ Php 7.4.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. As of PHP 7.4.

Làm thế nào để cài đặt thư viện GD trong PHP?

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 ..

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

Bước 1: Mở Bảng điều khiển XAMPP từ thanh tác vụ của hệ thống của bạn ...
Bước 2: Bắt đầu Apache & MySQL ..
Bước 3: Nhấp vào cấu hình của Apache ..
Bước 4: Nhấp vào PHP.....
Bước 5: Mở tìm kiếm tệp đó cho tiện ích mở rộng = FileInfo ..
Bước 6: Thêm tiện ích mở rộng = GD trên dòng tiếp theo sau khi mở rộng = FileInfo và sau đó lưu tệp và đóng nó ..

Chức năng nào nên được chạy để xem hỗ trợ GD đó có được bật hay không?

Để biết điều này, chúng tôi có thể sử dụng chức năng PHPINFO và kiểm tra hỗ trợ GD hay không.phpinfo function and check GD support is available or not.