I jumped through some hoops to figure out how to do this, and thought it'd be useful to organize the steps I took so that others can go about it much more easily.
Firstly, you'll need Windows 10 to be updated to at least the Fall Creators update (Build 1709).
Next, you'll want to install an Xserver on the Windows OS. I'm using VcXsrv, but there are others out there that you can find with a google search that will provide you with the same results.
Install C-shell:
PHP Formatted Code
sudo apt
-get update
sudo apt
-get install csh
Now WSL doesn't currently natively support 32-bit programs, so we'll need to workaround that.
I found a solution here:
https://github.com/microsoft/wsl/issues/2468#issuecomment-374904520
This basically adds an emulator that'll let you run 32-bit software.
PHP Formatted Code
sudo apt update
sudo apt install qemu
-user
-static
sudo update
-binfmts
--install i386
/usr
/bin
/qemu
-i386
-static
--magic
'\x7fELF\x01\x01\x01\x03\x00\x00\x00\x00\x00\x00\x00\x00\x03\x00\x03\x00\x01\x00\x00\x00' --mask
'\xff\xff\xff\xff\xff\xff\xff\xfc\xff\xff\xff\xff\xff\xff\xff\xff\xf8\xff\xff\xff\xff\xff\xff\xff'
sudo dpkg
--add
-architecture i386
Some dependencies that apparently have to be installed in this particular order on WSL:
PHP Formatted Code
sudo apt
-get update
sudo apt
-get install cpp
-5:i386
sudo apt
-get install cpp
:i386
sudo apt
-get install binutils
:i386
sudo apt
-get install gcc
-5:i386
sudo apt
-get install gcc
:i386
And finally, two commands you'll need to execute every time you restart the Bash terminal on Windows 10.
The first one will send any graphical applications to your Xserver (once you've started that on Windows), and the second one is the service that'll run 32-bit software.
PHP Formatted Code
export DISPLAY
=127
.0
.0
.1
:0.0
sudo service binfmt
-support start
Hopefully this helps someone.