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

Gem not see previous installed git #48

Open
oskonstantinov opened this issue Aug 13, 2018 · 5 comments
Open

Gem not see previous installed git #48

oskonstantinov opened this issue Aug 13, 2018 · 5 comments

Comments

@oskonstantinov
Copy link

Hi, friends!
Version specific_install 0.3.5.
When i try install some gem by url, i catch this exception:
screenshot_1
As you can see, git is already installed. What can i do to fix it?

@rdp
Copy link
Owner

rdp commented Aug 16, 2018 via email

@oskonstantinov
Copy link
Author

I get commands example list

screenshot_2

@christopher-dG
Copy link

This error probably occurs because you don't have which installed. I ran into this running inside an Amazon Linux Docker container.

unless system("which git") || system("where git")

@FlatKey
Copy link

FlatKey commented Jun 23, 2020

I had the same issue within a Docker Container without which installed.

@lush
Copy link
Contributor

lush commented Jun 23, 2020

Instead of using which, where or whereis as well, I would recommend to use bash's builtin type to search for the git executable in PATH, 'cause It will give you also functions and aliases.

e.g.

 unless system("type -a git") 

as @FlatKey mentioned - the error occurs when docker images are created based on centos:8

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

5 participants