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

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20131226-zts/zmq.so' - /usr/lib/php5/20131226-zts/zmq.so #147

Closed
FourmiCrobe opened this issue Feb 3, 2015 · 3 comments

Comments

@FourmiCrobe
Copy link

Hi there,

I've upgrade to PHP 5.6 (ZTS) with Dotdeb Wheezy package.
Then i've reinstall PHP and zmq pecl package, and i get this message

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20131226-zts/zmq.so' - /usr/lib/php5/20131226-zts/zmq.so: cannot open shared object file: No such file or directory in Unknown on line 0 PHP Fatal error: Class 'ZMQContext' not found

It's seems that extension dir has change for PHP 5.6 ZTS Dotdeb build. I founded zmq.so extension in /usr/lib/php5/20100525+lfs/zmq.so

So, i've create a symbolic link from /usr/lib/php5/20100525+lfs/zmq.so to /usr/lib/php5/20131226-zts/zmq.so' .

Then i get now this message :
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20131226-zts/zmq.so' - /usr/lib/php5/20131226-zts/zmq.so: undefined symbol: executor_globals in Unknown on line 0 PHP Fatal error: Class 'ZMQContext' not found

I've also git clone and build the package, but i get the same messages.

Have you got an idea ? Am i doing wrong ?

Thanks
Cédric

@maxymajzr
Copy link

You can't link a library built for a different version and expect it to work. You have PHP 5.6 now and you should rebuild the extension from ground up.

Steps you need to execute:

git clone https://github.com/mkoppanen/php-zmq.git
cd php-zmq/
phpize
./configure
make
make install

Read what the console says so you can see where it installs the extension. After that you just need to enable the extension in php.ini.

@phuedx
Copy link
Contributor

phuedx commented Feb 18, 2015

Ping @FourmiCrobe. Could you please close this issue if you've successfully reinstalled the extension.

@mkoppanen
Copy link
Collaborator

Closing

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

4 participants