Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error: uninitialized constant FFI::Platform::CPU on starting jekyll server

I got the below error on trying to start Jekyll server

Error: uninitialized constant FFI::Platform::CPU

I tried reinstalling Jekyll server and its dependencies, but no luck. Could someone help me to get around this issue? Thanks.

I am using 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
like image 799
Anil Gaikwad Avatar asked Jul 19 '19 04:07

Anil Gaikwad


1 Answers

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.

like image 112
bugHead Avatar answered Nov 14 '22 13:11

bugHead