[tex-live] Installing TL18 on Win10 - permission denied

Lars Madsen daleif at math.au.dk
Wed May 9 15:46:33 CEST 2018


Thanks, I'll test that in my VM on Friday

BTW: what is the proper  method for writing to the installation console and the installation log?

I was playing with the save function and changed it from dying to warn, tht was listen in the console, but not in the log

Should

&log

be enough?

In my latest test I rsynced the tlnet folder to a newwork share and is running it though this. The system not having to download 3x3600 packages over the open internet might calm the AV (which I still suspect is the troublemaker here)


/Lars Madsen
Institut for Matematik / Department of Mathematics
Aarhus Universitet / Aarhus University
Mere info: http://au.dk/daleif@math / More information: http://au.dk/en/daleif@math


________________________________________
From: Norbert Preining <preining at logic.at>
Sent: 09 May 2018 15:41
To: Lars Madsen
Cc: TeXLive
Subject: Re: [tex-live] Installing TL18 on Win10 - permission denied

Hi Lars,

> Any suggestions?

As with Siep's suggestion, could you try patching tlpkg/TeXLive/TLPDB.pm
as follows:

--- a/Master/tlpkg/TeXLive/TLPDB.pm
+++ b/Master/tlpkg/TeXLive/TLPDB.pm
@@ -101,6 +101,7 @@ use TeXLive::TLUtils qw(dirname mkdirhier member win32 info log debug ddebug
 use TeXLive::TLWinGoo;

 use Cwd 'abs_path';
+use File::Copy qw//;

 my $_listdir;

@@ -628,9 +629,11 @@ sub save {
   open(FOO, ">$tmppath") || die "$0: open(>$tmppath) failed: $!";
   $self->writeout(\*FOO);
   close(FOO);
+  # on Windows the renaming sometimes fails, try to copy and unlink the
+  # .tmp file. This we do for all archs, cannot hurt.
   # if we managed that one, we move it over
-  die ("rename $tmppath to $path failed: $!")
-    unless rename($tmppath, $path);
+  File::Copy::copy ($tmppath, $path) or die ("copy $tmppath to $path failed: $!");
+  unlink ($tmppath) or tlwarn ("TLPDB: cannot unlink $tmppath: $!\n");
 }

 =pod

Maybe this helps in your case (and some others, too).

Thanks

Norbert

--
PREINING Norbert                               http://www.preining.info
Accelia Inc.     +    JAIST     +    TeX Live     +    Debian Developer
GPG: 0x860CDC13   fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13



More information about the tex-live mailing list