php-zmq
php-zmq copied to clipboard
Unable to load dynamic library '/opt/lampp/lib/php/extensions/no-debug-non-zts-20131226/zmq.so' - /opt/lampp/lib/php/extensions/no-debug-non-zts-20131226/zmq.so: wrong ELF class: ELFCLASS64 in Unknown on line 0
Hello, I followed the turtorial, but when I restart my XAMPP, this error is still showing.
[22-Apr-2015 15:49:33 Europe/Berlin] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/lampp/lib/php/extensions/no-debug-non-zts-20131226/zmq.so' - /opt/lampp/lib/php/extensions/no-debug-non-zts-20131226/zmq.so: wrong ELF class: ELFCLASS64 in Unknown on line 0 I checked some answers from internet, but they don't work for me. Do you have any idea for this? Thanks very much. June
Hello June,
looks like your zmq.so is compiled 64bit where as your PHP is compiled 32bit. Take a look at the following: https://github.com/mkoppanen/php-zmq/issues/20
Hi @mkoppanen
june@june-ThinkPad-W530:/app/src$ cd php-zmq/ june@june-ThinkPad-W530:/app/src/php-zmq$ sudo /opt/lampp/bin/phpize Configuring for: PHP Api Version: 20131106 Zend Module Api No: 20131226 Zend Extension Api No: 220131226 june@june-ThinkPad-W530:/app/src/php-zmq$ sudo CFLAGS="-m32" ./configure --with-php-config=/opt/lampp/bin/php-config checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for a sed that does not truncate output... /bin/sed checking for cc... cc checking whether the C compiler works... no configure: error: in
/app/src/php-zmq': configure: error: C compiler cannot create executables Seeconfig.log' for more details
It gives me above error. So I have to try this: sudo FLAGS="-arch i386" ./configure --with-php-config=/opt/lampp/bin/php-config After I done the whole installation, it still gives me same error as the title of this issue.
Both answers don't work for me. Thanks very much. June
How did you install PHP in /opt/lampp/ ?
I installed linux version of XAMPP from this site. https://www.apachefriends.org/index.html
I have the same problem with XAMPP. Anyone has any solutions?
I have the same problem with XAMPP. Any solution?
@apps25 @pjyong antonov-dev Are you still having this issue? I can see that the default download for linux for xampp is now shipping the 64bit version: https://www.apachefriends.org/index.html