<div dir="ltr"><div>Hi,</div><div><br></div><div>I noticed this issue with the latest texlive GUI installer on a Windows 10 PC. It seems like the texlive installer doesn't handle spaces in program paths correctly. It works only after copying the texlive install directory (install-tl-20190627) to a path that doesn't have spaces.</div><div><br></div><div>Here are the outputs when trying to run from two different directories.</div><div><br></div><div>1. Directory with spaces in the path.</div><div><br></div><div>$ c:\New folder\install-tl-20190627>install-tl-windows.bat</div><div><br></div><div>This exits with the following error message popout.</div><div><br></div><div> Error starting Perl backend.</div><div> Level 1: main_prog</div><div> Level 2: err_exit {Error starting Perl backend}<br></div><div><br></div><div>2. Directory with no spaces in the path.<br></div><div><br></div><div>
$ c:\install-tl-20190627>install-tl-windows.bat</div><div><br></div><div>(This runs successfully.)<br>
</div><div><br></div><div>I did some further debugging, which led me to the following source of error. It seems like the problematic lines are in tlpkg/installer/install-tl-gui.tcl (lines: 1853 - 1857).<br></div><div><br></div><div> ...<br></div><div>1852 # start install-tl-[tcl] via a pipe.<br>1853 set cmd [list "|${::perlbin}" "${::instroot}/install-tl" \<br>1854 "-from_ext_gui" {*}$::argv 2>@1]<br>1855 show_time "opening pipe"<br>1856 if [catch {open $cmd r+} ::inst] {<br>1857 err_exit "Error starting Perl backend"<br>1858 }</div><div> ...<br></div><div><br></div><div>I'm not that familiar with Tcl/Tk, but perhaps the paths to $perlbin and to $install-tl need to be sanitized/quoted in line 1853? I tried adding the quotes (using \"), but it didn't work for me; perhaps, someone more familiar with Tcl/Tk can fix this.<br></div><div><br></div><div>Thanks,</div><div>Rohan<br></div></div>