gem install jekyll is failing on my Xubuntu 20.04. gcc / make and required dependencies are installed.
username@ubuntu:~$ sudo gem install jekyll Building native extensions. This could take a while... ERROR: Error installing jekyll: ERROR: Failed to build gem native extension. current directory: /var/lib/gems/2.7.0/gems/ffi-1.14.0/ext/ffi_c /usr/bin/ruby2.7 -I /usr/lib/ruby/2.7.0 -r ./siteconf20201219-8121-arp3mj.rb extconf.rb checking for ffi.h... no checking for ffi.h in /usr/local/include,/usr/include/ffi,/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/ffi,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/ffi... no checking for whether -Wl,--exclude-libs,ALL is accepted as LDFLAGS... yes creating extconf.h creating Makefile
Then mid the process, saw this things
Towards the end I saw these
/usr/bin/ld:libffi.map:15: syntax error in VERSION script collect2: error: ld returned 1 exit status make[3]: *** [Makefile:1069: libffi.la] Error 1 make[3]: Leaving directory '/var/lib/gems/2.7.0/gems/ffi-1.14.0/ext/ffi_c/libffi-x86_64-linux-gnu' make[2]: *** [Makefile:1348: all-recursive] Error 1 make[2]: Leaving directory '/var/lib/gems/2.7.0/gems/ffi-1.14.0/ext/ffi_c/libffi-x86_64-linux-gnu' make[1]: *** [Makefile:623: all] Error 2 make[1]: Leaving directory '/var/lib/gems/2.7.0/gems/ffi-1.14.0/ext/ffi_c/libffi-x86_64-linux-gnu' make: *** [libffi.mk:9: "/var/lib/gems/2.7.0/gems/ffi-1.14.0/ext/ffi_c/libffi-x86_64-linux-gnu"/.libs/libffi_convenience.a] Error 2 make failed, exit code 2
Any help would be appreciated.