4

我是 Ruby on rails 的新手。我的后端是 PostgreSql。当我尝试使用命令安装 postgre sql

$ gem install pg
$ gem install ruby-postgres 

我收到以下错误。

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

我在 Windows 7 平台上使用 Eclipse IDE。我已使用以下命令设置代理

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

但它仍然无法正常工作。我的朋友在哪里这个,这个这个

4

1 回答 1

0

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

尝试:

$ http_proxy="http://192.168.xx.xxx:xxxx"
于 2013-08-27T06:29:08.580 回答