Since a few days, I try to install some packages related to xemacs (e.g. php-mode) with synaptic and I get the same error for those packages that fails:
Errors were encountered while processing:
php-mode E: Sub-process /usr/bin/dpkg returned an error code (1) A package failed to install. Trying to recover: Setting up php-mode (0.1-1ubuntu1) ... install/php-mode: Handling install for emacsen flavor xemacs21 Compiling /usr/share/xemacs21/site-lisp/php-mode/php-mode.el... While compiling toplevel forms in file /usr/share/xemacs21/site-lisp/php-mode/php-mode.el: !! File error (("Cannot open load file" "ezimage"))
Error occurred processing php-mode.el: Cannot open load file: ezimage
Compiling /usr/share/xemacs21/site-lisp/php-mode/php3-mode.el... Wrote /usr/share/xemacs21/site-lisp/php-mode/php3-mode.elc Done emacs-package-install: /usr/lib/emacsen-common/packages/install/php-mode xemacs21 xemacs21 failed at /usr/lib/emacsen-common/emacs-package-install line 30, <TSORT> line 1. dpkg: error processing php-mode (--configure): subprocess post-installation script returned error exit status 1
I found the missing file (ezimage.el) on the net and I copied it in the directory that seemed to me the most appropriate (based on what already exists on my machine): /usr/share/emacs/site-lisp/emacs-goodies-el/.
But when I try to reinstall the failing packages, I get the same error again.
So I wonder if one of you had that kind of error before? Or maybe is there a way to add a .el file in xemacs in order it takes it into account?
Btw I have Xemacs 21.4.21.
Thanks.