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!
@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
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?
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.
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!