Advertisement
markruff

ruby gtk3 gem installation

Jan 1st, 2016
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.84 KB | None | 0 0
  1. #!/usr/bin/env bash
  2. #
  3. # Install Ruby and GTK3 on linux (Fedora 23)
  4. #
  5. # Currently unable to install ruby gems, as it give the following error:
  6. # ERROR:  Error installing gtk3:
  7. # ERROR: Failed to build gem native extension.
  8. #
  9. # Looking into the log files (~/.gem/ruby/extensions/x86_64-linux/nokogiri-1.6.7.1/mkmf.log)
  10. # Shows the following error:
  11. # gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory
  12. #
  13. # Found a fix for this bug on the Ironic bugtracker on launchpad:
  14. # https://bugs.launchpad.net/ironic/+bug/1527614
  15. # which basically says to install redhat-rpm-config
  16. #
  17.  
  18.  
  19. # install ruby
  20. sudo dnf install ruby-devel
  21.  
  22. # install gtk3
  23. sudo dnf install gtk3-devel
  24.  
  25. # install rpm-config to fix error in gtk3 gem installation:
  26. sudo dnf install redhat-rpm-config
  27.  
  28. # install the gtk3 ruby gem
  29. gem install gtk3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement