# Problem in installing gems

**URL:** <https://www.ruby-forum.com/t/problem-in-installing-gems/135332>\
**Category:** Ruby\
**Created:** [April 21, 2008, 9:40am UTC](https://www.ruby-forum.com/t/problem-in-installing-gems/135332 "2008-04-21T09:40:32Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![pranjal\_jain](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ac91a4/32.png) [@pranjal\_jain](https://www.ruby-forum.com/u/pranjal_jain)\
**Post date:** [April 21, 2008, 9:40am UTC](https://www.ruby-forum.com/t/problem-in-installing-gems/135332/1 "2008-04-21T09:40:32Z")

</div>

Hi friends  
I am trying to install the gems, but I am having the problem in  
installing them.  
the error is as follows:

ERROR: While executing gem…(Gem::InstallError)  
invalid gem format for  
C:/ruby/lib/ruby/gems/1.8/cache/rspec-1.1.3.gem

Similarly when i tired to install englisg gem it said the error as  
follows:

ERROR: While executing gem…(Gem::GemNotFoundException)  
Could not find english-0.2.0(\>0)in any repository

Please suggest what is this problem & how can I solve it?

Thanks in advance 🙂

---

<div class="post-metadata">

**Author:** ![pranjal\_jain](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ac91a4/32.png) [@pranjal\_jain](https://www.ruby-forum.com/u/pranjal_jain)\
**Post date:** [April 21, 2008, 12:32pm UTC](https://www.ruby-forum.com/t/problem-in-installing-gems/135332/2 "2008-04-21T12:32:54Z")

</div>

Hey pranjal,  
I think the u need to re-setup the ruby gems.  
Once the setup is done please type gem in the command prompt and see  
wether  
“gem” is working or not…  
If it works then the gem install english will also work.  
kranthi

On Mon, Apr 21, 2008 at 1:10 PM, Pranjal J.  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![pranjal\_jain](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ac91a4/32.png) [@pranjal\_jain](https://www.ruby-forum.com/u/pranjal_jain)\
**Post date:** [April 21, 2008, 1:12pm UTC](https://www.ruby-forum.com/t/problem-in-installing-gems/135332/3 "2008-04-21T13:12:49Z")

</div>

Hi Dear

Gem is working but the installations of others are not working.

kranthi reddy wrote:

> Hey pranjal,  
> I think the u need to re-setup the ruby gems.  
> Once the setup is done please type gem in the command prompt and see  
> wether  
> “gem” is working or not…  
> If it works then the gem install english will also work.  
> kranthi
> 
> On Mon, Apr 21, 2008 at 1:10 PM, Pranjal J.  
> [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![pranjal\_jain](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ac91a4/32.png) [@pranjal\_jain](https://www.ruby-forum.com/u/pranjal_jain)\
**Post date:** [April 21, 2008, 1:19pm UTC](https://www.ruby-forum.com/t/problem-in-installing-gems/135332/4 "2008-04-21T13:19:41Z")

</div>

Installation of others in sense of other gems…?  
i have installed that english gem for trail and it worked fine with  
mine…  
I used gem command to install all sorts like radiant…certain rails  
gems…did you install multiple version of ruby or…is there ruby  
installed in mulitple places…If yes even in that case gem command  
yet  
times do no work

On Mon, Apr 21, 2008 at 4:42 PM, Pranjal J.  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![pranjal\_jain](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ac91a4/32.png) [@pranjal\_jain](https://www.ruby-forum.com/u/pranjal_jain)\
**Post date:** [April 21, 2008, 1:26pm UTC](https://www.ruby-forum.com/t/problem-in-installing-gems/135332/5 "2008-04-21T13:26:09Z")

</div>

I mean i tried to install some of the following gems

gem install colorize  
gem install english-0.2.0  
gem install rspec

each of the gem was giving errors.  
Also I want to highlight that I am not using ruby on Rails Framework  
I am using only “Ruby” as I am beginner on this scripting language.

Thanks for the reply:)

kranthi reddy wrote:

> Installation of others in sense of other gems…?  
> i have installed that english gem for trail and it worked fine with  
> mine…  
> I used gem command to install all sorts like radiant…certain rails  
> gems…did you install multiple version of ruby or..is there ruby  
> installed in mulitple places…If yes even in that case gem command  
> yet  
> times do no work
> 
> On Mon, Apr 21, 2008 at 4:42 PM, Pranjal J.  
> [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![pranjal\_jain](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ac91a4/32.png) [@pranjal\_jain](https://www.ruby-forum.com/u/pranjal_jain)\
**Post date:** [April 22, 2008, 5:08am UTC](https://www.ruby-forum.com/t/problem-in-installing-gems/135332/6 "2008-04-22T05:08:46Z")

</div>

On Apr 21, 2008, at 00:40 AM, Pranjal J. wrote:

> Similarly when i tired to install englisg gem it said the error as  
> follows:
> 
> ERROR: While executing gem…(Gem::GemNotFoundException)  
> Could not find english-0.2.0(\>0)in any repository
> 
> Please suggest what is this problem & how can I solve it?

Are you behind a firewall?

---

<div class="post-metadata">

**Author:** ![pranjal\_jain](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ac91a4/32.png) [@pranjal\_jain](https://www.ruby-forum.com/u/pranjal_jain)\
**Post date:** [April 21, 2008, 1:57pm UTC](https://www.ruby-forum.com/t/problem-in-installing-gems/135332/7 "2008-04-21T13:57:54Z")

</div>

#gem

RubyGems is a sophisticated package manager for Ruby. This is a  
basic help message containing pointers to more information.

```
Usage:
  gem -h/--help
  gem -v/--version
  gem command [arguments...] [options...]

Examples:
  gem install rake
  gem list --local
  gem build package.gemspec
  gem help install

Further help:
  gem help commands list all 'gem' commands
  gem help examples show some examples of usage
  gem help platforms show information about platforms
  gem help <COMMAND> show help on COMMAND
                                 (e.g. 'gem help install')
Further information:
  http://rubygems.rubyforge.org

```

hey if this is the screenshot u get when u type gem then ur gem setup  
is  
correct or else there is some mistake…

On Mon, Apr 21, 2008 at 4:56 PM, Pranjal J.  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![pranjal\_jain](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ac91a4/32.png) [@pranjal\_jain](https://www.ruby-forum.com/u/pranjal_jain)\
**Post date:** [April 22, 2008, 6:00am UTC](https://www.ruby-forum.com/t/problem-in-installing-gems/135332/8 "2008-04-22T06:00:24Z")

</div>

Hi there  
Yes I am behind the firewall. But I dnt think it is an issue which is  
constraining from installing.

---

<div class="post-metadata">

**Author:** ![pranjal\_jain](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ac91a4/32.png) [@pranjal\_jain](https://www.ruby-forum.com/u/pranjal_jain)\
**Post date:** [April 22, 2008, 6:29am UTC](https://www.ruby-forum.com/t/problem-in-installing-gems/135332/9 "2008-04-22T06:29:31Z")

</div>

On Apr 21, 2008, at 21:00 PM, Pranjal J. wrote:

> Hi there  
> Yes I am behind the firewall. But I dnt think it is an issue which is  
> constraining from installing.

Sorry, I meant proxy server. My fingers slipped.

---

<div class="post-metadata">

**Author:** ![pranjal\_jain](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ac91a4/32.png) [@pranjal\_jain](https://www.ruby-forum.com/u/pranjal_jain)\
**Post date:** [April 22, 2008, 6:35am UTC](https://www.ruby-forum.com/t/problem-in-installing-gems/135332/10 "2008-04-22T06:35:20Z")

</div>

Yes  
I am behind the firewall as well as proxy server ☹

---

<div class="post-metadata">

**Author:** ![pranjal\_jain](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ac91a4/32.png) [@pranjal\_jain](https://www.ruby-forum.com/u/pranjal_jain)\
**Post date:** [April 22, 2008, 10:31pm UTC](https://www.ruby-forum.com/t/problem-in-installing-gems/135332/11 "2008-04-22T22:31:46Z")

</div>

On Apr 21, 2008, at 21:35 PM, Pranjal J. wrote:

> Yes  
> I am behind the firewall as well as proxy server ☹

You will need to tell RubyGems about your proxy server. You can use  
either the -p/–http-proxy option, or you can use the HTTP\_PROXY  
environment variable.
