Closed HolySearch closed 2 years ago
@HolySearch - Are you using bash.exe
? Could you try the Windows command prompt to just confirm if the problem is running under bash or even under the Windows command prompt? Thanks!
By the way, the error reads:
could not find /tmp, please create!
I guess you need a tmp folder?
@mohits i'm not using bash, the stacktraces i posted are from the cmd with Ruby. In bash i get a permission error when trying the described steps.
Also, where should i create the /tmp folder?
Hi @HolySearch - Sorry for the delay in replying because I wanted to follow exactly what you did on a clean installation of Ruby 3.1 (3.1.1 actually). So far, I have done this:
[1] Install Ruby 3.1 using the instructions as here: https://notepad.onghu.com/2022/ruby3.1-windows-day0-install-hello_world/
[2] Installed Jekyll using gem install jekyll bundler
<snip>
Done installing documentation for unicode-display_width, terminal-table, safe_yaml, rouge, forwardable-extended, pathutil, mercenary, liquid, kramdown, kramdown-parser-gfm, ffi, rb-inotify, rb-fsevent, listen, jekyll-watch, sassc, jekyll-sass-converter, concurrent-ruby, i18n, http_parser.rb, eventmachine, em-websocket, colorator, public_suffix, addressable, jekyll after 41 seconds
Fetching bundler-2.3.12.gem
Successfully installed bundler-2.3.12
Parsing documentation for bundler-2.3.12
Installing ri documentation for bundler-2.3.12
Done installing documentation for bundler after 0 seconds
27 gems installed
[3] Then, I did jekyll -v
and this is what I get.
$ jekyll -v
jekyll 4.2.2
Since it works for me, it makes it tougher to debug :) but let's try. I have 1 questions from this:
jekyll -v
in an empty folder or did you do that in a folder that already has an older Jekyll site in it? It could be that jekyll is picking up the Gemfile in that directory and throwing errors.I got loads more errors when I ran jekyll -v
in an existing Jekyll setup.
Resolving dependencies...
C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bundler-2.3.12/lib/bundler/resolver.rb:57:in `rescue in start': Bundler could not find compatible versions for gem "ffi": (Bundler::VersionConflict)
In snapshot (Gemfile.lock):
ffi (= 1.15.1)
In Gemfile:
jekyll was resolved to 4.2.0, which depends on
jekyll-sass-converter (~> 2.0) was resolved to 2.1.0, which depends on
sassc (> 2.0.1, < 3.0) was resolved to 2.4.0, which depends on
ffi (~> 1.9)
After you asked, I tried on my user folder (C:\Users\user) and Jekyll worked properly, so I proceeded to update the Gemfile and Gemfile.lock for the project, then getting similar errors you got. Further searching revealed it's a problem with Jekyll https://github.com/jekyll/jekyll/issues/8523
Thank you for your support, @mohits
What problems are you experiencing?
When trying to execute Jekyll commands it fails with a Bundler::GemNotFound error and a big list of unmet dependencies. Executing
gem install jekyll bundler
outputs a successful install, butjekyll -v
fails.It's probably the same problem as #261 and #262, but i'm not sure, so submitting a new issue.
Stacktrace from
jekyll
command:Steps to reproduce
Download & execute rubyinstaller-devkit-3.1.2-1-x64.exe Use all default options for installation After installation, open a CMD with Ruby and run
gem install jekyll bundler
Then try to check Jekyll version withjekyll -v
Result is the preceding stacktraceWhat's the output from
ridk version
?