In Progress [CPANEL-21319] Legacy RubyGems interfaces are not functional in Centos 7

deddy

Well-Known Member
Oct 13, 2003
143
1
168
cPanel Ruby Gems
Install a Ruby Gem
Installing Ruby Gem “compass”.
ERROR: While executing gem ... (OptionParser::InvalidOption) invalid option: -y
Installing Ruby Gem “bundler”.
ERROR: While executing gem ... (OptionParser::InvalidOption) invalid option: -y
... and so on.

This cPanel feature is not working.
All users are affected
EA4 CentOS7.6 v76.0.13

How can I fix this Problem ?
Thanks.
 

deddy

Well-Known Member
Oct 13, 2003
143
1
168
Hello @deddy,

Can you let me know which option you are using to reproduce that error message? Ensure to review the information on the following document:

How to Create Ruby Web Applications - cPanel Knowledge Base - cPanel Documentation

Thank you.
cPanel --> RubyGems -->Installing Ruby Gem "bundler"

cPanel version v76.0. killed this option.
cPanel version v70.0.62 is still fine in case of RubyGems

RubyGems is now legacy, but I think it would have been better to remove the button before intentionally destroying the function.

Thank you.
 

cPanelMichael

Technical Support Community Manager
Staff member
Apr 11, 2011
47,911
2,234
363
cPanel Access Level
DataCenter Provider
Twitter
RubyGems is now legacy, but I think it would have been better to remove the button before intentionally destroying the function.
Hello @deddy,

This was not intentional. It looks like Centos 7 began shipping RubyGems version 2.0. This version removes the "-y" option from the gem utility and thus results in failed calls from the deprecated Ruby interfaces in cPanel (the legacy interfaces invoke the "-y" option).

Internal case CPANEL-21319 is open to address this issue, however I don't have a specific time frame to offer on a solution at this time. It's possible the solution will be to remove the legacy interfaces from the UI completely. I'll monitor this case and update this thread with more information as it becomes available.

In the meantime, the recommended workaround is to follow the instructions at:

How to Create Ruby Web Applications - cPanel Knowledge Base - cPanel Documentation

Thank you.