You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Problem with location in which gem install by default #395
I followed the instructions from the website. Everything is installed, but when I type:
$ jekyll -v
/c/Users/username/AppData/Local/Microsoft/WindowsApps/jekyll: line 6: /c/Users/username/AppData/Local/Microsoft/WindowsApps/ruby: No such file or directory
Then I type:
$ where jekyll
C:\Users\username\AppData\Local\Microsoft\WindowsApps\jekyll
C:\Users\username\AppData\Local\Microsoft\WindowsApps\jekyll.bat
You probably installed in multi-user-mode. This can make gem installs more difficult. Unless you really want to work with multiple users, you should install in single user mode.
I managed to fully uninstall Ruby, and to install it for the user, as @larskanis suggested. Now jekyll is in ruby gems:
$ where jekyll
C:\RubyGems\bin\jekyll
C:\RubyGems\bin\jekyll.bat
But I still get this output:
$ jekyll -v
/c/RubyGems/bin/jekyll: line 6: /c/RubyGems/bin/ruby: No such file or directory
It is worth noting that if I run jekyll via Ruby it works:
$ ruby -S jekyll -v
jekyll 4.3.4
Activity
mohits commentedon Oct 25, 2024
Can you try Windows command shell?
MSP-Greg commentedon Oct 25, 2024
@janohirmas
This may be an issue with RubyGems. Can you post:
gem envusing a bash shell?C:\Users\username\AppData\Local\Microsoft\WindowsApps\jekyllI noticed some problems locally, but I have a 'unique' windows setup.
larskanis commentedon Oct 25, 2024
You probably installed in multi-user-mode. This can make gem installs more difficult. Unless you really want to work with multiple users, you should install in single user mode.
See https://github.com/oneclick/rubyinstaller2/wiki/FAQ#user-content-install-mode
janohirmas commentedon Oct 26, 2024
@MSP-Greg, the gem env:
RubyGems Environment:
I managed to fully uninstall Ruby, and to install it for the user, as @larskanis suggested. Now jekyll is in ruby gems:
$ where jekyll
C:\RubyGems\bin\jekyll
C:\RubyGems\bin\jekyll.bat
But I still get this output:
$ jekyll -v
/c/RubyGems/bin/jekyll: line 6: /c/RubyGems/bin/ruby: No such file or directory
It is worth noting that if I run jekyll via Ruby it works:
$ ruby -S jekyll -v
jekyll 4.3.4
Also $ ruby -S jekyll serve works