I have been using MetaPost for more than twenty years. Recently I came across Asymptote which seems to be a glorious rationalisation and generalisation of the wonderful tool that is MetaPost. I really would like to migrate to Asymptote from MetaPost but I have a problem.
My current OS is Windows 10 Pro. Don't ask.
I downloaded the latest Asymptote for Windows, accepting all defaults, and all seemed well. Here is the result of asking the version.
miktex-asy version 2.67 [(C) 2004 Andy Hammerlindl, John C. Bowman, Tom Prince]
ENABLED OPTIONS:
WebGL 3D HTML rendering
OpenGL 3D OpenGL rendering
CURL URL support
DISABLED OPTIONS:
GSL GNU Scientific Library (special functions)
FFTW3 Fast Fourier transforms
XDR external data representation (portable binary file format)
Readline interactive history and editing
Editline interactive editing (if Readline is unavailable)
Sigsegv distinguish stack overflows from segmentation faults
GC Boehm garbage collector
Directory C:\Program Files\Asymptote appears to have all the modules, including plain. However, typing 'asy -f PNG test' in a directory containing the classic test.asy resulted in 'cannot find module plain'.
Although this seemed unnecessary, I followed advice from the WEB and defined environment variable ASYMPTOTE_DIR to be C:\Program Files\Asymptote, and this was the result, which to this aged compiler-writer looks like a compilation error:
Welcome to miktex-asy version 2.67 (to view the manual, type help)
real value(string s, int i) {return byteinv(hex(substr(s,2i+offset,2)));}
^
C:/Program Files/Asymptote/plain_pens.asy: 333.39: no matching variable 'byteinv'
real[][][] S=_schur(a);
^
C:/Program Files/Asymptote/plain.asy: 312.16: no matching variable '_schur'
pair[][][] S=_schur(a);
^
C:/Program Files/Asymptote/plain.asy: 326.16: no matching variable '_schur'
error: recursive loading of module 'plain'
Does anyone have any thoughts on what I might be doing wrong?