`raise_not_found!': Could not find gem 'github-pages' in locally installed gems. #39

Open
opened 2025-11-20 04:15:10 -05:00 by saavagebueno · 2 comments
Owner

Originally created by @Ilias-D-Sarris on GitHub (Sep 21, 2023).

Hello Bret,

Today I tried using your Jekyll image and right after issuing:

docker run -v $(pwd):/site bretfisher/jekyll new .

in an empty folder I am getting the following error (warning?):

/usr/local/lib/ruby/site_ruby/3.1.0/bundler/resolver.rb:304:in `raise_not_found!': Could not find gem 'github-pages' in locally installed gems. (Bundler::GemNotFound)

Since I need to use Github Pages this error is concerning.

Note that I tried it both in Windows 10 and in WSL 2, same error. (In Windows I issued "docker run -v .:/site bretfisher/jekyll new .")

I have little knowledge of Docker, Ruby or Jekyll, is this something that can be (fairly) easy to fix?

TIA for the help mate. Cheers!

Ilias.

Originally created by @Ilias-D-Sarris on GitHub (Sep 21, 2023). Hello Bret, Today I tried using your Jekyll image and right after issuing: docker run -v $(pwd):/site bretfisher/jekyll new . in an empty folder I am getting the following error (warning?): /usr/local/lib/ruby/site_ruby/3.1.0/bundler/resolver.rb:304:in `raise_not_found!': Could not find gem 'github-pages' in locally installed gems. (Bundler::GemNotFound) Since I need to use Github Pages this error is concerning. Note that I tried it both in Windows 10 and in WSL 2, same error. (In Windows I issued "docker run -v .:/site bretfisher/jekyll new .") I have little knowledge of Docker, Ruby or Jekyll, is this something that can be (fairly) easy to fix? TIA for the help mate. Cheers! Ilias.
Author
Owner

@BretFisher commented on GitHub (Sep 21, 2023):

I ran your first command in a blank directory on linux and it all worked fine. I've not seen that error about the github-pages gem (which is commented out in the standard Gemfile that a new command creates). My only suggestion is to be sure your directory on the host WSL2 is truly empty when you run new.

If you're not a Docker person, I'd recommend just following the WSL (Windows Subsystem for Linux) instructions on Jekyll's getting started guide https://jekyllrb.com/docs/installation/windows/#installation-via-bash-on-windows-10

@BretFisher commented on GitHub (Sep 21, 2023): I ran your first command in a blank directory on linux and it all worked fine. I've not seen that error about the `github-pages` gem (which is commented out in the standard Gemfile that a `new` command creates). My only suggestion is to be sure your directory on the host WSL2 is truly empty when you run `new`. If you're not a Docker person, I'd recommend just following the WSL (Windows Subsystem for Linux) instructions on Jekyll's getting started guide https://jekyllrb.com/docs/installation/windows/#installation-via-bash-on-windows-10
Author
Owner

@Ilias-D-Sarris commented on GitHub (Sep 22, 2023):

Thanks Bret, will try that.

Cheers from Thessaloniki.

@Ilias-D-Sarris commented on GitHub (Sep 22, 2023): Thanks Bret, will try that. Cheers from Thessaloniki.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jekyll-serve#39