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

need help installing on WSL #960

Closed
epogrebnyak opened this issue Sep 10, 2021 · 7 comments
Closed

need help installing on WSL #960

epogrebnyak opened this issue Sep 10, 2021 · 7 comments
Labels

Comments

@epogrebnyak
Copy link

I run bash on Ubuntu/WSL and install just as:

curl --proto '=https' --tlsv1.2 -sSf https://just.systems/install.sh | bash -s -- --to .

this creates file called just, but when running just I get:

# just
just: command not found
# ls -l just
-rwxrwxrwx 1 root root 4594672 Sep 10 17:12 just

Any idea what am I doing wrong?

@epogrebnyak
Copy link
Author

Same effect if I drop a binary from releases

@epogrebnyak
Copy link
Author

Perhaps different issue but cargo fails to build just with follwoing error:

error[E0658]: use of unstable library feature 'str_split_once': newly added
  --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/just-0.10.1/src/shebang.rs:36:8
   |
36 |       .rsplit_once(|c| matches!(c, '/' | '\\'))
   |        ^^^^^^^^^^^
   |
   = note: see issue #74773 <https://github.com/rust-lang/rust/issues/74773> for more information

@casey
Copy link
Owner

casey commented Sep 11, 2021

Hi @epogrebnyak!

this creates file called just, but when running just I get:

I think you'll need to call just with ./just if it's in the current directory. To run it as just you'll have to add it to that is in your PATH variable. For example:

mkdir ~/bin
curl --proto '=https' --tlsv1.2 -sSf https://just.systems/install.sh | bash -s -- --to ~/bin
export PATH="$PATH:$HOME/bin"
just --help

Does that work for you?

Perhaps different issue but cargo fails to build just with follwoing error:

Which version of Rust is giving you this error?

@casey casey added the question label Sep 11, 2021
@twiebe
Copy link

twiebe commented Sep 16, 2021

Perhaps different issue but cargo fails to build just with follwoing error:

Which version of Rust is giving you this error?

@casey I'm seeing the exact same error on an Ubuntu 18.04 with rustc 1.51.0.

@casey
Copy link
Owner

casey commented Sep 16, 2021

@casey I'm seeing the exact same error on an Ubuntu 18.04 with rustc 1.51.0.

Thanks for confirming. I opened #966 to properly define Just's MSRV going forward.

@epogrebnyak
Copy link
Author

mkdir ~/bin
curl --proto '=https' --tlsv1.2 -sSf https://just.systems/install.sh | bash -s -- --to ~/bin
export PATH="$PATH:$HOME/bin"
just --help

This work perfectly, thank you - maybe I could make PR to README.md?

@casey
Copy link
Owner

casey commented Sep 24, 2021

This work perfectly, thank you - maybe I could make PR to README.md?

Excellent. Good idea, I just added detailed instructions in #978.

@casey casey closed this as completed Sep 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants