ERROR: While executing gem … (Zlib::GzipFile::Error) not in gzip format

后端 未结 2 879
天涯浪人
天涯浪人 2020-12-10 15:37

I am developing a Sencha touch 2 application. I have been following the \"Styling the user interface of a Sencha Touch application\" tutorial on theming of secha touch appli

相关标签:
2条回答
  • 2020-12-10 16:16

    I assume the ERROR occurs since the web sense at my workplace blocks these downloads.

    Solution: I downloaded the required gems: chunky_png, fssm, compass, sass, haml etc.. directly from http://rubygems.org/gems and placed these gems in my local directory.

    After this I tried gem install compass. This first searches your local directory. On finding the required gems, installation takes place. Does not require connection to the ruby website.

    Note: Run the command from the path where the gems are located

    eg: I have placed the gems in C:\Ruby193\lib\ruby\gems\1.9.1\gems

    So I run the following command :

    C:\Ruby193\lib\ruby\gems\1.9.1\gems>gem install compass

    0 讨论(0)
  • 2020-12-10 16:20

    I had a similar problem, it worked on my own private laptop, but failed while using a virtual server at work (running Ubuntu 12.10) that used a proxy.

    Following the suggestion I found here, from the command line I defined:

    export HTTPS_PROXY=proxy-address:proxy-port-number
    
    export HTTP_PROXY=proxy-address:proxy-port-number
    

    and then my gem install package worked fine.

    0 讨论(0)
提交回复
热议问题