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.
Related
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'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?
I am beginner in ruby and wanted to install and GUI toolkit. So i surfed web and found shoes was one toolkit so i downloaded the ".install" file it didn't work saying some permission error, then i downloaded the older version which was ".run" format and that too didn't work so i found a gem of shoes when i try to download i get the below in ruby. i downloaded this shoes from git and still facing some error.
root#Drona:/home/naren/shoes4# gem install bundler && bundle install
Successfully installed bundler-1.10.5
1 gem installed
Installing ri documentation for bundler-1.10.5...
Installing RDoc documentation for bundler-1.10.5...
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all
non-root users on this machine.
Fetching gem metadata from https://rubygems.org/............
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
Resolving dependencies....
Using rake 10.4.2
Using addressable 2.3.8
Using after_do 0.3.1
Using ast 2.0.0
Using parser 2.2.2.6
Using astrolabe 1.3.0
Using benchmark-ips 2.2.0
Using bouncy-castle-java 1.5.0147
Using docile 1.1.5
Installing json 1.8.3 with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/usr/bin/ruby1.9.1 extconf.rb
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- mkmf (LoadError)
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from extconf.rb:1:in `<main>'
Gem files will remain installed in /var/lib/gems/1.9.1/gems/json-1.8.3 for inspection.
Results logged to /var/lib/gems/1.9.1/gems/json-1.8.3/ext/json/ext/generator/gem_make.out
An error occurred while installing json (1.8.3), and Bundler cannot continue.
Make sure that `gem install json -v '1.8.3'` succeeds before bundling.
the above is the terminal output.
Ruby version installed is :
ruby 1.9.3p484 (2013-11-22 revision 43786) [x86_64-linux]
someone help we out with this installation
and if i have done anything wrong in installation of shoes then let me know
From your terminal directory it seems like you are trying to install shoes4 on ruby 1.9.3. To install shoes4 you need JRuby and a JDK - please follow the instructions in the readme
Shoes 3 can't be installed through gem install due to the way it was built. For Shoes 3 you need the install script, I recommend the appropriate Shoes 3.2 version from this page. If this fails with some error please let us know the error so we can help :)
You should use the gem program to install shoes. If on your command line you type gem install shoes you should be fine.
to use it in an app, you would need to create a Gemfile and run Bundle install within your folder
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/