ruby - 错误:启动 jekyll 服务器时未初始化的常量 FFI::Platform::CPU
问题描述
尝试启动 Jekyll 服务器时出现以下错误
错误:未初始化的常量
FFI::Platform::CPU
我尝试重新安装 Jekyll 服务器及其依赖项,但没有运气。有人可以帮我解决这个问题吗?谢谢。
我正在使用ubuntu=18.04,jekyll=3.8.6
anil@anil:~/customer-churn$ jekyll serve
Configuration file:
~/customer-churn/_config.yml
Source: ~/customer-churn
Destination: ~/customer-churn/_site
Incremental build: disabled. Enable with --incremental
Generating... done in 0.597 seconds.
jekyll 3.8.6 |
Error: uninitialized constant FFI::Platform::CPU
解决方案
I guess this problem occurs if you've installed Jekyll through apt
. In that case a bundle update
won't work immediately after an apt remove
. Try the following approach:
Uninstall Jekyll first:
sudo apt remove jekyll*
Clean-up your dependency libs:
sudo apt autoremove
Then in your project directory run:
bundle update
Positively, then jekyll serve
should work for you.
推荐阅读
- yocto - 修改配方之间的通用文件
- azure - 如何在 Azure DevOps 中的另一个变量中使用一个变量
- python - 修改覆盖 matplotlib 的轴和标签
- github - 如何在自定义域中/之后命名存储库?
- c# - 实体框架添加具有相关子项的新项
- javascript - 在应用程序启动时启动 Bull Queue 进程
- google-drive-api - 谷歌计算实例和谷歌驱动器之间的谷歌驱动器api
- tensorflow - 在 tensorflow 版本 1.14 和 2.0 上训练 TensorFlow 对象检测模型时出错
- powershell - PowerShell获取文件夹中没有路径和tsv行数的文件名
- python - 在 Django admin TabularInline 中替换“添加另一行”按钮的 href