WARNING: You don't have /home/catdroutlinux/.gem/ruby/3.0.0/bin in your PATH,
gem executables will not run.
Building native extensions. This could take a while...
ERROR: Error installing ffi:
ERROR: Failed to build gem native extension.
current directory: /home/catdroutlinux/.gem/ruby/3.0.0/gems/ffi-1.15.0/ext/ffi_c
/snap/bin/ruby -I /var/lib/snapd/snap/ruby/212/lib/ruby/3.0.0 -r ./siteconf20210421-63984-u5r48n.rb extconf.rb
extconf.rb failed
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/var/lib/snapd/snap/ruby/212/bin/$(RUBY_BASE_NAME)
--with-ffi_c-dir
--without-ffi_c-dir
--with-ffi_c-include
--without-ffi_c-include=${ffi_c-dir}/include
--with-ffi_c-lib
--without-ffi_c-lib=${ffi_c-dir}/lib
--enable-system-libffi
--disable-system-libffi
--with-libffi-config
--without-libffi-config
--with-pkg-config
--without-pkg-config
/var/lib/snapd/snap/ruby/212/lib/ruby/3.0.0/mkmf.rb:471:in try_do': The compiler failed to generate an executable file. (RuntimeError) You have to install development tools first. from /var/lib/snapd/snap/ruby/212/lib/ruby/3.0.0/mkmf.rb:564:intry_link0'
from /var/lib/snapd/snap/ruby/212/lib/ruby/3.0.0/mkmf.rb:582:in try_link' from /var/lib/snapd/snap/ruby/212/lib/ruby/3.0.0/mkmf.rb:684:intry_ldflags'
from /var/lib/snapd/snap/ruby/212/lib/ruby/3.0.0/mkmf.rb:1851:in pkg_config' from extconf.rb:9:insystem_libffi_usable?'
from extconf.rb:42:in `'
To see why this extension failed to compile, please check the mkmf.log which can be found here:
Gem files will remain installed in /home/catdroutlinux/.gem/ruby/3.0.0/gems/ffi-1.15.0 for inspection.
Results logged to /home/catdroutlinux/.gem/ruby/3.0.0/extensions/x86_64-linux/3.0.0/ffi-1.15.0/gem_make.out
I ran bundle install and got this:
WARNING: You don't have /home/catdroutlinux/.gem/ruby/3.0.0/bin in your PATH, gem executables will not run. Building native extensions. This could take a while... ERROR: Error installing ffi: ERROR: Failed to build gem native extension.
/snap/bin/ruby -I /var/lib/snapd/snap/ruby/212/lib/ruby/3.0.0 -r ./siteconf20210421-63984-u5r48n.rb extconf.rb extconf.rb failed Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options.
Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=/var/lib/snapd/snap/ruby/212/bin/$(RUBY_BASE_NAME) --with-ffi_c-dir --without-ffi_c-dir --with-ffi_c-include --without-ffi_c-include=${ffi_c-dir}/include --with-ffi_c-lib --without-ffi_c-lib=${ffi_c-dir}/lib --enable-system-libffi --disable-system-libffi --with-libffi-config --without-libffi-config --with-pkg-config --without-pkg-config /var/lib/snapd/snap/ruby/212/lib/ruby/3.0.0/mkmf.rb:471:in'
try_do': The compiler failed to generate an executable file. (RuntimeError) You have to install development tools first. from /var/lib/snapd/snap/ruby/212/lib/ruby/3.0.0/mkmf.rb:564:in
try_link0' from /var/lib/snapd/snap/ruby/212/lib/ruby/3.0.0/mkmf.rb:582:intry_link' from /var/lib/snapd/snap/ruby/212/lib/ruby/3.0.0/mkmf.rb:684:in
try_ldflags' from /var/lib/snapd/snap/ruby/212/lib/ruby/3.0.0/mkmf.rb:1851:inpkg_config' from extconf.rb:9:in
system_libffi_usable?' from extconf.rb:42:in `To see why this extension failed to compile, please check the mkmf.log which can be found here:
/home/catdroutlinux/.gem/ruby/3.0.0/extensions/x86_64-linux/3.0.0/ffi-1.15.0/mkmf.log
extconf failed, exit code 1
Gem files will remain installed in /home/catdroutlinux/.gem/ruby/3.0.0/gems/ffi-1.15.0 for inspection. Results logged to /home/catdroutlinux/.gem/ruby/3.0.0/extensions/x86_64-linux/3.0.0/ffi-1.15.0/gem_make.out