I am trying to install Blunder.
gem install Blunder
but I got this error
ERROR: Could not find a valid gem 'bundler' (>= 0), here is why:
Unable to download data from https://rubygems.org/ - Errno::ECONNREFUSED: Failed to open TCP connection to 127.0.0.1:1080 (No connection could be made because the target machine actively refused it. - connect(2) for "127.0.0.1" port 1080) (https://rubygems.org/specs.4.8.gz)
I tried fixing it from this url (Error installing Bundler) but noting solved.
more details:
I can accsess "https://rubygems.org/" url. (without using any proxy.)
I can download "https://rubygems.org/specs.4.8.gz"
I connected through some VPNs connections, but I got same error.
I tested update command . but I got this error
gem install rubygems-update
C:\Windows\System32>gem update --system
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
Errno::ECONNREFUSED: Failed to open TCP connection to 127.0.0.1:1080 (No connection could be made because the target machine actively refused it. - connect(2) for "127.0.0.1" port 1080) (https://rubygems.org/specs.4.8.gz)
I tested some other gem installation commands such as
gem update --system
gem install installer
C:\Windows\System32>gem install installer
ERROR: Could not find a valid gem 'installer' (>= 0), here is why:
Unable to download data from https://rubygems.org/ - Errno::ECONNREFUSED: Failed to open TCP connection to 127.0.0.1:1080 (No connection could be made because the target machine actively refused it. - connect(2) for "127.0.0.1" port 1080) (https://rubygems.org/specs.4.8.gz)
C:\Windows\System32> gem install rubygems-update
ERROR: Could not find a valid gem 'rubygems-update' (>= 0), here is why:
Unable to download data from https://rubygems.org/ - Errno::ECONNREFUSED: Failed to open TCP connection to 127.0.0.1:1080 (No connection could be made because the target machine actively refused it. - connect(2) for "127.0.0.1" port 1080) (https://rubygems.org/specs.4.8.gz)
result of "gem sources -a http://rubygems.org" command.
C:\WINDOWS\system32>gem sources -a http://rubygems.org
https://rubygems.org is recommended for security over http://rubygems.org
Do you want to add this insecure source? [yn] y
http://rubygems.org is too similar to https://rubygems.org
Do you want to add this source? [yn] y
Error fetching http://rubygems.org:
Errno::ECONNREFUSED: Failed to open TCP connection to 127.0.0.1:1080 (No connection could be made because the target machine actively refused it. - connect(2) for "127.0.0.1" port 1080) (http://rubygems.org/specs.4.8.gz)
result of "gem sources -r https://rubygems.org -a http://rubygems.org" command.
C:\WINDOWS\system32>gem sources -r https://rubygems.org -a http://rubygems.org
https://rubygems.org is recommended for security over http://rubygems.org
Do you want to add this insecure source? [yn]
https://rubygems.org is recommended for security over http://rubygems.org
Do you want to add this insecure source? [yn] y
http://rubygems.org is too similar to https://rubygems.org
Do you want to add this source? [yn] y
Error fetching http://rubygems.org:
Errno::ECONNREFUSED: Failed to open TCP connection to 127.0.0.1:1080 (No connection could be made because the target machine actively refused it. - connect(2) for "127.0.0.1" port 1080) (http://rubygems.org/specs.4.8.gz)
I installed last version of Ruby 2.7.1-1-x64 after installation I ran the 'ridk install' to setup MSY2 ..... but I saw one error
gpg: refreshing 8 keys from hkps://hkps.pool.sks-keyservers.net
gpg: keyserver refresh failed: General error
==> ERROR: A specified local key could not be updated from a keyserver.
Also, in the 'C:\Ruby26-x64\lib\ruby\2.6.0\win32\registry.rb" file. I set Local encoding from
LOCALE = Encoding.find(Encoding.locale_charmap)
to
LOCALE = Encoding::UTF_8
Thanks for any help.