I've installed ruby 2.3.3 on my system. Now, I'm trying to install sass but the following error is raising:
C:\>gem -v
2.5.2
C:\>gem install sass
ERROR: While executing gem ... (Errno::ENETRESET)
The connection has been broken due to keep-alive
e while the operation was in progress. - recvfrom(2)
Does anyone know how to fix it?
Related
I am trying to install sass on my Windows 10 PC using cli by typing command.
gem install sass
But after little delay it throws below error.
ERROR: Could not find a valid gem 'sass' (>= 0), here is why: Unable to download data from https://rubygems.org/ - timed out (https://api.rubygems.org/specs.4.8.gz)
Ruby is installed in my PC version is:
ruby 2.5.0p0 (2017-12-25 revision 61468) [x64-mingw32]
Gem version is 2.7.3
Try installing all the sources first by running the below command:
gem sources -a http://rubygems.org/
If the error persists, try removing the proxy. Your proxy server might be blocking the request.
When I run
$ vagrant plugin install vagrant-libvirt
on Ubuntu 14.04 I get following error message:
Installing the 'vagrant-libvirt' plugin. This can take a few minutes...
Bundler, the underlying system Vagrant uses to install plugins,
reported an error. The error is shown below. These errors are usually
caused by misconfigured plugin installations or transient network
issues. The error from Bundler is:
An error occurred while installing rack (2.0.1), and Bundler cannot continue.
Make sure that `gem install rack -v '2.0.1'` succeeds before bundling.
Gem::InstallError: rack requires Ruby version >= 2.2.2.
The version numbers in this error message are a bit misleading thou, because I've got ruby 2.3.3 installed via ppa:brightbox/ruby-ng
$ ruby --version
ruby 2.3.3p222 (2016-11-21 revision 56859) [x86_64-linux-gnu]
Running the gem command from the error message fails because of insufficient privileges:
gem install rack -v '2.0.1'
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /var/lib/gems/2.3.0 directory.
As superuser it works fine:
$ sudo gem install rack -v '2.0.1'
Successfully installed rack-2.0.1
Parsing documentation for rack-2.0.1
Done installing documentation for rack after 1 seconds
1 gem installed
Thou running sudo vagrant plugin install vagrant-libvirt still fails with the same error message.
What's going on here? How can in get this to work?
I can't install latest Compass 1.0.1 on Ubuntu 14.04.
$ ruby --version
ruby 2.0.0p384 (2014-01-12) [i386-linux-gnu]
$ gem --version
2.0.14
I'm doing:
$ sudo gem install compass -v 1.0.1
The first error in the log is this:
ERROR: Error installing compass:
ERROR: Failed to build gem native extension.
And here's the full log:
https://gist.github.com/slavafomin/055394e379e8252bab9e
I'm installing Ruby via this packages:
ruby2.0
ruby2.0-dev
I even tried to install Ruby via RVM, but I'm getting the same error.
What could be the problem?
Is it possible to install latest version of Compass on Ubuntu 14.04 without RVM?
It looks like problem is actually with ffi extension.
When I've tried to install ffi manually with this command: sudo gem install ffi, it failed with the same error as above. However, when I've specified latest stable version like this: sudo gem install ffi -v 1.9.6 it installed correctly. After that Compass installed like a charm.
I will leave it here if someone will encounter this problem in the future.
Also, this Q/A could be useful:
ERROR: Error installing ffi: ERROR: Failed to build gem native extension
I've posted an issue on FFI's GitHub repository:
https://github.com/ffi/ffi/issues/414
C:\Ruby193>gem install watir
ERROR: While executing gem ... (Errno::EINVAL)
Invalid argument - C:/Ruby193/lib/ruby/gems/1.9.1/gems/mini_magick-3.6.0/tes
t/files/special! "chars'.gif
error while installing ruby gem.
This is due to a bug in the mini_magick gem - see Issue 145. While the issue has been fixed, a new release not yet been released.
You can try getting the unreleased version of mini_magick, though it is probably easier to just use the older version.
Manually install mini_magick (previous version), then install watir:
gem install mini_magick -v 3.5
gem install watir
I have installed Instant Rails 2.0. While trying to upgrade RubyGems I run the command gem install update. It fails giving following error.
C:\Users\Owner\Downloads\InstantRails-2.0-win\rails_apps>gem install update
ERROR: While executing gem ... (Gem::RemoteSourceException)
HTTP Response 302 fetching http://gems.rubyforge.org/yaml
Also it is giving same error while executing gem update -- system. or any other gem command.
Try to install a more recent gem version from http://gems.rubyforge.org/