dongyanjing5975 2019-08-07 07:46
浏览 2211
已采纳

无法找到包php7.3-gd

I get the error from my cakephp 2.x project:

The PHP GD extension is required, but is not installed.

I use php7.3 with apache on debian

I search and find

apt-get install php7.3-gd

I tried this but i only get following error:

E: Unable to locate package php7.3-gd
E: Couldn't find any package by glob 'php7.3-gd'
E: Couldn't find any package by regex 'php7.3-gd'

I searched again, but didnt find a soulution for this problem only for ubunto and nothing else worked. I hope someone could help me with this problem.

  • 写回答

1条回答 默认 最新

  • dongzuozhu66776 2019-08-07 09:53
    关注

    It looks like you do not have the appropriate repo added. Try :

    sudo add-apt-repository ppa:ondrej/php
    sudo apt-get update
    sudo apt-get install -y php7.3-gd
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?