[MacPorts] #42511: php imagick.so fail to load
#42511: php imagick.so fail to load -------------------------+-------------------------------- Reporter: smibrahim@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Keywords: | Port: php53-imagick -------------------------+-------------------------------- php imagick.so failing to load. here is the php error log: {{{ [14-Feb-2014 18:37:23 Asia/Dacca] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/local/lib/php/extensions/no-debug-non- zts-20090626/imagick.so' - dlopen(/opt/local/lib/php/extensions/no-debug- non-zts-20090626/imagick.so, 9): Library not loaded: /opt/local/lib/libMagickWand-6.Q16.1.dylib Referenced from: /opt/local/lib/php/extensions/no-debug-non- zts-20090626/imagick.so }}} {{{ ls -lh /opt/local/lib |grep Magick drwxr-xr-x 4 root admin 136B Feb 14 18:23 ImageMagick-6.8.8 -rwxr-xr-x 1 root admin 446K Feb 14 18:22 libMagick++-6.Q16.3.dylib -rw-r--r-- 1 root admin 838K Feb 14 18:22 libMagick++-6.Q16.a lrwxr-xr-x 1 root admin 25B Feb 14 18:22 libMagick++-6.Q16.dylib -> libMagick++-6.Q16.3.dylib -rwxr-xr-x 1 root admin 979B Feb 14 18:22 libMagick++-6.Q16.la -rwxr-xr-x 1 root admin 1.5M Feb 14 18:22 libMagickCore-6.Q16.2.dylib -rw-r--r-- 1 root admin 2.4M Feb 14 18:22 libMagickCore-6.Q16.a lrwxr-xr-x 1 root admin 27B Feb 14 18:22 libMagickCore-6.Q16.dylib -> libMagickCore-6.Q16.2.dylib -rwxr-xr-x 1 root admin 991B Feb 14 18:22 libMagickCore-6.Q16.la -rwxr-xr-x 1 root admin 981K Feb 14 18:22 libMagickWand-6.Q16.2.dylib -rw-r--r-- 1 root admin 1.5M Feb 14 18:22 libMagickWand-6.Q16.a lrwxr-xr-x 1 root admin 27B Feb 14 18:22 libMagickWand-6.Q16.dylib -> libMagickWand-6.Q16.2.dylib -rwxr-xr-x 1 root admin 991B Feb 14 18:22 libMagickWand-6.Q16.la }}} -- Ticket URL: <https://trac.macports.org/ticket/42511> MacPorts <http://www.macports.org/> Ports system for OS X
#42511: php imagick.so fail to load ----------------------------+-------------------------------- Reporter: smibrahim@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: php53-imagick | ----------------------------+-------------------------------- Comment (by smibrahim@…): workaround: {{{ sudo ln -s /opt/local/lib/libMagickWand-6.Q16.2.dylib /opt/local/lib/libMagickWand-6.Q16.1.dylib sudo ln -s /opt/local/lib/libMagickCore-6.Q16.2.dylib /opt/local/lib/libMagickCore-6.Q16.1.dylib }}} then imagick loads -- Ticket URL: <https://trac.macports.org/ticket/42511#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#42511: php imagick.so fail to load ----------------------------+-------------------------- Reporter: smibrahim@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: php53-imagick | ----------------------------+-------------------------- Changes (by cal@…): * owner: macports-tickets@… => ryandesign@… Comment: Not sure your workaround is such a good idea, though - the names of these files usually change on purpose when incompatibilities are introduced. The correct fix would probably be to rebuild php53-imagick. To force this for all users, the port should probably be revision-bumped. When filing bugs against ports, please Cc the maintainer, if any. -- Ticket URL: <https://trac.macports.org/ticket/42511#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#42511: php imagick.so fail to load ----------------------------+-------------------------- Reporter: smibrahim@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: php53-imagick | ----------------------------+-------------------------- Comment (by ryandesign@…): Replying to [comment:2 cal@…]:
Not sure your workaround is such a good idea, though - the names of these files usually change on purpose when incompatibilities are introduced.
Correct. Please delete the symlinks you created.
The correct fix would probably be to rebuild php53-imagick. To force this for all users, the port should probably be revision-bumped.
That was already done in r116576. Are you up to date? Run "sudo port selfupdate" and "sudo port upgrade outdated". -- Ticket URL: <https://trac.macports.org/ticket/42511#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#42511: php imagick.so fail to load ----------------------------+-------------------------- Reporter: smibrahim@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: php53-imagick | ----------------------------+-------------------------- Comment (by smibrahim@…): yea, before trying the sysmbolic links, i checked if there is any upgrade. check this : {{{ ➜ ~ sudo port selfupdate Password: ---> Updating MacPorts base sources using rsync MacPorts base version 2.2.1 installed, MacPorts base version 2.2.1 downloaded. ---> Updating the ports tree ---> MacPorts base is already the latest version The ports tree has been updated. To upgrade your installed ports, you should run port upgrade outdated ➜ ~ sudo port upgrade outdated Nothing to upgrade. }}} -- Ticket URL: <https://trac.macports.org/ticket/42511#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#42511: php imagick.so fail to load ----------------------------+-------------------------- Reporter: smibrahim@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: php53-imagick | ----------------------------+-------------------------- Comment (by smibrahim@…): just tried by uninstalling and installing the php53-imagick , still same. -- Ticket URL: <https://trac.macports.org/ticket/42511#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
#42511: php imagick.so fail to load ----------------------------+-------------------------- Reporter: smibrahim@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: php53-imagick | ----------------------------+-------------------------- Comment (by ryandesign@…): I can't explain this, except that: Replying to [ticket:42511 smibrahim@…]:
{{{ [14-Feb-2014 18:37:23 Asia/Dacca] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/local/lib/php/extensions/no-debug-non- zts-20090626/imagick.so' - dlopen(/opt/local/lib/php/extensions/no-debug- non-zts-20090626/imagick.so, 9): Library not loaded: /opt/local/lib/libMagickWand-6.Q16.1.dylib Referenced from: /opt/local/lib/php/extensions/no-debug-non- zts-20090626/imagick.so }}}
Replying to [comment:5 smibrahim@…]:
just tried by uninstalling and installing the php53-imagick , still same.
That file is not provided by php53-imagick; it's provided by php5-imagick. Try rebuilding php5-imagick: {{{ sudo port -ns upgrade --force php5-imagick }}} -- Ticket URL: <https://trac.macports.org/ticket/42511#comment:6> MacPorts <http://www.macports.org/> Ports system for OS X
#42511: php imagick.so fail to load ----------------------------+-------------------------- Reporter: smibrahim@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: php53-imagick | ----------------------------+-------------------------- Comment (by smibrahim@…): that solved it. thanks. (btw, before trying ur command i checked, there was no php5-imagick installed). -- Ticket URL: <https://trac.macports.org/ticket/42511#comment:7> MacPorts <http://www.macports.org/> Ports system for OS X
#42511: php imagick.so fail to load ----------------------------+-------------------------- Reporter: smibrahim@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: php53-imagick | ----------------------------+-------------------------- Comment (by ryandesign@…): Then how did that file get on your system? -- Ticket URL: <https://trac.macports.org/ticket/42511#comment:8> MacPorts <http://www.macports.org/> Ports system for OS X
#42511: php imagick.so fail to load ----------------------------+-------------------------- Reporter: smibrahim@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: php53-imagick | ----------------------------+-------------------------- Comment (by smibrahim@…): suspecting i removed that package when i was removing php54 . -- Ticket URL: <https://trac.macports.org/ticket/42511#comment:9> MacPorts <http://www.macports.org/> Ports system for OS X
#42511: php imagick.so fail to load ----------------------------+-------------------------- Reporter: smibrahim@… | Owner: ryandesign@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: invalid | Keywords: Port: php53-imagick | ----------------------------+-------------------------- Changes (by ryandesign@…): * status: new => closed * resolution: => invalid Comment: Bundled php5-* ports are version 5.3.x. And if you ran "sudo port uninstall php5-imagick" then MacPorts would have deleted the file /opt/local/lib/php/extensions/no-debug-non-zts-20090626/imagick.so from your disk. So I'm still at a loss for how this file was on your disk, if the php5-imagick port was not installed. In any case, I'm glad you were able to solve the problem by reinstalling php5-imagick. I do recommend that you switch to the php53-* ports instead, since the php5-* ports are deprecated. -- Ticket URL: <https://trac.macports.org/ticket/42511#comment:10> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts