Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows Error: Could not open library 'libcurl.so.4.dll' #18

Closed
dotnetdan opened this issue Dec 12, 2017 · 20 comments
Closed

Windows Error: Could not open library 'libcurl.so.4.dll' #18

dotnetdan opened this issue Dec 12, 2017 · 20 comments

Comments

@dotnetdan
Copy link

On Windows 7, I'm unable to to run Github Pages locally. Is this expected? Does jekyll-remote-theme still have a dependency on libcurl?

Config.yml

remote_theme: benbalter/retlab

plugins:
   - jekyll-feed
   - jekyll-remote-theme

Gem file

gem 'jekyll-remote-theme', github: 'benbalter/jekyll-remote-theme', branch: 'master'

group :jekyll_plugins do
  gem "jekyll-feed", "~> 0.6"
end

I run $ bundle exec jekyll serve

Configuration file: C:/Users/Daniel.Ling/source/repos/dotnetdan-github-io/_config.yml
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/!

@DirtyF
Copy link
Contributor

DirtyF commented Dec 12, 2017

Could you try the following procedure: #17 (comment) ?

@dotnetdan
Copy link
Author

@DirtyF I am trying to follow the instructions, but I can't seem to find the proper libcurl download - the only windows libcurl downloads are for cygwin, and I don't think that is correct?

@koppor
Copy link

koppor commented Jan 21, 2018

A pointer in the direction of the solution could be https://stackoverflow.com/a/47754520/873282. For me, Jekyll now starts, but I get following error:

Remote Theme: Using theme mmistakes/minimal-mistakes
jekyll 3.6.2 | Error: Peer certificate cannot be authenticated with given CA certificates

@jengalas
Copy link

@koppor I'm getting the same error. Did you have any luck resolving this yet?

@koppor
Copy link

koppor commented Jan 21, 2018

@jengalas No, I just downloaded the theme to my local git repository to keep things moving. I could have used the jeckyll docker image as another workaround, but that seemed to be too complex for my case.

@jengalas
Copy link

Thank you! I'll investigate the docker image if necessary.

@zvirja
Copy link

zvirja commented Jan 22, 2018

@benbalter Do you have any chance to review the issue? It's kind a mess around all that stuff with GitHub pages and it's impossible to find any fully suitable workaround😕

@DirtyF
Copy link
Contributor

DirtyF commented Jan 22, 2018

As this issue is related to GitHub Pages install on Windows, feel free to contact GitHub support.

@zvirja
Copy link

zvirja commented Jan 22, 2018

@DirtyF The situation isn't that simple as described here. As far as I got, the issue is not even related this component - it's caused by Typhoeus. However, you are probably right - it's better to contact them. Will write a letter to see whether they could facilitate the process 😉

Probably, it's better to create a composite issue here: https://github.com/github/pages-gem. There is a related issue already registered, however it doesn't solve the issue entirely. You will still see an error if you use remote theme.

@nesdis
Copy link

nesdis commented Jan 23, 2018

@koppor Once you clone the theme locally, how do you point to it so you can proceed further??

@mmistakes
Copy link

Hit the same issue on #9. As far as I could tell libcurl was installed properly and I had a valid certificate. Eventually gave up trying to get remote theme working on Windows thinking it was something related to my specific environment. Maybe not...

@koppor
Copy link

koppor commented Jan 23, 2018

@nesdis This is the "magic" of Jekyll. Here my repo: https://github.com/koppor/wiki.flupp.de/ - I followed the how to of the "minimal mistakes theme" here: https://mmistakes.github.io/minimal-mistakes/docs/quick-start-guide/

@jengalas
Copy link

I only have Windows machines to use for development, and I couldn't resolve the certificate error. I ended up hosting on Netlify instead of Github Pages; no problems.

@benbalter
Copy link
Owner

Version 174 of the Pages Gem makes the Jekyll Remote Theme dependency optional, and should resolve issues for Windows users trying to preview sites locally that don't use a remote theme. Those wanting to preview a theme locally will need to following the troubleshooting steps above to install cURL in their local environment.

@nesdis
Copy link

nesdis commented Jan 23, 2018

@benbalter What exactly are the steps to install cURL Could you please provide a url

@benbalter
Copy link
Owner

What exactly are the steps to install cURL Could you please provide a url

#17 (comment)

@stale
Copy link

stale bot commented Mar 24, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@benbalter
Copy link
Owner

Version 0.3.0 uses Ruby's native Net:HTTP, instead of Typhoeus (Libcurl), which may alleviate this issue.

@mmistakes
Copy link

Thanks @benbalter, looks like version 0.3.1 fixed the issue I had on Windows.
Not sure if this is a false positive as everything works as expected, but I'm seeing messages about invalid theme folders from Jekyll now:

Incremental build: disabled. Enable with --incremental
      Generating...
             Theme: mmistakes/minimal-mistakes
      Theme source: E:/Users/MICHAE~1.ROS/AppData/Local/Temp/jekyll-remote-theme-20180514-16660-1rma8wf
Invalid theme folder: _sass
      Remote Theme: Using theme mmistakes/minimal-mistakes
      Remote Theme: Downloading https://codeload.github.com/mmistakes/minimal-mistakes/zip/master to E:/Users/MICHAE~1.ROS/AppData/Local/Temp/jekyll-remote-theme-20180514-16660-yyubg5.zip
      Remote Theme: Unzipping E:/Users/MICHAE~1.ROS/AppData/Local/Temp/jekyll-remote-theme-20180514-16660-yyubg5.zip to E:/Users/MICHAE~1.ROS/AppData/Local/Temp/jekyll-remote-theme-20180514-16660-1rma8wf

@benbalter
Copy link
Owner

I haven't seen that before, but think that's safe to ignore as it's an artifact of Jekyll looking for the _sass folder before the theme's been downloaded, but we configure it manually once it is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants