138 자
1 분
jekyll serve 실행시 webrick (LoadError) 문제 해결
깃블로그 서버를 실행하려고 jekyll serve를 실행시 다음과 같은 오류 스택이 뜨며 서버가 정상실행이 안되는 경우가 있다.
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/jekyll-4.2.0/lib/jekyll/commands/serve/servlet.rb:3:in `require': cannot load such file -- webrick (LoadError) from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/jekyll-4.2.0/lib/jekyll/commands/serve/servlet.rb:3:in `<top (required)>' from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/jekyll-4.2.0/lib/jekyll/commands/serve.rb:179:in `require_relative' from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/jekyll-4.2.0/lib/jekyll/commands/serve.rb:179:in `setup' from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/jekyll-4.2.0/lib/jekyll/commands/serve.rb:100:in `process' from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/jekyll-4.2.0/lib/jekyll/command.rb:91:in `block in process_with_graceful_fail' from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/jekyll-4.2.0/lib/jekyll/command.rb:91:in `each' from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/jekyll-4.2.0/lib/jekyll/command.rb:91:in `process_with_graceful_fail' from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/jekyll-4.2.0/lib/jekyll/commands/serve.rb:86:in `block (2 levels) in init_with_program' from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `block in execute' from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `each' from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `execute' from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/mercenary-0.4.0/lib/mercenary/program.rb:44:in `go' from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/mercenary-0.4.0/lib/mercenary.rb:21:in `program' from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/jekyll-4.2.0/exe/jekyll:15:in `<top (required)>' from C:/Ruby30-x64/bin/jekyll:23:in `load' from C:/Ruby30-x64/bin/jekyll:23:in `<main>'해당 문제가 일어나는 경우는 Ruby 3.0.0 이상을 사용할 때 일어난다. 이유는 webrick 이 Ruby 3.x 이상에선 Bundle 로 제공되지 않기 때문이다. 그러므로 이에 대한 해결책은 해당 번들을 설치해주는 것이다.
터미널에서 다음 명령을 실행해주자
bundle add webrick 공유하기
이 글이 도움이 되었다면 더 많은 분들께 공유해 주세요!
jekyll serve 실행시 webrick (LoadError) 문제 해결
https://nirobase.me/posts/211115-jekyll-serve-webrick-loaderror/ 일부 정보가 오래되었을 수 있습니다
관련 글 스마트 추천
1
MapStruct nullPointException 문제 해결
개발 이거 당하면 멘탈이 나간다. 얼른가서 해결해주자. 의존성과 수순의 문제다.
2
Log4J2 취약점 CVE-2021-44228 Spring Boot 대응
개발 제로데이 보안 취약점 Log4j2 취약점을 빨리 조치해보자구요
3
ddl-auto 관련 오류와 해결 방법
개발 ddl-auto 설정 후 어떠한 오류가 발생하든 최우선으로 확인해봐야할 것에 대하여
4
웹 서버와 웹 애플리케이션 서버 둘의 관계
개발 이름이 비슷한 웹 서버와 웹 애플리케이션 도대체 뭐가 다른건지 예시를 통해 알아봅시다.
5
해쉬 테이블과 충돌, 넌 누구야?
개발 우리가 종종 사용하게 되는 HashTable 하지만 그곳엔 충돌이라는 함정이 존재하는데...










