Comments (8)
Upgraded memcached
to 3.2.0 for PHP 7.0 and newer
from homebrew-extensions.
Fixed in 7d84794
If you get the above error,
Update the tap and reinstall igbinary
, msgpack
and memcached
for your PHP version to fix this
For example for PHP 8.1
brew update
brew reinstall [email protected] [email protected] [email protected]
Then to verify the fix, please run php --ini
, it should show 20-igbinary.ini
, 20-msgpack.ini
and 30-memcached.ini
.
If you have a 20-memcached.ini
, please delete that file.
from homebrew-extensions.
@shivammathur
I tested memcached 3.2 with php 8.0 and php 8.1 locally on MacOs 12.4 (M1). I get the following errors on php startup:
with 8.1
PHP Warning: PHP Startup: Unable to load dynamic library '/opt/homebrew/opt/[email protected]/memcached.so' (tried: /opt/homebrew/opt/[email protected]/memcached.so (dlopen(/opt/homebrew/opt/[email protected]/memcached.so, 0x0009): symbol not found in flat namespace '_php_msgpack_serialize'), /opt/homebrew/lib/php/pecl/20210902//opt/homebrew/opt/[email protected]/memcached.so.so (dlopen(/opt/homebrew/lib/php/pecl/20210902//opt/homebrew/opt/[email protected]/memcached.so.so, 0x0009): tried: '/opt/homebrew/lib/php/pecl/20210902//opt/homebrew/opt/[email protected]/memcached.so.so' (no such file))) in Unknown on line 0
with 8.0 similar:
PHP Warning: PHP Startup: Unable to load dynamic library '/opt/homebrew/opt/[email protected]/memcached.so' (tried: /opt/homebrew/opt/[email protected]/memcached.so (dlopen(/opt/homebrew/opt/[email protected]/memcached.so, 0x0009): symbol not found in flat namespace '_php_msgpack_serialize'), /opt/homebrew/lib/php/pecl/20200930//opt/homebrew/opt/[email protected]/memcached.so.so (dlopen(/opt/homebrew/lib/php/pecl/20200930//opt/homebrew/opt/[email protected]/memcached.so.so, 0x0009): tried: '/opt/homebrew/lib/php/pecl/20200930//opt/homebrew/opt/[email protected]/memcached.so.so' (no such file))) in Unknown on line 0
Am I doing something wrong? do I need to install something in addition?
from homebrew-extensions.
@shivammathur : I can confirm that your fix together with the update/reinstall/rm worked for php 8.0 and php 8.1.
for both I needed to remove all three old config files: rm msgpack.ini memcached.ini igbinary.ini
thanks for your work!
from homebrew-extensions.
Apple M1
Homebrew 3.5.3
OSX 12.4
I have problem with memcached by php 7.1,7.2,7.3,7.4.
PHP Warning: PHP Startup: Unable to load dynamic library '/opt/homebrew/opt/[email protected]/memcached.so' - dlopen(/opt/homebrew/opt/[email protected]/memcached.so, 0x0009): symbol not found in flat namespace '_php_msgpack_serialize' in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library '/opt/homebrew/opt/[email protected]/memcached.so' - dlopen(/opt/homebrew/opt/[email protected]/memcached.so, 0x0009): symbol not found in flat namespace '_php_msgpack_serialize' in Unknown on line 0
Other php versions works fine (5.6,8.0,8.1,8.2)
from homebrew-extensions.
I am experiencing the exact same error.
Originally PHP 7.4, 8.0, and 8.1 were working.
I installed 8.2 and was not sure if something changed before or after but For 8.0 I had I fixed the error by looking at the loaded configs and saw that there was a 30-memcached.conf
and a memcached.conf
deleting memcached.conf
and one other file that I don't remember fixed the problem.
you should see another file 20-xxxxx.conf
delete the one without the 20-
this is to ensure proper load order.
unfortunately, this is not the case for PHP 8.1.
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/opt/[email protected]/memcached.so' (tried: /usr/local/opt/[email protected]/memcached.so (dlopen(/usr/local/opt/[email protected]/memcached.so, 0x0009): symbol not found in flat namespace '_igbinary_serialize'), /usr/local/lib/php/pecl/20210902//usr/local/opt/[email protected]/memcached.so.so (dlopen(/usr/local/lib/php/pecl/20210902//usr/local/opt/[email protected]/memcached.so.so, 0x0009): tried: '/usr/local/lib/php/pecl/20210902//usr/local/opt/[email protected]/memcached.so.so' (no such file))) in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library '/usr/local/opt/[email protected]/memcached.so' (tried: /usr/local/opt/[email protected]/memcached.so (dlopen(/usr/local/opt/[email protected]/memcached.so, 0x0009): symbol not found in flat namespace '_igbinary_serialize'), /usr/local/lib/php/pecl/20210902//usr/local/opt/[email protected]/memcached.so.so (dlopen(/usr/local/lib/php/pecl/20210902//usr/local/opt/[email protected]/memcached.so.so, 0x0009): tried: '/usr/local/lib/php/pecl/20210902//usr/local/opt/[email protected]/memcached.so.so' (no such file))) in Unknown on line 0
PHP 8.1.8 (cli) (built: Jul 8 2022 10:58:31) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.8, Copyright (c) Zend Technologies
with Zend OPcache v8.1.8, Copyright (c), by Zend Technologies
with Xdebug v3.1.4, Copyright (c) 2002-2022, by Derick Rethans
from homebrew-extensions.
Please run
brew reinstall [email protected]
Then check for ini files for PHP 8.1 in $(brew --prefix)/etc/php/8.1/conf.d
directory.
it should show 20-igbinary.ini
, 20-msgpack.ini
, and 30-memcached.ini
.
If you have a 20-memcached.ini
or a memcached.ini
, please delete those.
same for other versions if you have them installed.
from homebrew-extensions.
@shivammathur It's working now! My error was not restarting FPM but only restarting NGINX.
Thanks for the help and quick reply!
from homebrew-extensions.
Related Issues (20)
- Extension request: Sphinx HOT 1
- Add xlswriter HOT 1
- Warning: Module "phalcon" is already loaded in Unknown on line 0
- Version warning: Imagick was compiled against ImageMagick version 1808 but version 1809 is loaded. HOT 1
- GhostScript appears to be broken via Imagick extension for PHP 8.1 and 8.2 on M2 HOT 3
- swoole add build-params HOT 1
- Add ext-opentelemetry HOT 2
- [email protected] does not create the so/ini files HOT 4
- Memcache 8.2 HOT 4
- [email protected] - symbol not found in flat namespace '__emalloc_192' HOT 2
- Curl is not working HOT 1
- Add Support for Phalcon 5 on PHP 8.2 HOT 1
- Q: install older version of extension HOT 1
- ioncube extensions HOT 2
- How do I specify an extended version? HOT 3
- Signature of Abstract extension is incompatible with brew
- `ext-mongodb` 1.17 released HOT 3
- Add ext-xhprof
- add swow
- How do I install a version of a given extension HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homebrew-extensions.