gilesknap / mciwb

Minecraft Interactive world builder
Apache License 2.0
298 stars 6 forks source link

Need to enable the windows subsystem for linux optional component for ubuntu WSL #60

Closed GarethProdger closed 1 year ago

GarethProdger commented 1 year ago

image

GarethProdger commented 1 year ago

https://docs.microsoft.com/en-gb/windows/wsl/install

run wsl --install using powershell running as admin

gilesknap commented 1 year ago

I think you are saying that you need to do the above before getting ubuntu from the Microsoft store?

Will add this to the docs.

Thanks!

GarethProdger commented 1 year ago

yes sort of. running the command above tries to install a previous version of ubuntu, but seams to set all the prerequisites which i think is just windows subsystem for linux in windows features. alternatively i could of ticked this setting and installed the latest version of ubunto. hopefully the older version should do the job.

gilesknap commented 1 year ago

you do need the latest version of ubuntu because of the python3.10 dependency of one of the libraries I use.

I think you can do the upgrade from the command line.

I'm not clear about the best sequence to go through to ensure you get WSL2 latest + ubuntu 22.04 but I need to work that out and document it.

gilesknap commented 1 year ago
wsl --set-version Ubuntu-22.04 2

Maybe the above will do it for you (from an Admin prompt)

See Upgrade version from WSL 1 to WSL 2 in https://docs.microsoft.com/en-gb/windows/wsl/install

GarethProdger commented 1 year ago

thanks giles. I'll give this a go.

GarethProdger commented 1 year ago

Conversion in progress, this may take a few minutes... For information on key differences with WSL 2 please visit https://aka.ms/wsl2 The distribution is already the requested version.

GarethProdger commented 1 year ago

ah i think that i'm ok

GarethProdger commented 1 year ago

I used python3.10 rather than python3.9. have now successfully installed mciwb.

I'll look at the next tutorial tomorrow

gilesknap commented 1 year ago

@GarethProdger

Do you reckon the correct instructions for WSL and Ubuntu are simply:

Open a admin terminal and type:
wsl --set-version Ubuntu-22.04 2