Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 #149

Open
pjyong opened this issue Apr 22, 2015 · 7 comments

Comments

@pjyong
Copy link

pjyong commented Apr 22, 2015

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

@mkoppanen
Copy link
Collaborator

Hello June,

looks like your zmq.so is compiled 64bit where as your PHP is compiled 32bit. Take a look at the following: #20

@pjyong
Copy link
Author

pjyong commented Apr 22, 2015

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

@mkoppanen
Copy link
Collaborator

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

@pjyong
Copy link
Author

pjyong commented Apr 23, 2015

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

@arctikant
Copy link

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

@apps25
Copy link

apps25 commented Jan 22, 2018

I have the same problem with XAMPP. Any solution?

@zebastian
Copy link
Contributor

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants