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
Related
when i run gem install rails -v 5.1.4
I get the following error
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
bad response Forbidden 403 (http://api.rubygems.org/quick/Marshal.4.8/nokogiri-1.13.3-x64-unknown.gemspec.rz)
Thank you for your ahead of time!
I got this problem due to TWO factors:
I am running everything inside an M1 architecture
I am running gem install inside an rbenv controlled directory
I will assume you are in the same spot like me (Specially the M1 architecture).
I was able to install nokogiri (and other gems) by using the arch command:
$ arch -x86_64 gem install nokogiri
Successfully installed nokogiri-1.12.5-x86_64-darwin
Parsing documentation for nokogiri-1.12.5-x86_64-darwin
Done installing documentation for nokogiri after 2 seconds
1 gem installed
I hope it works for you too.
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
I want to install Ruby on Rails in my laptop using Ubuntu 18.04 LTS. I've installed Ruby, but when I trying to install Rails with sudo gem install rails, i'm getting error message
ERROR: While executing gem ... (Gem::RemoteFetcher::UnknownHostError)
no such name (https://api.rubygems.org/quick/Marshal.4.8/websocket- extensions-0.1.3.gemspec.rz)
Can anyone help me?
Disable IPv6 and retry. It should work.
What is going on when I get this "HTTP Response 403" error?
I am trying to setup Ruby on Rails on OS X 10.5.8 with XCode 3.1.4:
Boston:$ ruby --version
ruby 1.8.6 (2008-08-11 patchlevel 287) [universal-darwin9.0]
Boston:$ gem --version
1.0.1
Boston:$ sudo gem update --system
Password:
Updating RubyGems...
ERROR: While executing gem ... (Gem::RemoteSourceException)
HTTP Response 403 fetching http://gems.rubyforge.org/yaml
Boston:$ sudo gem install rubygems-update
ERROR: While executing gem ... (Gem::RemoteSourceException)
HTTP Response 403 fetching http://gems.rubyforge.org/yaml
I can't find a single specific reference online to the 403 error on OS X. I have tried adding alternate source repositories and I get the same error.
Solution Based on #Phil's Answer
I downloaded rubygems-1.3.5.zip from http://rubyforge.org/frs/?group_id=126 and unzipped the file.
Then I cd'd into the rubygems-1.3.5 directory and ran
Boston:rubygems-1.3.5$ sudo ruby setup.rb
RubyGems 1.3.5 installed
Thanks #Phil!
I just ran into this. I assume the gemcutter switchover broke old versions of rubygems (i.e. the version that comes with Leopard).
I fixed the problem by manually upgrading rubygems via http://rubyforge.org/frs/?group_id=126.
I'm following these instructions to set up Ruby on Rails on my Ubuntu machine. For now at least, I'm planning to use Mongrel.
When I get to this step:
sudo gem install rails
...I get this message:
Bulk updating Gem source index for: http://gems.rubyforge.org/
ERROR: could not find rails locally or in a repository
What should I do next?
I would try to update gems first. The latest version is 1.3.3. You can do this on Ubuntu by either:
sudo gem install rubygems-update
sudo update_rubygems
or
sudo gem install rubygems-update
cd /var/lib/gems/1.8/gems/rubygems-update-*
sudo ruby setup.rb
basically, try again!
It could be a serious error, but in earlier versions ( I encountered this about 1 year ago or so ) it happend on the first try and when trying again the gem would eventually be found. I think it had something to do with the servers performance or such.
Using a recent version of rubygems is probably a good idea, and if it really won't work you can always get the .gem file from sourceforge directly and install from it.
For example with the file rails-2.3.2.gem:
gem install rails-2.3.2 –local
gem install rails --source http://gems.rubyonrails.org