I had problems installing, for example fastlane with gem and I was unable to find a solution for this problem.
I ran the following:
$ gem install fastlane
Fetching atomos-0.1.3.gem
Fetching CFPropertyList-3.0.2.gem
Fetching claide-1.0.3.gem
Fetching slack-notifier-2.3.2.gem
Fetching rouge-2.0.7.gem
Fetching colored2-3.1.2.gem
Fetching nanaimo-0.3.0.gem
Fetching xcodeproj-1.18.0.gem
Fetching xcpretty-0.3.0.gem
Fetching terminal-notifier-2.0.0.gem
Fetching unicode-display_width-1.7.0.gem
Fetching terminal-table-1.8.0.gem
Fetching plist-3.5.0.gem
Fetching public_suffix-4.0.6.gem
Fetching addressable-2.7.0.gem
Fetching multipart-post-2.0.0.gem
Fetching word_wrap-1.0.0.gem
Fetching tty-screen-0.8.1.gem
Fetching tty-cursor-0.7.1.gem
Fetching tty-spinner-0.9.3.gem
Fetching babosa-1.0.3.gem
Fetching colored-1.2.gem
Fetching highline-1.7.10.gem
Fetching commander-fastlane-4.4.6.gem
Fetching excon-0.76.0.gem
Fetching faraday-1.0.1.gem
Fetching unf-0.1.4.gem
Fetching domain_name-0.5.20190701.gem
Fetching http-cookie-1.0.3.gem
Fetching faraday-cookie_jar-0.0.7.gem
Fetching faraday_middleware-1.0.0.gem
Fetching fastimage-2.2.0.gem
Fetching gh_inspector-1.1.3.gem
Fetching mini_magick-4.10.1.gem
Fetching rubyzip-2.3.0.gem
Fetching security-0.1.3.gem
Fetching xcpretty-travis-formatter-1.0.0.gem
Fetching dotenv-2.7.6.gem
Fetching bundler-2.1.4.gem
Fetching naturally-2.2.0.gem
Fetching simctl-1.6.8.gem
Fetching jwt-2.2.2.gem
Fetching declarative-option-0.1.0.gem
Fetching declarative-0.0.20.gem
Fetching uber-0.1.0.gem
Fetching representable-3.0.4.gem
Fetching retriable-3.1.2.gem
Fetching mini_mime-1.0.2.gem
Fetching multi_json-1.15.0.gem
Fetching signet-0.14.0.gem
Fetching memoist-0.16.2.gem
Fetching os-1.1.1.gem
Fetching googleauth-0.13.1.gem
Fetching httpclient-2.8.3.gem
Fetching google-api-client-0.38.0.gem
Fetching google-cloud-env-1.3.3.gem
Fetching google-cloud-errors-1.0.1.gem
Fetching google-cloud-core-1.5.0.gem
Fetching rake-13.0.1.gem
Fetching digest-crc-0.6.1.gem
Fetching google-cloud-storage-1.29.1.gem
Fetching emoji_regex-3.0.0.gem
Fetching jmespath-1.4.0.gem
Fetching aws-partitions-1.380.0.gem
Fetching fastlane-2.162.0.gem
Fetching aws-eventstream-1.1.0.gem
Fetching aws-sigv4-1.2.2.gem
Fetching aws-sdk-core-3.109.1.gem
Fetching aws-sdk-kms-1.39.0.gem
Fetching aws-sdk-s3-1.83.0.gem
WARNING: You don't have /home/bastian/.gem/ruby/2.7.0/bin in your PATH,
gem executables will not run.
Successfully installed slack-notifier-2.3.2
Successfully installed atomos-0.1.3
Successfully installed CFPropertyList-3.0.2
Successfully installed claide-1.0.3
Successfully installed colored2-3.1.2
Successfully installed nanaimo-0.3.0
Successfully installed xcodeproj-1.18.0
Successfully installed rouge-2.0.7
Successfully installed xcpretty-0.3.0
Successfully installed terminal-notifier-2.0.0
Successfully installed unicode-display_width-1.7.0
Successfully installed terminal-table-1.8.0
Successfully installed plist-3.5.0
Successfully installed public_suffix-4.0.6
Successfully installed addressable-2.7.0
Successfully installed multipart-post-2.0.0
Successfully installed word_wrap-1.0.0
Successfully installed tty-screen-0.8.1
Successfully installed tty-cursor-0.7.1
Successfully installed tty-spinner-0.9.3
Successfully installed babosa-1.0.3
Successfully installed colored-1.2
Successfully installed highline-1.7.10
Successfully installed commander-fastlane-4.4.6
Successfully installed excon-0.76.0
Successfully installed faraday-1.0.1
Building native extensions. This could take a while...
ERROR: Error installing fastlane:
ERROR: Failed to build gem native extension.
current directory: /home/bastian/.gem/ruby/2.7.0/gems/unf_ext-0.0.7.7/ext/unf_ext
/usr/bin/ruby -I /usr/lib/ruby/2.7.0 -r ./siteconf20201006-111535-rn8bp2.rb extconf.rb
checking for -lstdc++... *** 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=/usr/bin/$(RUBY_BASE_NAME)
--with-static-libstdc++
--without-static-libstdc++
--with-stdc++-dir
--without-stdc++-dir
--with-stdc++-include
--without-stdc++-include=${stdc++-dir}/include
--with-stdc++-lib
--without-stdc++-lib=${stdc++-dir}/lib
--with-stdc++lib
--without-stdc++lib
/usr/lib/ruby/2.7.0/mkmf.rb:471:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
You have to install development tools first.
from /usr/lib/ruby/2.7.0/mkmf.rb:564:in `try_link0'
from /usr/lib/ruby/2.7.0/mkmf.rb:582:in `try_link'
from /usr/lib/ruby/2.7.0/mkmf.rb:801:in `try_func'
from /usr/lib/ruby/2.7.0/mkmf.rb:1029:in `block in have_library'
from /usr/lib/ruby/2.7.0/mkmf.rb:971:in `block in checking_for'
from /usr/lib/ruby/2.7.0/mkmf.rb:361:in `block (2 levels) in postpone'
from /usr/lib/ruby/2.7.0/mkmf.rb:331:in `open'
from /usr/lib/ruby/2.7.0/mkmf.rb:361:in `block in postpone'
from /usr/lib/ruby/2.7.0/mkmf.rb:331:in `open'
from /usr/lib/ruby/2.7.0/mkmf.rb:357:in `postpone'
from /usr/lib/ruby/2.7.0/mkmf.rb:970:in `checking_for'
from /usr/lib/ruby/2.7.0/mkmf.rb:1024:in `have_library'
from extconf.rb:6:in `<main>'
To see why this extension failed to compile, please check the mkmf.log which can be found here:
/home/bastian/.gem/ruby/2.7.0/extensions/x86_64-linux/2.7.0/unf_ext-0.0.7.7/mkmf.log
extconf failed, exit code 1
Gem files will remain installed in /home/bastian/.gem/ruby/2.7.0/gems/unf_ext-0.0.7.7 for inspection.
Results logged to /home/bastian/.gem/ruby/2.7.0/extensions/x86_64-linux/2.7.0/unf_ext-0.0.7.7/gem_make.out
It seems that there is a problem finding libstdc++, but it is installed here:
$ pacman -Ss stdc++
extra/libstdc++5 3.3.6-7 [installed]
GNU Standard C++ library version 3
I also installed gcc:
$ LANG=C pacman -Ss gcc
core/gcc 10.2.0-2 (base-devel) [installed]
The GNU Compiler Collection - C and C++ frontends
core/gcc-ada 10.2.0-2
Ada front-end for GCC (GNAT)
core/gcc-d 10.2.0-2
D frontend for GCC
core/gcc-fortran 10.2.0-2
Fortran front-end for GCC
core/gcc-go 10.2.0-2
Go front-end for GCC
core/gcc-libs 10.2.0-2 [installed]
Runtime libraries shipped by GCC
core/gcc-objc 10.2.0-2
Objective-C front-end for GCC
core/lib32-gcc-libs 10.2.0-2 (multilib-devel) [installed]
32-bit runtime libraries shipped by GCC
extra/libgsystem 2015.2+4+gd606bec-3
"Copylib" for system service modules using GLib with GCC
community/aarch64-linux-gnu-gcc 10.2.0-1
The GNU Compiler Collection - cross compiler for ARM64 target
community/arduino-avr-core 1.8.3-1
Arduino AVR core with upstream avr-gcc and avrdude
community/arm-none-eabi-gcc 10.2.0-1
The GNU Compiler Collection - cross compiler for ARM EABI (bare-metal) target
community/avr-gcc 10.2.0-1
The GNU AVR Compiler Collection
community/colorgcc 1.4.5-2
A Perl wrapper to colorize the output of compilers with warning/error messages matching the gcc output format
community/gcc8 8.4.0-1
The GNU Compiler Collection - C and C++ frontends (8.x.x)
community/gcc8-fortran 8.4.0-1
Fortran front-end for GCC (8.x.x)
community/gcc8-libs 8.4.0-1
Runtime libraries shipped by GCC (8.x.x)
community/gcc9 9.3.0-3
The GNU Compiler Collection - C and C++ frontends (9.x.x)
community/gcc9-fortran 9.3.0-3
Fortran front-end for GCC (9.x.x)
community/gcc9-libs 9.3.0-3 [installed]
Runtime libraries shipped by GCC (9.x.x)
community/ghdl-gcc 0.37-9
VHDL simulator (GCC backend)
community/lm32-elf-gcc 10.1.0-1
The GNU Compiler Collection - cross compiler for LatticeMico32 (bare-metal) target
community/mingw-w64-gcc 10.2.0-1 (mingw-w64-toolchain mingw-w64)
Cross GCC for the MinGW-w64 cross-compiler
community/nds32le-elf-gcc 10.1.0-1
The GNU Compiler Collection - cross compiler for Andes 32 little-endian (bare-metal) target
community/or1k-elf-gcc 10.1.0-1
The GNU Compiler Collection - cross compiler for OpenRISC 1000 (bare-metal) target
community/riscv64-elf-gcc 10.1.0-1
The GNU Compiler Collection - cross compiler for RISCV64 (bare-metal) target
community/riscv64-linux-gnu-gcc 10.2.0-1 (risc-v)
Cross compiler for 32-bit and 64-bit RISC-V
Does anybody have an idea what is going wrong here?