I install jekyll-docs on windows using gem install jekyll-docs
it returns:
Successfully installed jekyll-docs-3.0.1
Parsing documentation for jekyll-docs-3.0.1
Installing ri documentation for jekyll-docs-3.0.1
ERROR: While executing gem ... (NoMethodError)
undefined method `intern' for []:Array
then I run jekyll docsthen it returns:
Invalid command. Use --help for more information
This is a ruby install problem.
To get around this you can try gem install jekyll-docs --no-rdoc --no-ri
Related
I'm not able to do gem install of any gem. When I try I get following error message
ERROR: Loading command: install (LoadError)
cannot load such file -- socket
ERROR: While executing gem ... (NoMethodError)
undefined method `invoke_with_build_args' for nil:NilClass
I use MacOS and rvm for versioning. Also, of note is that reinstall of ruby with openssl didn't work (which is referred as a solution for this problem on some answers on the internet).
Try this:
1. gem install bundler
2. bundle install
I'm going through a server setup guide and I'm trying to download rubygems:
gem update --system
I am on version 2.2.2 of ruby gems, version 2.1.2p95 of ruby, and ubuntu 14.04, but it doesn't appear to be working. Looking further into this, I found an alternative to the command
here on their official site.
However, when I run:
~/ruby-src/ruby-2.1.2$ sudo gem install rubygems-update
I'm still getting the same error which is:
ERROR: Loading command: install (LoadError)
cannot load such file -- zlib
ERROR: While executing gem ... (NoMethodError)
undefined method `invoke_with_build_args' for nil:NilClass
I am trying to run 'gem specific_install' (https://github.com/rdp/specific_install) to install another gem from a Github repository:
sudo gem specific_install https://github.com/RemoteRepository/foo_gem.git
After being prompted for my Github Username and password, I am able to download the gem. However, I get the following error:
ERROR: While executing gem ... (NoMethodError)
undefined method `build' for Gem::Package:Module
Apparently, other people have the same error based on a comment to a specific_install related answer to this question: How to install gem from GitHub source?
How can this error be resolved?
According to this issue this is due to an outdated version of gem (rubygems).
Updating gem should fix it, if you are using rvm you should run rvm rubygems current (this worked for me), if you are not using rvm I believe you should follow How to upgrade rubygems.
I seem unable to install any gems. When I try something like sudo gem install rails or sudo gem install rdiscount I get the following errors:
ERROR: Loading command: install (LoadError)
cannot load such file -- zlib
ERROR: While executing gem ... (NoMethodError)
undefined method `invoke_with_build_args` for nil:NilClass
Can anyone please help me figure out the cause of this problem?
It seems this you have not installed all required libs for. the ruby works, either install it for the debian, or use rvm and install ruby version you need with it from sources.
When I run gem env, I get the following error:
Error loading RubyGems plugin "/home/chenge/.rvm/gems/ruby-1.9.2-p320#global/gems/rubygems-bundler-0.9.2/lib/rubygems_plugin.rb": undefined method `first' for #<String:0x8ec8670> (NoMethodError)
Could anybody help me to understand what this means? Thanks.
gem clean
Cleaning up installed gems...
Attempting to uninstall rvm-1.11.3.3
Unable to uninstall rvm-1.11.3.3:
Gem::InstallError: gem "rvm" is not installed
Attempting to uninstall rubygems-bundler-0.9.2
Unable to uninstall rubygems-bundler-0.9.2:
Gem::InstallError: gem "rubygems-bundler" is not installed
Attempting to uninstall bundler-1.1.3
Unable to uninstall bundler-1.1.3:
Gem::InstallError: gem "bundler" is not installed
Clean Up Complete
Your rubygems-bundler is out-date(0.9.2), install the latest version(1.1.0) will fix that.
$ gem clean
$ gem install rubygems-bundler
I tried on my EC2 instance, it works.
the problem may be caused by:
incorrectly installed Ruby
incorrectly installed RubyGem
incorrectly installed RVM
I suggest you remove the rubygem entirely. ( rm /home/chenge/.rvm/gems -rf ) and then download the latest rubygem then re-install it.