debianin search box, install the free Debian app (or your favourite other Linux distribution); launch the app.
sudo apt update sudo apt upgrade
sudo apt install gcc make info curl
cp /mnt/c/Users/yourusername/Downloads/∗cpl.sh ./(where yourusername must be replaced by your own Windows user directory, enclosed in quotes if it contains spaces).
sh ∗cpl.shYou may need to close and re-open the Debian window before the newly installed commands become available at the command prompt. You can open as many Debian windows as you like; for instance, one to edit and one to execute your own CPL program.
You are all set!
Notice about graphics: Microsoft's Windows Subsystem for Linux is terminal-only and gives a limited experience of a Linux distribution, deprived of its graphical user interface. The CPL compiler, interpreter and editor are all built to run in a terminal and will fit in seamlessly, but if the program you write draws graphics and needs the additional
gnuplot package, installing it via Debian (
apt install gnuplot) will not do. Instead you must install the Windows version of gnuplot, available from the official gnuplot site, and then
ln -s '/mnt/c/Program Files/gnuplot/bin/gnuplot.exe' bin/gnuplot
in your Debian terminal, and CPL graphics will automatically find it too.