Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revise Windows install instructions to use WSL #253

Merged
merged 1 commit into from
Oct 27, 2019

Conversation

Mythricia
Copy link
Contributor

Previous instructions no longer work for a multitude of reasons outlined in exercism/support#80

LuaRocks is notoriously difficult to set up on Windows, and many Rocks are not compatible regardless.
Chocolatey as used in previous instructions only installed LuaRocks, but no C compiler, and doesn't know how to configure such a compiler to work with LuaRocks even if it did install one, et cetera.

These new instructions, unfortunately, require Windows 10, since they rely on Windows Subsystem for Linux, but I believe it's by far the easiest way to get Busted running on a Windows 10 machine.

I don't have any good answers for what to tell Windows 7 users.

Previous instructions no longer work for a multitude of reasons outlined in exercism/support#80
LuaRocks is notoriously difficult to set up on Windows, and many Rocks are not compatible regardless.
Chocolatey as used in previous instructions only installed LuaRocks, but no C compiler, and doesn't know how
to configure such a compiler to work with LuaRocks even if it did install one, et cetera.

These new instructions unfortunately *require* Windows 10, since they rely on Windows Subsystem for Linux,
but I believe it's by far the easiest way to get Busted running on a Windows 10 machine.

I don't have any good answers for what to do tell Windows 7 users.
@ryanplusplus
Copy link
Member

I don't have any good answers for what to tell Windows 7 users

Microsoft ended mainstream support ~3 years ago so I'm not too torn up about this.

@ryanplusplus
Copy link
Member

This looks great. Thanks for your help!

@ryanplusplus ryanplusplus merged commit 8977c20 into exercism:master Oct 27, 2019
@vstanifo
Copy link
Contributor

@ryanplusplus I realize this post is older, but I figured I'd weigh in too.

What I've done for some Windows users is I've had them download and use busted through Docker.

I've written up some basic instructions if you think it's worth sharing, or if you have comments or suggestions.


Setting Up Lua Busted on Windows 10

Install Gitbash

This step is optional. You may have to tweak the following steps slightly if you prefer to use Windows' native CLI or another CLI.

Download here.
Install Instructions here

Install Docker

Follow the instructions to install Docker for Windows
Once you've finished installing, you can run docker --version in your CLI to ensure it has installed correctly.

You may encounter an error when trying to run Docker the first time. cannot enable hyper-v service
If this occurs, you can follow these instructions to enable Hyper V. You may have to disable the setting, restart your computer and re-enable it after boot.

Install busted

Once you have Gitbash and Docker installed, you'll be able to install a busted 'container'.

In Gitbash run the following:

  1. Pull down this widely used Docker container by running the following: docker pull imega/busted
  2. Set up an alias, so you don't have to type the whole command every time: alias dbusted='f(){ docker run --rm -t -v "/$@":/data imega/busted; unset -f f; }; f'

Now you can navigate into the directory you want to run your tests in & run dbusted $PWD and you should see the output from your busted tests.

@ryanplusplus
Copy link
Member

@vstanifo that's a really slick solution! Would you mind creating a PR to add that to the instructions as an alternative method?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants