Error retrieving data: Errno :: ENETUNREACH: A socket operation was attempted on an unavailable network. Error installing gem

I am new to Ruby on rails. My end is PostgreSql. When I try to install postgre sql with the command

$ gem install pg $ gem install ruby-postgres 

I get the following error.

 WARNING: Error fetching data: Errno::ENETUNREACH: A socket operation was attempted to an unreachable network. - connect(2) (http://rubygems.org/l atest_specs.4.8.gz) ERROR: Could not find a valid gem 'pg' (>= 0) in any repository ERROR: Possible alternatives: pg 

I am using the eclipse IDE on the Windows 7 platform. I installed the proxy using the following command

 $ http_proxy="http:/192.168.xx.xxx:xxxx" 

But it still does not work. My affection, where is this , this and this

+4
source share
1 answer

$ http_proxy="http:/192.168.xx.xxx:xxxx"

Try:

 $ http_proxy="http://192.168.xx.xxx:xxxx" 
0
source

Source: https://habr.com/ru/post/1499076/


All Articles