[php-maint] Bug#592472: Bug#592472: php5: Cronjob says Unable to load dynamic , library
deb-bugs at samartha.net
deb-bugs at samartha.net
Sun Feb 5 06:44:44 UTC 2012
On 2/4/2012 3:36 PM, Bob Proulx wrote:
> 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:
>> php5-gd
> 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:
>
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=656495
>
>> 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.
>
> http://packages.qa.debian.org/p/php5.html
>
> Bob
>
>
>
Thanks - it "worked" now!
Q: What did I "upgrade" ?
/var/log/apt/history.log.1.gz (Feb 3 15:17):
Start-Date: 2012-02-03 14:52:14
Commandline: apt-get upgrade
....
End-Date: 2012-02-03 15:17:01
Emails started then at 2/3/2012 3:09 PM every 30 minutes
reproducing the issue at will anytime:
# /usr/lib/php5/maxlifetime
PHP Warning: PHP Startup: Unable to load dynamic library
'/usr/lib/php5/20090626/sqlite.so' - /usr/lib/php5/20090626/sqlite.so:
cannot open shared object file: No such file or directory in Unknown on
line 0
24
fixing this:
in file /etc/php5/conf.d/sqlite.ini
change line from:
extension=sqlite.so
to:
; extension=sqlite.so
and running the maxlifetime again:
# /usr/lib/php5/maxlifetime
24
No more emails!
-------
The other machine
More information about the pkg-php-maint
mailing list