系统用的 Manjaro 用的软件库都比较新,过一段时间就跑不动了,记录下问题。

Liquid syntax error (line 52): Unexpected character $ in

https://github.com/jekyll/jekyll/issues/5663
{{ ppp }}

libffi.so.7: cannot open shared object file: No such file or directory

开始用软链接的方式,以前碰到过类似问题,能过去,但这次没不去。重新安装 ffi gems 会重新编译一遍依赖的ffi,问题解决。

➜  jekyll s
<internal:/usr/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require': libffi.so.7: cannot open shared object file: No such file or directory - 
...
...
...

➜  sudo ln /usr/lib/libffi.so -s /usr/lib/libffi.so.7

➜  jekyll s
<internal:/usr/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require': /usr/lib/libffi.so.7: version `LIBFFI_CLOSURE_7.0' not found (required by /home/
...
...
...


➜   gem install ffi

顺带学习了几个命令挺好

➜ pacman -Si libffi
➜ man ffi

https://bbs.archlinux.org/viewtopic.php?id=270587

https://github.com/libffi/libffi/blob/master/include/ffi.h.in https://github.com/libffi/libffi/blob/master/src/x86/ffi.c