#!/usr/bin/env bash # # Install Ruby and GTK3 on linux (Fedora 23) # # Currently unable to install ruby gems, as it give the following error: # ERROR: Error installing gtk3: # ERROR: Failed to build gem native extension. # # Looking into the log files (~/.gem/ruby/extensions/x86_64-linux/nokogiri-1.6.7.1/mkmf.log) # Shows the following error: # gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory # # Found a fix for this bug on the Ironic bugtracker on launchpad: # https://bugs.launchpad.net/ironic/+bug/1527614 # which basically says to install redhat-rpm-config # # install ruby sudo dnf install ruby-devel # install gtk3 sudo dnf install gtk3-devel # install rpm-config to fix error in gtk3 gem installation: sudo dnf install redhat-rpm-config # install the gtk3 ruby gem gem install gtk3
Comments