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
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 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
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.
I am using RVM and Homebrew on OS X Mavericks. JRuby 1.7.6 installs, but I cannot install any gems. I believe that JRuby comes with a semi-complete version of openssl. I have tried using http for gem sources, and even downloaded the gem for a local install. I see this same error regardless of gem locality or gem source.
$ jruby -S gem install bundler --trace
ERROR: Loading command: install (LoadError)
load error: openssl -- java.lang.IncompatibleClassChangeError: Implementing class
ERROR: While executing gem ... (NoMethodError)
undefined method `invoke_with_build_args' for nil:NilClass
Others Rubies (1.8.7, 1.9.3, 2.0.0) are working without issue in RVM.
You need to use the ruby first:
rvm use jruby-1.7.6
It will ensure all jruby gems are available for it.
Is there a proxy blocking your access to the gemserver?
jruby -S gem source --add http://rubygems.org?