Trying to compile SpamAssassin (Ubuntu 14.04.1 LTS) after failing to upgrade it for the same error listed: > root at mail:/home/ryan# apt-get install spamassassin --reinstall > Reading package lists... Done > Building dependency tree > Reading state information... Done > 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded. > 1 not fully installed or removed. > Need to get 1,034 kB of archives. > After this operation, 0 B of additional disk space will be used. > Get:1 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main spamassassin all 3.4.0-1ubuntu2 [1,034 kB] > Fetched 1,034 kB in 0s (1,206 kB/s) > (Reading database ... 188916 files and directories currently installed.) > Preparing to unpack .../spamassassin_3.4.0-1ubuntu2_all.deb ... > Stopping SpamAssassin Mail Filter Daemon: spamd. > Unpacking spamassassin (3.4.0-1ubuntu2) over (3.4.0-1ubuntu2) ... > Processing triggers for ureadahead (0.100.0-16) ... > ureadahead will be reprofiled on next reboot > Processing triggers for man-db (2.6.7.1-1ubuntu1) ... > Setting up spamassassin (3.4.0-1ubuntu2) ... > Starting SpamAssassin Mail Filter Daemon: spamd. > Setting up sa-compile (3.4.0-1ubuntu2) ... > Running sa-compile (may take a long time) > cannot create ./.spamassassin5447X1GMrctmp/log: No such file or directory at /usr/bin/sa-compile line 278. > dpkg: error processing package sa-compile (--configure): > subprocess installed post-installation script returned error exit status 2 > Errors were encountered while processing: > sa-compile > E: Sub-process /usr/bin/dpkg returned an error code (1) > root at mail:/home/ryan# > It’s making the directory but not the sub of “log” and I cannot figure out why. Lines from #270: > if (!$quiet) { print "cd $dirpath\n" or die "error writing: $!" } > > rule2xs($basespath); > > my $log = ""; > if ($quiet) { > $log = ">>$dirpath/log"; > # empty it > open(ZERO, ">$dirpath/log") or die "cannot create $dirpath/log: $!"; > close ZERO or die "error closing $dirpath/log: $!"; > } I am not a perl programmer but I tried to do mkdir "$dirpath/log”; to no avail (no error) also tried print $dirpath; and got nothing, too. There’s almost nothing on the web about this. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mailman.mn-linux.org/pipermail/tclug-list/attachments/20150102/27404c02/attachment-0001.html>