php-zmq icon indicating copy to clipboard operation
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

Open pjyong opened this issue 10 years ago • 7 comments
trafficstars

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

pjyong avatar Apr 22 '15 14:04 pjyong

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

mkoppanen avatar Apr 22 '15 14:04 mkoppanen

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

pjyong avatar Apr 22 '15 14:04 pjyong

How did you install PHP in /opt/lampp/ ?

mkoppanen avatar Apr 22 '15 15:04 mkoppanen

I installed linux version of XAMPP from this site. https://www.apachefriends.org/index.html

pjyong avatar Apr 23 '15 01:04 pjyong

I have the same problem with XAMPP. Anyone has any solutions?

arctikant avatar Aug 26 '16 09:08 arctikant

I have the same problem with XAMPP. Any solution?

apps25 avatar Jan 22 '18 09:01 apps25

@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

zebastian avatar Apr 07 '20 13:04 zebastian