jekyll serve dependency error - Could not open 'lib curl'
My work around was to omit the Jekyll plugins from the Gemfile.
Original Gemfile:
source 'https://rubygems.org'
gem 'github-pages', group: :jekyll_plugins
New:
source 'https://rubygems.org'
gem 'github-pages'
However, if you need to use the plugins, check out TT--'s answer below. I couldn't get it working myself, but it is the exact same problem so if it worked for him I guess it should work.
Could not open library 'libcurl.so.4' when running $ bundle exec jekyll serve
It seems you don't have libcurl which is probably a dependency of this version of Jekyll or one of it's dependencies. Can you try installing it via https://curl.haxx.se/dlwiz/?type=lib?
How to solve 'libcurl' not found with Rails on Windows
Answer that worked for me (W10/Ruby2.6.0) was:
- Download cURL from the following URL: https://curl.haxx.se/windows/ (I chose 64bit because that's the system I'm using)
- Go into the archive and browse to
/bin
- Locate
libcurl_x64.dll
(it may be justlibcurl.dll
) - Extract to your local drive
- Rename it to
libcurl.dll
if it has the_x64
suffix - Cut + paste the file into the
/bin
directory of your Ruby installation
Jekyll remote theme doesn't work locally
aaaah I was just bashing my head against this as well. I ran bundle exec jekyll serve --verbose
and saw that jekyll-remote-theme
was never being initialized at all (each plugin logs a Requiring: jekyll-<thing>
line). Then I noticed this block in the Gemfile:
# If you have any plugins, put them here!
group :jekyll_plugins do
gem "jekyll-feed", "~> 0.6"
end
I added "gem jekyll-remote-theme"
to that plugin block and that fixed it – doh!
There are a few notes in the jekyll changelogs about this Gemfile group, but I didn't find any of it super helpful in explaining what's going on here.
hope that helps!
Rails Typhoeus Curl Trouble
Is libcurl properly installed? Typhoeus has no native extensions but it requires libcurl dynamic library (.so
) since it works with the FFI library:
# from lib/typhoeus/curl.rb
ffi_lib 'libcurl'
I would say that the development files (headers) are not needed so sudo apt-get install libcurl3
should do the trick (otherwise install the devel version w/ SSL support via sudo apt-get install libcurl4-openssl-dev
).
Related Topics
How to Get Past "Http://Gems.Rubyforge.Org/ Does Not Appear to Be a Repository" Error Message
Rails Date Format in Form Field
Jekyll Serve Dependency Error - Could Not Open 'Lib Curl'
How Does This Ruby Injection Magic Work
Trouble Yielding Inside a Block/Lambda
How to Install Ruby 2.1.4 on Ubuntu 14.04
Format the Date Using Ruby on Rails
How to Find Out Who Is Connected to Actioncable
How to Extract the Code from a Proc Object
Safe Navigation Operator (&.) for Nil
Rails Article Helper - "A" or "An"
Ruby Difference in Array Including Duplicates
Windows: Rails: Error Installing Bson_Ext
Is There a 'Pipe' Equivalent in Ruby
Breaking Up Long Strings on Multiple Lines in Ruby Without Stripping Newlines