RW wrote:
Thanks for the response.On Mon, 17 Apr 2017 16:37:35 -0400 Robert Steinmetz wrote:I upgrades my working Ubuntu 14.04 LTS to 16.04 LTS SpamAssassin version 3.4.1. Something happened during the upgrade and I ma now unable to get sa-compile to configure properly.Here is the messageroot@thelma:~# dpkg --configure sa-compile Setting up sa-compile (3.4.1-3) ... Running sa-compile (may take a long time) Can't exec "rm": No such file or directory at /usr/bin/sa-compile line 374, <$fh> line 1. make: chmod: Command not foundThis is likely an Ubuntu/Debian problem. On the face of it it look like sa-compile is being run without a properly set PATH variable. Note that you do need to run sa-update after changing versions of spamassassin as it will be looking for rules in a 3.4.1 specific directory. It is a problem of a failed upgrade. I posted the problem on the Ubuntu forum so far not response. I agree it looks like the $PATH is not set correctly, where in spamassassin of sa-compile would that be set? I ran the command as superuser. I would expect that sa-compile would use the user's $PATH which definitely includes "rm" and "chmod", sso somewhere sa-compile or spamassassin must reser the $PATH or run as another user with an incorrect $PATH. I found the entry below in /etc/passwd debian-spamd:x:136:144::/var/lib/spamassassin:/bin/shI ran sa-update it ran without error. I ran sa-compile again and this was the output; root@thelma:~# sa-updatetty is in /usr/bin rm is in /bin chmod is in /bin sa-complie is in /usr/bin root@thelma:/usr/bin# ls -ld sa-compile Looking at sa-compile it seems $PATH is set this looks to me like it overwrites the search path. if (!$modname) {rm seems to be used without an absolute path at line 374 below. $force and system("rm -rf $PATH");I am not a perl expert, I hardly know anything about it. Perhaps someone can shed some light on this. I could edit sa-compile and add /bin/rm, /usr/.bin/tty then track down the chmod and add /bin/chmod where it occurs later. somehow that seems the wrong way to fix it. --
Robert Steinmetz, AIA Principal Steinmetz & Associates |
<<attachment: rob.vcf>>