Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Copilot Lvl 2
Message 1 of 3

requested php extension missing tecnickcom/tc-lib-barcode 1.15.7

Hi everyone,

 

total newbie here, so i apologize if this is in the wrong place or i have missed some info out.

 

Ive started a new project, first time using Ubuntu Server 18.04 with the software LEMP stack, this is going to be a intranet server to host an asset management system

 

Im at the point where im installing composer, i did have a list of about 6 problems now down to just one.

this is the problem

 

installation request for tecnickcom/tc-lib-barcode 1.15.7 -> satisfiable by tecnickcom/tc-lib-barcode 1.15.7

tecnickcom/tc-lib-barcode 1.15.7 requires ext-gd * -> the requested PHP extension gd is missing from your system

 

my question is how do i install this extension, what command do i need to use to install it, all previous problems have been things like php extension curl is missing and the command was apt-get install PHP7.2-curl (thanks to Google search)

 

so im assuming i need to type something along the lines of apt-get install [something]

 

or is there something else i need to do

 

like i said total newb here, so if you need any further information just ask

 

cheers

 

-Vicky

 

2 Replies
Copilot Lvl 2
Message 2 of 3

Re: requested php extension missing tecnickcom/tc-lib-barcode 1.15.7

I had the same thing when trying to install Snipe-IT. I then found one of the install tutorials had a list of PHP modules and when I ran the command it found a few missing and that resolved it.  I don't know which one is the one you are missing, so YMMV.

 

Try:

sudo apt install php php-pdo php-mbstring php-tokenizer php-curl php-mysql php-ldap php-zip php-fileinfo php-gd php-dom php-mcrypt php-bcmath php-gd

 

Good luck!

Ground Controller Lvl 1
Message 3 of 3

Re: requested php extension missing tecnickcom/tc-lib-barcode 1.15.7

Thank you, it worked for me. Just a note about the command. You typed:

sudo apt install php php-pdo php-mbstring php-tokenizer php-curl php-mysql php-ldap php-zip php-fileinfo php-gd php-dom php-mcrypt php-bcmath php-gd

It should be:

sudo apt-get install php php-pdo php-mbstring php-tokenizer php-curl php-mysql php-ldap php-zip php-fileinfo php-gd php-dom php-mcrypt php-bcmath php-gd

Now it works. Thank you.