Getting Error when installing Gem on Ruby Gem Installer

pan1

New member
Hi.. I am always getting error when installing Gem with Ruby Gem Installer on Cpanel menu. Here is the error
ERROR: While executing gem ... (OptionParser::InvalidOption) invalid option: -y.
Can you help me fix it?
 

un4saken

Administrator
It looks like this was due to the version of gems that was installed.

Code:
# rails -v
Rails 2.3.18
# ruby -v
ruby 1.8.7 (2013-06-27 patchlevel 374) [x86_64-linux]
# gem -v
2.3.0

To fix this I reinstalled ruby with defaults.

Code:
# gem -v
1.3.7
# rails -v
Rails 2.3.18
# ruby -v
ruby 1.8.7 (2013-06-27 patchlevel 374) [x86_64-linux]

Ruby Gems can now be installed.


Code:
The system is installing ?12_hour_time? ? Ruby Gem

INFO: `gem install -y` is now default and will be removed
INFO: use --ignore-dependencies to install only the gems you list
Successfully installed 12_hour_time-0.0.4
1 gem installed
Installing ri documentation for 12_hour_time-0.0.4...
Installing RDoc documentation for 12_hour_time-0.0.4...

Let me know If you have further problems.