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

Use linux-like julia in Windows #3

Open
yuanchuanzou opened this issue Sep 14, 2018 · 2 comments
Open

Use linux-like julia in Windows #3

yuanchuanzou opened this issue Sep 14, 2018 · 2 comments

Comments

@yuanchuanzou
Copy link

In Windows, Julia shell acts ugly when you are trying to deal with directories (cd, rm, ls, pwd...). There is a way to use linux-like julia without installing a new Linux system, or virtual system like virtualbox (BTW, these are also two methods, but not quite convenient for Windows users). Win10 contains Ubuntu!

Following are the steps:

  1. in Windows 10, goto Microsoft store (BTW, goto is already abandoned in the modern language :P )
    find Ubuntu, and install it. I tested Ubuntu, and Ubuntu 18.04, both work.
  2. download julia for linux, https://julialang.org/downloads/
    Best to download: Generic Linux Binaries for x86, for 64-bit (depend on your computer, maybe 32-bit)
    you will get the file "julia-1.0.0-linux-x86_64.tar.gz" in your download directory, say "Downloads"
  3. run Ubuntu, it prompts a shell.
  4. Move the downloaded file to your directory in Ubuntu.
    something like, :~/$ mv /mnt/c/Users/zouyc/Downloads/julia-1.0.0-linux-x86_64.tar.gz ./
  5. unzip the file
    :~/$tar xvzf julia-1.0.0-linux-x86_64.tar.gz
    You get everything you need!
  6. run it:
    :~/$./julia-1.0.0/bin/julia
    enjoy it!

An easier way to use it for the next time is:
add "alias julia='~/Julia/julia-1.0.0/bin/julia' " to the end of the file ~/.bashrc
next time, you don't need to give the absolute path of julia, just type 'julia' in the Bash.

@Roger-luo
Copy link

Roger-luo commented Sep 14, 2018

there are still driver issues with wsl, be careful with that in WSL(Windows Subsystem Linux). You might not be able to use some package in the future. Because wsl is not fully a Linux.

e.g: microsoft/WSL#1788

But feel free to file an issue there. And here is another reference for setting up the Julia in WSL.

https://discourse.julialang.org/t/fyi-julia-for-linux-on-bash-for-windows/3096

@yuanchuanzou
Copy link
Author

yes. it might only be used for a lightweight usage.
e.g., it doesn't support plot easily.

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