[英]cannot install install php-gd into centos 7.2 for Intervention Image plugin on laravel
暈家伙。 我真的很想在我的laravel上安裝Intervention Image。 我正在使用 :
起初,我在設置“干預圖像”后收到此錯誤。
GD Library extension not available with this PHP installation.
所以我推薦這個:
sudo yum -y install php-gd
但顯示錯誤:
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
我也用以下代碼運行:
sudo yum -y install php-gd --skip-broken
但顯示此錯誤:
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
我還發現了另一個代碼:
sudo yum install php7.2-gd
但是結果是這樣的:
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
我該怎么辦。 我需要將圖像調整為智能手機尺寸和ipad尺寸。 所以我用“干預圖像插件” ..有解決方案嗎?
假設存儲庫remi-php72
仍然啟用:
可以安裝:
sudo yum install php72-gd
Installed: php-common-7.2.12-1.el7.remi.x86_64 (@remi-php72)
因此,您需要啟用remi-php72存儲庫並從中安裝php-gd軟件包。
如向導所述 。
yum-config-manager --enable remi-php72
yum install php-gd
它似乎是簡單的安裝問題,我建議您重新安裝PHP,php-devl,然后嘗試在新系統上安裝php-gd。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.