github / pages-gem

A simple Ruby Gem to bootstrap dependencies for setting up and maintaining a local Jekyll environment in sync with GitHub Pages

Home Page:http://pages.github.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dependency error on jekyll-remote-theme around libcurl

SeanKilleen opened this issue · comments

Before submitting an issue, please be sure to

This issue affects

  • Building sites locally

What did you do (e.g., steps to reproduce)

I'm assisting someone in getting their site converted from Blogger to GitHub.

  • Clone the repo (in this case, dennisdoomen\dennisdoomen.github.io)
  • Check the gemfile (it only includes gem "github-pages", group: :jekyll_plugins)
  • Run bundle install
  • Run bundle update github-pages
  • See no errors
  • Run bundle exec jekyll serve

What did you expect to happen?

  • The site to be built & shown locally

What happened instead?

I see an 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/!

Additional information

I thought this might have been an issue with PowerShell using curl as an alias for Web-Invoke so I:

  • Removed the alias from my Powershell Profile
  • Confirmed that curl no longer worked.
  • Installed curl via chocolatey using choco install curl.
  • Restarted
  • Attempted bundle exec jekyll serve again.

No luck.

A workaround for me was described in this post:

  • Downloaded libcurl DLLs
  • Copied them into my ruby install's bin folder

This appears to get me past the hurdle, but it feels a biiiiiit hacky.

I know this is an old issue, but this should now no longer be a problem! jekyll-remote-theme migrated to use Ruby's built-in Net::HTTP library which does not use/require libcurl: benbalter/jekyll-remote-theme#26