2017-12-08 3 views
1

을 열 수 없습니다하지만 오류와 함께 제공 :지킬 종속성 오류를 제공 - 내가 <code>bundle exec jekyll serve</code>를 실행하려고 'LIB 컬'

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/! jekyll 3.6.2 | Error: jekyll-remote-theme

그래서 나는 컬을 설치 한 경우 확인 :

$ curl --version curl 7.50.1 (x86_64-w64-mingw32) libcurl/7.50.1 OpenSSL/1.0.2h zlib/1.2.8 libidn/1.33 libssh2/1.7.0 nghttp2/1.13.0 librtmp/2.3 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smtp smtps telnet tftp Features: IDN IPv6 Largefile SSPI Kerberos SPNEGO NTLM SSL libz TLS-SRP HTTP2 Metalink

비슷한 질문을 검색했지만 해결책이 내 문제와 관련이없는 것 같습니다. 저는 Jekyll과 Ruby를 처음 사용하기 때문에 오프라인에서 Github Pages를 볼 수 있기를 원했습니다.

Windows 7 64 비트를 사용하고 있습니다. 모든 제안을 부탁드립니다!

+0

github 페이지 보석 중 v171은 jekyll-remote-theme를 종속 항목으로 추가했습니다. https://github.com/github/pages-gem/issues/509 – Johannes

+0

오류는 jekyll-remote-theme 저장소의 17 번 문제입니다 : https://github.com/benbalter/ jekyll-remote-theme/issues/17 – koppor

답변

2

내 작품은 주위 지킬 플러그인 Gemfile에서 생략했다.

원래 Gemfile :

source 'https://rubygems.org' gem 'github-pages', group: :jekyll_plugins

새로운 기능 :

source 'https://rubygems.org' gem 'github-pages'

그러나, 당신은 플러그인을 사용해야 할 경우, 아래 TT--의 답을 확인하십시오. 나는 그 자신을 작동시키지 못했지만 똑같은 문제이기 때문에 그를 위해 일한다면 그것이 효과가있을 것이라고 나는 생각한다.

+0

이것은 내 답변에서 말한 것입니다. gihub-pages gem을 포함 시키십시오. – marcanuy

+0

그래, 나는 단지 대답을 가능한 한 간단하게 명확히하고 싶었 기 때문에 지킬을 처음 접하는 사람들은 나를 이해할 수 있다고 생각한다. 원하는만큼 대답을 수정하려면 내 대답을 삭제하고 원하는 경우 해결책으로 다시 표시 할 수 있습니다. – Leeton

+0

님, 그룹을 삭제 한 후에 오류가 사라졌습니다. 차이점이 무엇인지 지금 설명해 주시겠습니까? –

-2

난 당신 지킬 루트 경로에서 바로 GitHub의-페이지 보석으로 Gemfile이 당신을 고려, 번들 및 보석 명령의 사용을 혼합되어 볼 문제는,이 작업을 수행 :

bundle install 
bundle exec jekyll serve 

을를 작성해야 폴더에 필요한 모든 의존성을 적용한 다음 새로 설치된 Jekyll 버전을 실행하십시오.

+0

아, 고마워. : jekyll_plugins' 을하고 "그룹 : jekyll_plugins"제거 : '소스'https://rubygems.org ' 보석'GitHub의-페이지 ', 그룹 : 제가 포함 Gemfile을 한 부분과 일했다. – Leeton

+0

@Leeton, jekyll-remote-theme과 libcurl에 대한 의존성을 제거했기 때문에 @Leeton, 그것을하는 한 가지 방법이 있습니다. https://pages.github.com/versions에 따르면, 그것들은'github- 페이지의 종속성 –

+0

@ TT-- 오 ~ 알았어. 잘 그것 없이는 괜찮은 것 같습니다. 난 당신의 솔루션을 시도했지만 아무것도 변경하지 않는 것. 내가 잘못했을 수도 있지만 C :/users//libcurl을 PATH에 추가했습니다. (어떤 이유로) libcurl.dll이 해당 디렉토리에서 발견되었습니다. – Leeton

2

나는 동일한 문제가있었습니다. 그것은 루비 -FFI에서 오는 것 같다 as described here.

jekyll-remote-theme의 종속성에 대해 위와 같은 오류가 발생했습니다. FFI를 사용하는 One of them is typhoeus.

ffi-1.9.18-x64-mingw32/lib/ffi/library.rb:147:in `block in ffi_lib': Could not 
open libra (LoadError): 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. 

그것은 아마도 '올바른'방법은 아니지만, 작동하는 솔루션은 여기에 패키지 중 하나에서 libcurl.dll를 얻을 수입니다 : https://curl.haxx.se/gknw.net/7.40.0/dist-w64/과에 넣어 또한, 일을 github-pages health-check이 오류를 보여 주었다 통로. 작동하지 않았다

상황은 다음과 같습니다

  • 가 PATH 위 libcurl.dll-cygcurl-4.dll과는 PATH
  • 설치에 퍼팅 이름 바꾸기 현재 Curl Download Wizard
  • 에서 얻은 cygcurl-4.dll에 넣기 msys2 패키지 libcurl-devel 7.57.0-1
  • msys-curl-4.dll의 이름을 바꿉니다 (msys2 시도하지 않았나요 libcurl.dll

에) msys64\usr\bin에서 찾을 : 최신의 소스에서

  • 건물 컬/libcurl에. 이미 pacman -Ss libcurl에 따라 최신을 ​​가지고 있기 때문에 :

    msys/libcurl 7.57.0-1 (libraries) [installed] Multi-protocol file transfer library (runtime)

    msys/libcurl-devel 7.57.0-1 (development) [installed] Libcurl headers and libraries

+0

[curl-7.40.0-devel-mingw64.zip] (https : // curl) 패키지를 사용했습니다. .haxx.se/gknw.net/7.40.0/dist-w64/curl-7.40.0-devel-mingw64.zip), 거기에는'curl-7.40.0-devel-mingw64 \ bin' 경로가 있습니다. 그것은 효과가 있었다. 고맙습니다! – koppor

1

나는 동일한 문제가있었습니다. 내 솔루션 TT--의 하나였다,하지만 난 여기에 다운로드 한 파일 libcurl.dll을 넣어 :

C:\Ruby24-x64\bin 

다른 폴더가 PATH에있는 경우에도, 나에게 같은 오류가 발생했습니다.

관련 문제