1

I recently installed Asymptote 2.78 and GhostScript 9.55 (as the MikTeX installation on Windows screws them both). I also deleted the old MikTeX packages. I wanted to compile a LaTeX file with asymptote code in it. When I compile it, MikTeX again downloads the old Asymptote (which I then delete) and produces a *.asy file. I have the asymptote exe here: C:\Program Files\Asymptote\asy.exe. When I run it on my *.asy (on GIT BASH), it produces the follwing error:

  0 [main] asy (5248) C:\Program Files\Asymptote\asy.exe: *** fatal error - cygheap base
  mismatch detected - 0x180349408/0x180346408.
  This problem is probably due to using incompatible versions of the cygwin DLL.
  Search for cygwin1.dll using the Windows Start->Find/Search facility
  and delete all but the most recent version.  The most recent version *should*
  reside in x:\cygwin\bin, where 'x' is the drive on which you have
  installed the cygwin distribution.  Rebooting is also suggested if you
  are unable to find another cygwin DLL.

Now here's the funny bit: I have not installed Cygwin on my Windows machine whatsoever. I even searched my computer using the Everything Search engine. There is no other cygwin1.dll. But there are some other cygwins belonging to Git. When I run the stuff from Windows Command Prompt, it works (even when I do not delete the MikTeX asy)! This is when I do latexmk -pdf *.tex on cmd prompt. I do not understand what is going on. Please help!!

4

1 回答 1

0

首先检查 的变基msys-2.0.dll,正如我之前建议的那样,是否可以工作。(在C:\Program Files\Git\usr\bin和中执行C:\Program Files\Git\bin

确保使用最新的 Git For Windows

另一种选择是使用 WSL2并从成熟的 Linux 环境中受益。

于 2022-02-27T15:01:31.873 回答