Error With GitHub Pages Locally

Hi,

I’m trying to use the GitHub Pages gem to preview my Jekyll site locally. Jekyll Remote Theme is listed as a dependency of the gem. Whenever I try to build my site, I get the following error:

Dependency Error: Yikes! It looks like you don't have jekyll-remote-theme or one of its dependencies installed. In order to use Jekyll as currently configured, you'll need to install this gem. The full error message from Ruby is: 'Could not open library 'libcurl': The specified module could not be found. . Could not open library 'libcurl.dll': The specified module could not be found. . Could not open library 'libcurl.so.4': The specified module could not be found. . Could not open library 'libcurl.so.4.dll': The specified module could not be found. ' If you run into trouble, you can find helpful resources at https://jekyllrb.com/help/!

I’m using Git Bash on Windows 10. I’ve tried manually listing this plugin in my Gemfile. I’ve also ran gem install jekyll-remote-theme, neither of which helped. I’m not sure if this is an issue with my system or with the gem, so assistance would be appreciated.

I had a hell of time getting the remote theme gem to work on Windows 7, might be easier for you since you’re using 10 and bash. The issue is libcurl and getting that installed properly.

You might have to search around a bit but this thread might get you started https://stackoverflow.com/questions/9507353/how-do-i-install-set-up-and-use-curl-on-windows

I’ve added curl to my path and all that fun stuff (to no avail). I was wondering if I can just disable the remote theme gem? I’m not planning on using it.

@cravend you could mention to use v167 in your Gemfile but If you don’t want to use some gems shipped by default with the github pages gem, I would recommend to use directly jekyll instead. You just have to be aware of the plugins whitelisted by GitHub if you want GitHub to build your website.

Even better use jekyll and link your github repo to Netlify and you’ll be able to use jekyll with whatever plugin you want and host your site for free, while GitHub will still manage your Git repo.
This is my recommended setup for Jekyll.

Curl is not your issue - libcurl is. It is a native library that supports multiprotocol file transfers (https://curl.haxx.se/libcurl/).

As a good alternative you can use Docker for Windows and get your Jekyll workload running inside a container instantly and you wouldn’t have to deal with these issues.

That’s how I run all my Jekyll instances on OS X and you can do the same on Windows.

Hope this helps!

Hi, I got the same problem and found a solution to this (digging in Stack Overflow):

  1. I downloaded this file
  2. Extracted libcurl.dll from inside of it
  3. Put that file in the bin folder of my Ruby installation. In my case was C:\Ruby24-x64\bin
  4. ???
  5. PROFIT!

More info here.

Dependency Error: Yikes! It looks like you don't have jekyll-remote-theme or one of its dependencies installed. In order to use Jekyll as currently configured, you'll need to install this gem. The full error message from Ruby is: 'Could not open library 'libcurl': . Could not open library 'libcurl.dll': Pܧ▒▒:a▒p. Could not open library 'libcurl.so.4': The specified module could not be found. . Could not open library 'libcurl.so.4.dll': The specified module could not be found. ' If you run into trouble, you can find helpful resources at https://jekyllrb.com/help/!

So it found libcurl.dll, it just seems to be getting confused. Am I downloading the wrong version (Windows 10 x64 with Git Bash)??

The error was solved for me with the libcurl.dll taken from the link I posted. I tested other versions of libcurl, but the error persists. I must note that the file must be in the ruby installation path, and that folder must be listed in your system path. I don’t know why this is happening, but putting the dll in another folder, also on the path, didn’t work. My config is same as yours: Windows 10 x64 with Git Bash

On Ubuntu / Bash for Windows, I was able to resolve the issue by simply installing libcurl:

sudo apt install libcurl3