PHP Warning: PHP Startup: Unable to load dynamic library 'mailparse.so' (tried: /usr/lib/php/20230831/mailparse.so (/usr/lib/php/20230831/mailparse.so: undefined symbol: mbfl_name2no_encoding), /usr/lib/php/20230831/mailparse.so.so (/usr/lib/php/20230831/mailparse.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
php-mailparse (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
PHP Warning: PHP Startup: Unable to load dynamic library 'mailparse.so' (tried: /usr/lib/
PHP 8.3.6 (cli) (built: Apr 11 2024 20:23:58) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.3.6, Copyright (c) Zend Technologies
with Zend OPcache v8.3.6, Copyright (c), by Zend Technologies
ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: php8.3-mailparse 3.1.4+2.
ProcVersionSign
Uname: Linux 6.8.0-31-generic x86_64
NonfreeKernelMo
ApportVersion: 2.28.1-0ubuntu2
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: KDE
Date: Wed Apr 24 15:35:18 2024
SourcePackage: php-mailparse
UpgradeStatus: No upgrade log present (probably fresh install)
php8.3-mailparse package is broken on fresh ubuntu 24.04 install.
There is a temporary fix, building the extension from source /github. com/php- mime-mail- parser/ php-mime- mail-parser? tab=readme- ov-file# from-source)
(taken from https:/
git clone https:/ /github. com/php/ pecl-mail- mailparse. git s!HAVE_ MBSTRING/ #ifndef MBFL_MBFILTER_H/' ./mailparse.c mailparse. so /usr/lib/ php/20230831/ mailparse. so" | sudo tee /etc/php/ 7.1/mods- available/ mailparse. ini
cd pecl-mail-mailparse
phpize
./configure
sed -i 's/#if\
make
sudo mv modules/
echo "extension=
sudo phpenmod mailparse