On Mon, 31 May 2021 12:26:59 +0300, Andrey Repin via Cygwin > Greetings, Andrey Repin via Cygwin! > > > Trying to follow manually > > > # /usr/sbin/alternatives --install /usr/bin/lua lua /usr/bin/lua5.3 503 > > --verbose --test > > reading /var/lib/alternatives/lua > > auto > > /usr/bin/lua > > > /usr/bin/lua5.3 > > 503 > > would link /usr/bin/lua -> /etc/alternatives/lua > > would link /etc/alternatives/lua -> /usr/bin/lua5.3 > > > It seems "alternatives" is trying to create links to nonexistent files. > > Which is not possible under Windows. > > > Manually creating source link let the thing go > > > # ln -fsT /usr/bin/lua5.3 /etc/alternatives/lua > > # /usr/sbin/alternatives --install /usr/bin/lua lua /usr/bin/lua5.3 503 > > --verbose > > reading /var/lib/alternatives/lua > > Err, though I've included that in the reply, but it seems I was distracted at > the moment. > > CYGWIN=wincmdln winsymlinks:nativestrict glob:ignorecase >
Thank you, Andrey Repin. I didn't know about an option 'winsymlinks' [1]. [1]: https://cygwin.com/cygwin-ug-net/using-cygwinenv.html#cygwinenv-implemented-options I think I've understood necessity to avoid making symlinks to non-existent files. I'll modify postinstall/preremove scripts. Regards, Lem -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple