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

bash: jenv: command not found in gitbash #412

Open
ShubhamShekhar1996 opened this issue Jul 25, 2023 · 2 comments
Open

bash: jenv: command not found in gitbash #412

ShubhamShekhar1996 opened this issue Jul 25, 2023 · 2 comments

Comments

@ShubhamShekhar1996
Copy link

ShubhamShekhar1996 commented Jul 25, 2023

I tried below lines sequentially on git bash:-

  1. git clone https://github.com/jenv/jenv.git ~/.jenv

  2. echo 'export PATH="$HOME/.jenv/bin:$PATH"' >> ~/.bash_profile

  3. echo 'eval "$(jenv init -)"' >> ~/.bash_profile

But again when I tried jenv add, it says:-
bash: jenv: command not found
And also when I close and re-open gitbash , I get below error on start up:-

/c/Users/id/.jenv/bin/jenv: line 1: ../libexec/jenv: No such file or directory

Can you please let me know which step I am missing?

@mrmeszaros
Copy link

The file bin/jenv in this repository is a symlink - that points to arelative path ../libexec/jenv.

Your problem is that Windows does not have symlinks (or soft links in other words).

Sadly, I do not work on windows, but You ain't alone with the issue: https://stackoverflow.com/questions/5917249/git-symbolic-links-in-windows

I would try cp libexec/jenv bin/jenv - this would overwrite the symlink with the file it should point to.

@ShubhamShekhar1996
Copy link
Author

ShubhamShekhar1996 commented Jul 27, 2023

The cp libexec/jenv bin/jenv command did work, thank you

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