Jekyll install cannot load such file – webrick (LoadError)
catalogue
Jekyll installation cannot load such file — webrick (LoadError) fast track problem background, problem analysis and solution summary
Express Lane
bundle add webrick
Problem background
I use archlinux. Recently, on a whim, I wanted to build a blog on GitHub pages. I looked for it and found two mainstream ones, one is Jekyll and the other is hexo. I heard that the previous one has richer functions, but the syntax is not friendly to programmers, and someone around me uses hexo, but I chose the former, which has rich functions and attracts me more.
but I followed the quick start on the home page
~ $ gem install bundler jekyll
~ $ jekyll new my-awesome-site
~ $ cd my-awesome-site
~/my-awesome-site $ bundle exec jekyll serve
# => Now browse to http://localhost:4000
When starting the service in the last step, it reports an error
cannot load such file -- webrick (LoadError)
Problem analysis
After checking a bunch of things on the Internet, we finally found the answer from the official website. The problem is solved by the official documents and is
UE (which tells us that the official documents and GitHub issue are preferred for problems). Through the official website, we can know that we can solve the problem by running bundle add webrick
: QuickStart https://jekyllrb.com/docs/,
From the answer given in the issue link on the official website, we can know that ruby3.0.0 and above will no longer bring their own webrick and need to be manually added to the environment
Solution:
Add webrick to dependency: bundle add webrick
this should be implemented in the project
In addition, I tossed around some things, which should not have much to do with the solution of the problem
if webrick does not exist, I can use gem installation:gem install webrick
in addition, I also installed GitHub pages:gem install GitHub pages
Summary
Read more official documents and turn to issue
Read More:
- Pod install Error: LoadError [How to Solve]
- Julia LoadError: Failed to precompile GR [How to Solve]
- Yarn install error: 00h00m00s 0/0: : ERROR: [Errno 2] No such file or directory: ‘install‘
- Failed to load file or assembly “Microsoft.Office.Interop.Excel” Solution
- docker load Error processing tar file(exit status 1): archive/tar: invalid tar header
- Postgis Install Error: could not load library “C:\……“:The specified module could not be found.
- Python Importerror: DLL load failed: the page file is too small to complete the operation.
- [Solved] VScode powershell Run ts-node Error: Unable to load file xxxx…
- Centos pip install uwsgi error: “fatal error: Python.h: No such file or directory”
- [Solved] cnpm: Cannot load the file C:\Users\Raytine\AppData\Roaming\npm\cnpm.ps1 because running scripts is prohibited on this system
- db2 purescale Install Error: ERROR: An error occurred while compiling IBM General Parallel File System (GPFS) Portability Layer (GPL) on host “cf1”. Return code “3”.
- Puppeteer Error: Chromium revision is not downloaded. Run “npm install“ or “yarn install“
- [Solved] Android-android studio apk Install Error: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED
- M1 MacBook pod install Report an error chip incompatibility problem
- Ranger Install Error: [E] ranger_core_db_mysql.sql file import failed!
- [Solved] Android Studio APK install Error: INSTALL_FAILED_CONFLICTING_PROVIDER
- [Solved] npm install sass@~1.32 sass-loader deepmerge -D Install Error
- [Solved] React Native Red screen Error: Unable to load script from assets
- ApplicationContext.xml file header error Referenced file contains errors
- [Solved] Install nginx make & make install error report record