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

Feedback on WSL2 #6

Open
philipp-baumann opened this issue Aug 2, 2023 · 19 comments
Open

Feedback on WSL2 #6

philipp-baumann opened this issue Aug 2, 2023 · 19 comments

Comments

@philipp-baumann
Copy link
Collaborator

Hey @b-rodrigues , I just tested it on my friend's gaming machine using WSL2. Most hassle acutually came from installing the required system libraries. I will get back to you with a list of apt commands to install the dependencies of rix.

@b-rodrigues
Copy link
Contributor

Interesting, I guess it's httr and jsonlite that require libcurl-dev and libopenssl-dev

@philipp-baumann
Copy link
Collaborator Author

Interesting, I guess it's httr and jsonlite that require libcurl-dev and libopenssl-dev

exactly. I was wondering if it makes more sense to install everything on win and then go to the mounted C or whatever drive though Ubuntu WSL2?

@b-rodrigues
Copy link
Contributor

Honestly it might be easier to install rix() using Nix as well 😄 essentially what is described here: https://b-rodrigues.github.io/rix/articles/interactive-use.html#scenario-2-you-install-r-and-rstudio-using-nix

I would need to make these instructions more prominent

@philipp-baumann
Copy link
Collaborator Author

aah good idea!

@philipp-baumann
Copy link
Collaborator Author

#7

@b-rodrigues
Copy link
Contributor

yeah I guess a note in the readme redirecting users to these instructions would be needed, but I'd like to find out what should be installed on WSL2 as well. My guess is that these libraries should be installed within the Ubuntu within Windows ?

@philipp-baumann
Copy link
Collaborator Author

yeah I guess a note in the readme redirecting users to these instructions would be needed, but I'd like to find out what should be installed on WSL2 as well. My guess is that these libraries should be installed within the Ubuntu within Windows ?

yes, the link would be good. But then actually I am not sure if one can not just navigate to the C drive, which is available on WSL2, too?

@philipp-baumann
Copy link
Collaborator Author

yeah I guess a note in the readme redirecting users to these instructions would be needed, but I'd like to find out what should be installed on WSL2 as well. My guess is that these libraries should be installed within the Ubuntu within Windows ?

yes, the link would be good. But then actually I am not sure if one can not just navigate to the C drive, which is available on WSL2, too?

Maybe doing both would resolve? Meaning a short description of sys libs on WSL2 plus the way to just use rix on windows and then navigate to the mounted drive?

@b-rodrigues
Copy link
Contributor

yes I guess so

@philipp-baumann
Copy link
Collaborator Author

@b-rodrigues hmm unfortunately the azure VMs do not support virtualization in bios and hence it is not possible to run WSL2 on them, as far as I can tell.

@philipp-baumann
Copy link
Collaborator Author

=> for the moment, I think it suffices to list the system dependencies needed via apt.

@b-rodrigues
Copy link
Contributor

yes, I believe that would be enough, plus hinting at the option of bootstrapping everything using the provided default.nix file from the documention.

@philipp-baumann
Copy link
Collaborator Author

good idea.

@philipp-baumann
Copy link
Collaborator Author

#12

@philipp-baumann
Copy link
Collaborator Author

philipp-baumann commented Aug 3, 2023

@b-rodrigues is there a default .nix file you ship with the pkg? Did not find using rg

@b-rodrigues
Copy link
Contributor

no, the structure of the file is defined here: https://github.com/b-rodrigues/rix/blob/5b0c962823c38476f2b2799f8483f5dc0e4f3698/dev/build_envs.Rmd#L398

@philipp-baumann
Copy link
Collaborator Author

no, the structure of the file is defined here:

https://github.com/b-rodrigues/rix/blob/5b0c962823c38476f2b2799f8483f5dc0e4f3698/dev/build_envs.Rmd#L398

perfect thanks!

@philipp-baumann
Copy link
Collaborator Author

Would say we keep this open to have a place where Windows users can bring up stuff :-)

@philipp-baumann
Copy link
Collaborator Author

New plan:

  • nix_build(), if on Windows native host, and if WSL is present, then preprend wsl to the build cmd.

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

No branches or pull requests

2 participants