How to install Compass on Windows

hsnGunda picture hsnGunda · Dec 4, 2012 · Viewed 38.5k times · Source

I have installed Ruby on my system, and now I want to install Compass. But when I execute the gem install compass command, it shows an error like this:

could not find valid gem 'compass' <>=0> in any repositary

And also:

SocketError: getadressinfo: no such host is known.<http://rubygems.org/latest_specs.4.8.gz>

I don't know what the problem is. If I run ruby -v, it shows the Ruby version. So what's the problem with installing Compass?

Can anyone explain this to me properly? I've searched Google, but all I could find was some proxy problem - and I couldn't understand how to set the proxy at all.

I'm using Windows and a company internet connection, so I don't know the username and password of my proxy.

Answer

Shiyaz picture Shiyaz · Aug 6, 2014

I was behind a proxy and HumberFrench's solution above helped:

Go to Ruby bin folder:

cd c:/Ruby193/bin

And then install compass gem:

gem install compass --http-proxy http://<proxy_adreess>:<port_of_proxy>

Another tip: am on Aptana Studio, so this could be run from within Aptana's terminal.

Cant up-vote so adding this here.