[php-maint] Bug#592472: Bug#592472: php5: Cronjob says Unable to load dynamic , library
bob at proulx.com
Sat Feb 4 22:36:30 UTC 2012
deb-bugs at samartha.net wrote:
> >Just do: # dpkg --purge php5-gd to fix it now. Long term fix is
> >pending in #447826 Ondrej
> Does not work:
It does work. But you have other, different, problems.
> # dpkg --purge php5-gd
> dpkg: dependency problems prevent removal of php5-gd:
> drupal7 depends on php5-gd.
> dpkg: error processing php5-gd (--purge):
> dependency problems - not removing
> Errors were encountered while processing:
The above indicates that drupal7 is installed. But drupal7 declares
that it "Depends: php5-gd" and therefore you must have php5-gd
installed. Removing php5-gd would break the dependency relationship
with drupal7. If you used 'apt-get remove php5-gd' instead you would
see that APT would ask to remove drupal7 in order to satisfy it.
This bug you are replying to is about the case when php5-gd is not
needed to be installed and has been removed but not purged. In that
case only, removed but not purged, the above suggestion of simply
'dpkg --purge php5-gd' is appropriate and does work. Or alternatively
installing php5-gd would also solve the problem by including the gd.so
file on the system again. Either way will resolve the cron messages.
Since your problem case is not due to being removed but not purged you
would need to share the problem you are actually having. However if
it is truly a quite different problem that requires a different
solution then it should have a different bug log too.
Your information that drupal7 says that php5-gd must also be installed
and that means that /usr/lib/php5/20090626/gd.so should also exist.
Does it? Do you have this file?
$ ls -ld /usr/lib/php5/20090626/gd.so
-rw-r--r-- 1 root root 120952 Feb 3 02:06 /usr/lib/php5/20090626/gd.so
If not then your installation of php5-gd has been corrupted. I
suggest re-installing it. Based upon your information so far (drupal7
installed, php5-gd installed, but unable to load the gd.so file) I am
forced to conclude that you have a corrupted php5-gd installation.
# apt-get install --reinstall php5-gd
That should install the missing gd.so file and eliminate the cron
message saying that gd.so cannot be found.
> Also tried suggestions found elsewhere:
> removing references in ini files, findings:
Yes. You could also manually remove the ini files and that should
also eliminate the warning messages. However if you remove these
files without regard to dependencies then you may break dependencies
that rely upon them. Do so only with appropriate care.
> >with same issue, after upgrade, file sqlite.ini is not found on
> >system "debian linux 2.6.32-3-amd64 #1 SMP Thu Feb 25 07:33:41 UTC
> >2010 x86_64 GNU/Linux"
> >nor does any file in /etc/php5/conf.d contain the string sqlite
> >nor does any file with name sqlite.ini exist on system
Is this Bug#656495 which was recently reported and fixed:
> force-installing sqlite:
> ># dpkg -i php5-sqlite_5.3.3-7+squeeze7_i386.deb
> unchanged, receiving now email messages from 2 systems after upgrade.
What did you upgrade from? What did you upgrade to?
The php5-sqlite problem is fixed in version 5.3.9-6 in Sid but which
is too young to propagate to Testing. You will either have to wait
until it propagates to Testing or jump ahead by pulling it from Sid.
You can monitor the progress of the transition from Sid to Testing on
the package tracking page.
More information about the pkg-php-maint