Friday, October 5, 2012

gem can not install anything and display While executing gem ... (ArgumentError) wrong number of arguments "(2 for 1)"

gem can not install any thing and always display the following message:

-error message

#gem install bundler
While executing gem ... (ArgumentError)     wrong number of arguments "(2 for 1)"


-Solution

install ruby 1.9.1
install rubygems 1.8.24


debian:~/rubygems-1.8.24# gem install bundler
Fetching: bundler-1.2.1.gem (100%)
Successfully installed bundler-1.2.1
1 gem installed
Installing ri documentation for bundler-1.2.1...
Updating class cache with 1382 classes...
Installing RDoc documentation for bundler-1.2.1..


to install ruby 1.9.1 follow the links below

http://hypernethost.org/web/en/install-ruby-1-9-in-centos-6/

1 comment: