• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Resolved Unable to install ruby gem

hardbrasil

Regular Pleskian
Hello fellas,

we are unable to install other gems on server. We already tried to downgrade Ruby version...

[root@admin httpdocs]# gem install mechanize -v 2.7.4
Building native extensions. This could take a while...
ERROR: Error installing mechanize:
ERROR: Failed to build gem native extension.

/usr/bin/ruby extconf.rb
mkmf.rb can't find header files for ruby at /usr/share/include/ruby.h


Gem files will remain installed in /usr/local/share/gems/gems/unf_ext-0.0.7.2 for inspection.
Results logged to /usr/local/share/gems/gems/unf_ext-0.0.7.2/ext/unf_ext/gem_make.out
 
Hi hardbrasil,

:rolleyes: which OPERATING SYSTEM are you using, please?

For CentOS/RHEL - bases systems, you would use the command: yum install ruby-devel
For Debian/Ubuntu - based systems, you would use the command: apt-get install ruby-dev

In addition, it would really help if you provide informations about your ruby - package version, if you still experience issues. Pls. always remember, the more information you provide, the better will be suggestions from people willing to help you and due to the fact, that Plesk supports different operating systems, always keep in mind, that people willing to help you can't guess what you are using. ;)
 
Hello @UFHH01
i am using centos 7 with plesk 17. As i understand the installation of ruby was trought panel. and has v2.3
should i execute your command as well?

thsk
 
Back
Top