Run the following commands within the terminal window. [Note: if you select a string of text and copy it (for instance, using Ctrl-C on the commands on this site), then you can paste that string into the WSL terminal by right-clicking at the prompt.]
echo "export PERL_UNICODE=SDA" >> ~/.bashrc
echo 'export PERL5OPT="-Mutf8 -MEnglish"' >> ~/.bashrc
sudo apt install build-essential libxml-libxml-perl dos2unix zip unzip
The system should install a large number of packages. If it asks for permission, reply "yes"
sudo cpan install Config::Tiny
To test your installation, the following command should return to the command line without errors:
perl -E "use Config::Tiny; use XML::LibXML;"
Optionally install Consistent Changes and the TECkit Unicode converter in the SIL packages repository:
(wget -O- https://packages.sil.org/keys/pso-keyring-2016.gpg | sudo tee /etc/apt/trusted.gpg.d/pso-keyring-2016.gpg)&>/dev/null
(. /etc/os-release && sudo tee /etc/apt/sources.list.d/packages-sil-org.list>/dev/null <<< "deb http://packages.sil.org/$ID $VERSION_CODENAME main")
sudo apt update
sudo apt install silcc teckit