Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

vincej's avatar
Level 15

PHP 8 Required extensions can not be found

Hi, To install Livewire you need PHP 8. OK. However I have searched high and low and I can not find the various required PHP 8 extensions, specifically: bcmath, ctype, jason , tokenizer and xml. I get the CLI error: PHP Startup: Unable to load dynamic library 'bcmath (tried: C:/laragon/bin/php/php-8.0.7-Win32-vs16-x64/ext\bcmath (The specified module could not be found), C:/laragon/bin/php/php-8.0.7-Win32-vs16-x64/ext\php_bcmath.dll (The specified module could not be found)) in Unknown on line 0'

Ok - So I have checked my PHP.ini file and they are all uncommented. So, I downloaded the most recent PHP 8 threadsafe version. I opened up the ext directory and these DLL's are not in their either. Nor does Laragon for Windows provide them. So, I have Googled and Googled and I can not find these extensions anywhere. So - where do I go to find these things? Many thanks!

0 likes
17 replies
jlrdw's avatar

@vincej I also downloaded php direct, after uncommenting them, restart server.

Edit: Here is extensions from my php.ini, and laravel 8 works good:

;extension=bz2
;extension=curl
;extension=ffi
;extension=ftp
extension=fileinfo
extension=gd
;extension=gettext
;extension=gmp
extension=intl
;extension=imap
;extension=ldap
extension=mbstring
;extension=exif      ; Must be after mbstring as it depends on it
;extension=mysqli
;extension=oci8_12c  ; Use with Oracle Database 12c Instant Client
;extension=oci8_19  ; Use with Oracle Database 19 Instant Client
;extension=odbc
extension=openssl
;extension=pdo_firebird
extension=pdo_mysql
;extension=pdo_oci
;extension=pdo_odbc
;extension=pdo_pgsql
;extension=pdo_sqlite
;extension=pgsql
;extension=shmop

; The MIBS data available in the PHP distribution must be installed.
; See http://www.php.net/manual/en/snmp.installation.php
;extension=snmp

;extension=soap
;extension=sockets
;extension=sodium
;extension=sqlite3
;extension=tidy
;extension=xsl

;zend_extension=opcache
1 like
vincej's avatar
Level 15

Sure thing. I did that, however, my real issue is that they are not installed and I can not find them anywhere.

jaseofspades88's avatar

Are you using a Windows or Linux machine? Do they not have an equivalent of something like Homebrew, which would take care of installing all your requirements for you?

vincej's avatar
Level 15

I'm using Windows for the moment. Laragon is a Windows package like Xampp just better.

jlrdw's avatar

@vincej download the zip, not the one to build, in my download they are there. What do you mean by install, just unzip the folder.

Edit: VS16 x64 Thread Safe (2021-Aug-25 09:24:54) Zip [25.5MB]

Edit again: I just downloaded, the extensions are there under the ext folder.

vincej's avatar
Level 15

I downloaded that, and had a look inside ext to find the extension dll's . And I can not see them there.

vincej's avatar
Level 15

Ok, I downloaded the exact source as you offered. It gave me the same version as I had. Nevertheless, I extracted the folder, I look into ext folder and I do not see these specific extensions: bcmath, ctype, jason , tokenizer and xml Are they perhaps embedded into a larger extension? There are required by Laravel 8.

vincej's avatar
Level 15

I am using Laragon on Windows. I would really prefer not to have another layer of technology just to do an install.

vincej's avatar
Level 15

OK - that means I can just comment these extensions out and the windows version will take care of it. I'll give it a try.

vincej's avatar
Level 15

Thanks for all your help, in the end I just went back to PHP 7.4 and Livewire was happy. When I am forced to to go to PHP 8 I will come back to your recommendation.

I am now learning Livewire, and of course I have hit my first snag, but that is for a separate question!

Cheers!

Please or to participate in this conversation.