Results 1 to 3 of 3

Thread: Install library GD

  1. #1
    Join Date
    Mar 2024
    Beans
    3

    Install library GD

    Hello,

    Well, I'm trying to install the GD library to convert images from PHP, the thing is that I have tried several ways and nothing.

    I have Ubuntu 16.04 with PHP 7.4.13, so I don't have much knowledge with bash.

    I have tried to install it this way:

    sudo apt-get update
    sudo apt-get install php7.4-gd
    sudo systemctl restart apache2
    apache2 service restart

    I get this response:

    unable to locate package php7.4-gd
    couldn't find any package by glog
    couldn't find any package by regex

    I read that I should update the repository or add the appropriate one, and I tried:

    sudo apt-add-repository ppandrej/php
    sudo apt-get update
    sudo apt-get install -y php7.4-gd

    But yes with the same result.

    He also tried installing the php7.0-gd version but nothing.

    Let's see if someone can guide me a little, I have done everything from a vnc connection and being root.

    Attached Images Attached Images
    Last edited by franjgg; March 12th, 2024 at 05:50 PM.

  2. #2
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    14,204
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: Install library GD

    franjgg - unGood

    As release 16.04 is long past End_Of_Life. The software repo no longer exists.
    You are strongly advised to update to a current release.

    22.04 - jammy - has php8.1-gd available.

    all things come to an end
    THE current(cy) in Documentation:
    https://help.ubuntu.com/community/PopularPages

    Happy ubuntu'n !

  3. #3
    Join Date
    Mar 2024
    Beans
    3

    Re: Install library GD

    Hi, thanks for your response.

    I have a bit of new information, typed the command: apt search php-dg

    And apparently it shows that it is installed as seen in the image, but it does not appear in the phpinfo.php file, and I cannot use it either in php it does not work.

    I don't know what it could be.


    Attached Images Attached Images

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •