Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install Compass on Windows

Tags:

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.

like image 457
hsnGunda Avatar asked Dec 04 '12 12:12

hsnGunda


2 Answers

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.

like image 181
Shiyaz Avatar answered Sep 18 '22 14:09

Shiyaz


I had the same problem, finally solved it manually. Goto the rubygems compass page, and download the gem by clicking the Download link. Scroll down and you will see three Runtime Dependencies. Goto each of them and download those gems also. Put all of them in a directory, and try

gem install downloaded_compass_filename

This should solve your problem. If it gives an repository not found error message, you can force gem to try local files through the gem --local install option

like image 44
anoopr Avatar answered Sep 19 '22 14:09

anoopr