[root@DBAMAXWELL ~]# gem install mongo
Building native extensions. This could take a while... ERROR: Error installing mongo: ERROR: Failed to build gem native extension. current directory: /usr/local/share/gems/gems/bson-4.14.1/ext/bson /usr/bin/ruby -r ./siteconf20220325-427526-vfnj46.rb extconf.rb mkmf.rb can't find header files for ruby at /usr/share/include/ruby.h extconf failed, exit code 1 Gem files will remain installed in /usr/local/share/gems/gems/bson-4.14.1 for inspection. Results logged to /usr/local/lib64/gems/ruby/bson-4.14.1/gem_make.out
Solution:
[root@DBAMAXWELL ~]# yum install ruby-devel
Last metadata expiration check: 1:48:48 ago on Fri 25 Mar 2022 05:54:43 PM CST. Dependencies resolved. =============================================================================================================================================================================================================== Package Architecture Version Repository Size =============================================================================================================================================================================================================== Installing: ruby-devel x86_64 2.5.9-109.module_el8.5.0+1097+b05a0601 appstream 126 k Transaction Summary =============================================================================================================================================================================================================== Install 1 Package Total download size: 126 k Installed size: 294 k Is this ok [y/N]: y Downloading Packages: [MIRROR] ruby-devel-2.5.9-109.module_el8.5.0+1097+b05a0601.x86_64.rpm: Curl error (28): Timeout was reached for http://centosg9.centos.org/centos/8-stream/AppStream/x86_64/os/Packages/ruby-devel-2.5.9-109.module_el8.5.0%2b1097%2bb05a0601.x86_64.rpm [Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds] ruby-devel-2.5.9-109.module_el8.5.0+1097+b05a0601.x86_64.rpm 1.6 kB/s | 126 kB 01:17 --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Total 1.6 kB/s | 126 kB 01:18 Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Installing : ruby-devel-2.5.9-109.module_el8.5.0+1097+b05a0601.x86_64 1/1 Running scriptlet: ruby-devel-2.5.9-109.module_el8.5.0+1097+b05a0601.x86_64 1/1 Verifying : ruby-devel-2.5.9-109.module_el8.5.0+1097+b05a0601.x86_64 1/1 Installed: ruby-devel-2.5.9-109.module_el8.5.0+1097+b05a0601.x86_64
Complete!
[root@DBAMAXWELL ~]# gem install mongo
Building native extensions. This could take a while…
Successfully installed bson-4.14.1
Fetching: mongo-2.17.0.gem (100%)
Successfully installed mongo-2.17.0
2 gems installed
[root@DBAMAXWELL ~]#
Building native extensions. This could take a while…
Successfully installed bson-4.14.1
Fetching: mongo-2.17.0.gem (100%)
Successfully installed mongo-2.17.0
2 gems installed
[root@DBAMAXWELL ~]#
Read More:
- How to Fix No default.conf file in conf.d after Installing Nginx
- [Solved] Centos7 Error: gcc: configure: error: in build‘: configure: error: no acceptable C compiler found in $PATH
- Solutions to errors in installing xunsearch engine in centos8.0
- CentOS/RHEL 7: How to Reinstall GRUB2 from Rescue Mode (EFI)
- How to Fix Linux sub process /usr/bin/dpkg returned an error code (1)
- [Solved] CentOS Use Yum to install dependency: error: rpmdb open failed
- Linux: How to Fix undefined reference to `itoa’
- CentOS: How to Solve Python File Run Error
- How to Fix error 28 from storage engine
- C# WPF Framework: How to Build Caliburn.Micro Quickly
- linux(aarch64): How to Fix kettle Startup Error Issue
- How to Fix Ubuntu(Linux) mount error(22)
- CentOS 8: No URLs in mirrorlist error [How to Solve]
- [Realtek sdk-4.4.1] RTL8198D How to Fix pptp/l2tp HW checksum error issue
- CentOS7 Failed to start LSB: Bring up/down networking [How to Solve]
- VScode Error: extension failed XHR Failed (Ubuntu Virtual Machine)
- How to Fix xterm Xt error: Can’t open display: xterm: DISPLAY is not set
- How to Fix Oracle listener error Linux error: 111: connection reused
- [Solved] Centos7 firewalld startup error: Failed to start firewalld.service: Unit is masked.
- [Solved] Exception in replication between CentOS virtual machine and host