Okey, i went the rvm path … accordingly to my own environment.
Suffered the ‘no Webrick’ bundled … issue, like others did,
but thanks to info shared here i was just able to quickly fix it, as @MichaelCurrin mentioned,
$ bundle add webrick
and to keep it future-proof , this automatically adds the following to Gemfile
gem "webrick", "~> 1.7"
Enjoy renewed Ruby 3
Still, in some of the websites i develop, i’m encountering some issues… leading to Webrick no being available, even if apparently it got as described in this discussion here. Umf…need further investigation from my side, i’m afraid of.
Hello I am new to learning Jekyll and only just installed Jekyll and Ruby and therefor have the latest versions installed. I also get the webrick issue and can fix it by adding the “bundle add webrick” command to every project.
But I’m not sure how to fix this so I don’t have to manually add the bundle everytime after running “jekyll new ****”. What’s the best way to fix this if you’re not upgrading?
Thanks Michael! Only working with HTML and CSS till now I just found it a bit confusing that Jekyll doesn’t work / won’t start the server if you just follow the basic instructions to get it up and running, especially if you’re also new to the command line
Just so I got the concept down: instead of running Jekyll new, it’s better to just clone a Github repo and then run the bundle command to install all the dependencies?
I tried to do that and got the following error
C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bundler-2.3.18/lib/bundler/runtime.rb:308:in check_for_activated_spec!': You have already activated i18n 1.12.0, but your Gemfile requires i18n 0.9.5. Prepending bundle exec` to your command may solve this. (Gem::LoadError
Guess I should just create my own Repo and clone that right?
If your site is really simple like a handful of pages and you want to use a plain CSS theme instead of a Jekyll theme, you can try making your site without Jekyll.
So that would be a repo with an index.html file in it and nothing else is needed.
You can use a static server extension in VS Code to serve your contents locally without using the CLI. Or for CLI, use a server in Python or Node or PHP.
Yes my suggestion is to use the cloned repo generated from a template, instead of using jekyll new. As the template will come with the webrick stuff every time to save you that, plus some other nice things in my template.