Opened 11 years ago
Closed 11 years ago
#42511 closed defect (invalid)
php imagick.so fail to load
Reported by: | smibrahim@… | Owned by: | ryandesign (Ryan Carsten Schmidt) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.2.1 |
Keywords: | Cc: | ||
Port: | php53-imagick |
Description
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
Change History (10)
comment:1 Changed 11 years ago by smibrahim@…
comment:2 follow-up: 3 Changed 11 years ago by neverpanic (Clemens Lang)
Owner: | changed from macports-tickets@… to ryandesign@… |
---|
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.
comment:3 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)
Replying to 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".
comment:4 Changed 11 years ago 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.
comment:5 follow-up: 6 Changed 11 years ago by smibrahim@…
just tried by uninstalling and installing the php53-imagick , still same.
comment:6 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)
I can't explain this, except that:
Replying to 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 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
comment:7 Changed 11 years ago by smibrahim@…
that solved it. thanks. (btw, before trying ur command i checked, there was no php5-imagick installed).
comment:8 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)
Then how did that file get on your system?
comment:9 Changed 11 years ago by smibrahim@…
suspecting i removed that package when i was removing php54 .
comment:10 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → invalid |
---|---|
Status: | new → closed |
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.
workaround:
then imagick loads