I'm trying to install rails on windows7. Rails not getting installed
gem sources --add http://rubygems.org commands throws error like Error fetching http://rubygems.org timed out http://API.rubygems.org/specs.4.8.gz
Can anyone help me resolve this.
This could be solved by updating your rubygems to latest version.
gem update --system
Finally I resolved this error by adding http://rubygejs.org/ to .gemrc.
Related
I'm trying to install rails -v 5.2.2 on wsl ubuntu 18.04.
Im met with following error:
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
bad response Forbidden 403 (https://api.rubygems.org/quick/Marshal.4.8/nokogiri-1.13.3-x64-unknown.gemspec.rz)
I'm relatively new to bash and I'm not sure what to do at this point, as google failed me. Help? :)
I had the same issue with -v 5.2.3. What worked for me was updating RubyGems with:
gem update --system
Then again:
gem install rails --version 5.2.3
and no issues this time.
Solution 1: As proposed by #Unixmonkey downloading the gem on separate machine with no restrictions and copying the gemfile worked.
Solution 2: Installing ruby through RVM and trusting its certificates
While installing
gem install rails -v 4.2.10 --source https://rubygems.org
on mac monterey getting error:
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
bad response Forbidden 403 (http://api.rubygems.org/quick/Marshal.4.8/nokogiri-1.13.1-x64-unknown.gemspec.rz)
I had the same issue. M1 Mac, while setting up to run Ruby 2.5.1 and an older Rails app.
I followed these steps from a Github comment:
gem update --system
xcode-select --install (didn't need to do this, though it was a listed step)
gem install nokogiri
bundle install
Upon trying to start a new Rails App on Linux, I am receiving this error:
I am a newbie to this software. Please help!
Thanks :)
My Error
UPDATE: I ran 'sudo gem install bundler', and it worked but now received this error!
'/usr/bin/ruby2.3: No such file or directory -- /usr/bin/bundle (LoadError)'
My new error
It seems like you dont have bundler gem installed.
Try:
gem install bundler
Bundler is missing.
Try the below commands.
[sudo] gem install bundler
bundle install
Try stop using sudo in your commands. According to your new capture, you are using sudo with gem install bundler, and maybe that is conflicting with your configuration.
Take this link for reference for sudo usage with gem
https://stackoverflow.com/a/2119413/4870465
I wanna export xlsx excel file using ruby in ROR so i'm install rubyXL. i use this command:
sudo gem install rubyXL --source http://rubygems.org and then it have error like below
ERROR: Could not find a valid gem 'rubyXL' (>= 0), here is why:
Unable to download data from http://rubygems.org/ - Errno::ETIMEDOUT: Connection timed out - connect(2) (http://rubygems.org/latest_specs.4.8.gz)
Please help me
Disabling ipv6 solved the issue for me:
https://www.configserverfirewall.com/ubuntu-linux/ubuntu-disable-ipv6/
Specify the source with the command,
gem install <gem_name> --source http://rubygems.org
Try to update rubygems and try again.
gem update --system
Rebooting my laptop solved the issue for me.
hiii
i am trying to update my gem file. Current version of gem is 1.8.5
When i am trying to update it using command " gem install rubygems-update -v 1.8.5 " it is giving following error
**
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
SocketError: getaddrinfo: Name or service not known
(http://rubygems.org/gems/rubygems-update-1.8.5.gem)
**
I am working on ubuntu 10.04
also i tried to update using command " gem update --system "
it is giving the error as below
Updating rubygems-update
**
ERROR: While executing gem ... (Gem::GemNotFoundException)
Could not find a valid gem 'rubygems-update' (1.8.6) locally or in
a repository
**
i also tried the solution given on the link http://lightyearsoftware.com/2009/07/updating-rubygems-to-recent-1-3-x/
please help me to resolve the problem..
If you are under Windows 7, run the command prompt as Administrator.
Read this thread. The error reported is the same of yours.
Try to apply the Google DNS configuration to your connection.
Otherwise you can try to install locally the gem, downloading it on rubygems.org. After this, in the directory you downloaded the gem, try to install it locally with the command: gem install gem_name --local
I also had this error. I resolved it with
gem uninstall rubygems-update
(you may need to be sudo) and then reinstalled with
gem install rubygems-update
now it's working fine, hope this is helpful
Try this:
Manually uninstall the gem you want to remove: gem uninstall [gemToUinistall]
Download the gem manually from http://rubygems.org/
try to install the gem from local : gem install [gemToInstall]