[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

gem install - will not work outside of bin folder

Mmcolli00 Mom

4/29/2009 9:10:00 PM

Hi

I just installed ruby 1.8.6 stable version on windows xp pc. When I try
to install gems by gem install gemname...it says 'command not
recognized'. When I download a gem manually and put in the bin folder
and then use gem install it will work. However, it is only working for
some gems. Other error messages that I am getting is that the gem is of
invalid format. Do you know why I can't run update gems outside of the
bin folder or why some will not install?

Thanks
MC
--
Posted via http://www.ruby-....

7 Answers

Lyle Johnson

4/29/2009 9:15:00 PM

0

On Wed, Apr 29, 2009 at 4:10 PM, Mmcolli00 Mom <mmc_collins@yahoo.com> wrote:

> I just installed ruby 1.8.6 stable version on windows xp pc. When I try
> to install gems by gem install gemname...it says 'command not
> recognized'

Make sure that the "ruby\bin" directory is in your PATH.

Mmcolli00 Mom

4/29/2009 9:23:00 PM

0

Lyle Johnson wrote:
> On Wed, Apr 29, 2009 at 4:10 PM, Mmcolli00 Mom <mmc_collins@yahoo.com>
> wrote:
>
>> I just installed ruby 1.8.6 stable version on windows xp pc. When I try
>> to install gems by gem install gemname...it says 'command not
>> recognized'
>
> Make sure that the "ruby\bin" directory is in your PATH.

I copied those to the bin and then set my path to ruby\bin. Then I use
gem install gemname but it says my rake is of invalid format...so I go
to next gem and use gem install and it says that gem is also of invalid
format.
--
Posted via http://www.ruby-....

Luis Lavena

4/30/2009 4:41:00 AM

0

On Apr 29, 6:23 pm, Mmcolli00 Mom <mmc_coll...@yahoo.com> wrote:
> Lyle Johnson wrote:
> > On Wed, Apr 29, 2009 at 4:10 PM, Mmcolli00 Mom <mmc_coll...@yahoo.com>
> > wrote:
>
> >> I just installed ruby 1.8.6 stable version on windows xp pc. When I try
> >> to install gems by gem install gemname...it says 'command not
> >> recognized'
>
> > Make sure that the "ruby\bin" directory is in your PATH.
>
> I copied those to the bin and then set my path to ruby\bin. Then I use
> gem install gemname but it says my rake is of invalid format...so I go
> to next gem and use gem install and it says that gem is also of invalid
> format.

Will be much more helpful than your description that you can provide
output of:

set PATH
gem env
gem install rake

The actual commands and the real output can help us help you.

--
Luis Lavena

Mmcolli00 Mom

4/30/2009 1:46:00 PM

0

Thanks Luis... so, you are saying that I can use a commands such as 'set
Path' and 'gem env'? I didn't know these were available. Where can I
find documentation on using these commands and commands like these?


--
Posted via http://www.ruby-....

Luis Lavena

4/30/2009 5:53:00 PM

0

On Apr 30, 10:45 am, Mmcolli00 Mom <mmc_coll...@yahoo.com> wrote:
> Thanks Luis... so, you are saying that I can use a commands such as 'set
> Path' and 'gem env'? I didn't know these were available. Where can I
> find documentation on using these commands and commands like these?
>

set PATH is abuilt-in command of Windows.

set let you set or unset environment variables. PATH is the
environment variable that let the system search for executables.

"gem" is the RubyGems executable you use to install, uninstall and
update gems in your Ruby installation:

http://docs.rub...

From the command prompt and inside your Ruby\bin directory, execute
the above mentioned commands and check the output.

If you're not familiar with the command prompt. I suggest you read
more documentation how to use it. Similar knowledge acquired here will
help you on other platforms.

Regards,
--
Luis Lavena

Mmcolli00 Mom

4/30/2009 6:00:00 PM

0

Ok thanks for the info. - MC
--
Posted via http://www.ruby-....

Eric Hodel

4/30/2009 6:51:00 PM

0

On Apr 30, 2009, at 10:56, Luis Lavena wrote:
> On Apr 30, 10:45 am, Mmcolli00 Mom <mmc_coll...@yahoo.com> wrote:
>> Thanks Luis... so, you are saying that I can use a commands such as
>> 'set
>> Path' and 'gem env'? I didn't know these were available. Where can I
>> find documentation on using these commands and commands like these?
>>
>
> set PATH is abuilt-in command of Windows.
>
> set let you set or unset environment variables. PATH is the
> environment variable that let the system search for executables.
>
> "gem" is the RubyGems executable you use to install, uninstall and
> update gems in your Ruby installation:
>
> http://docs.rub...
>
> From the command prompt and inside your Ruby\bin directory, execute
> the above mentioned commands and check the output.
>
> If you're not familiar with the command prompt. I suggest you read
> more documentation how to use it. Similar knowledge acquired here will
> help you on other platforms.

also, `gem help` will give help on the gem executable.