# Gem help

**URL:** <https://www.ruby-forum.com/t/gem-help/186887>\
**Category:** Ruby\
**Created:** [April 13, 2010, 8:58pm UTC](https://www.ruby-forum.com/t/gem-help/186887 "2010-04-13T20:58:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![homer-16](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/838e76/32.png) [@homer-16](https://www.ruby-forum.com/u/homer-16)\
**Post date:** [April 13, 2010, 8:58pm UTC](https://www.ruby-forum.com/t/gem-help/186887/1 "2010-04-13T20:58:08Z")

</div>

I’m trying to DL a gem but I keep getting this message:

> E:\Ruby\bin\>cmd /k “F:\Torque Game Engine Demo\System\Hack\Ruby\bin\gem.bat”  
> The system cannot find the drive specified.
> 
> E:\Ruby\bin\>gem i narray  
> Building native extensions. This could take a while…  
> ERROR: Error installing narray:  
> ERROR: Failed to build gem native extension.
> 
> E:/Ruby/bin/ruby.exe extconf.rb  
> checking for sys/types.h… no  
> checking for u\_int8\_t… no  
> checking for int16\_t… no  
> checking for int32\_t… no  
> checking for u\_int32\_t… no  
> creating narray\_config.h  
> creating Makefile
> 
> nmake  
> ‘nmake’ is not recognized as an internal or external command,  
> operable program or batch file.
> 
> Gem files will remain installed in E:/Ruby/lib/ruby/gems/1.8/gems/narray-\>0.5.9.7  
> for inspection.  
> Results logged to E:/Ruby/lib/ruby/gems/1.8/gems/narray-\>0.5.9.7/src/gem\_make.out
> 
> E:\Ruby\bin\>

Does anyone know how to solve this? Btw,

> E:\Ruby\bin\>cmd /k “F:\Torque Game Engine Demo\System\Hack\Ruby\bin\gem.bat”  
> The system cannot find the drive specified.

This is not a problem.

---

<div class="post-metadata">

**Author:** ![homer-16](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/838e76/32.png) [@homer-16](https://www.ruby-forum.com/u/homer-16)\
**Post date:** [April 13, 2010, 10:01pm UTC](https://www.ruby-forum.com/t/gem-help/186887/2 "2010-04-13T22:01:57Z")

</div>

On Apr 13, 3:58 pm, H- 16 [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > Building native extensions. This could take a while…  
> > creating Makefile
> 
> Does anyone know how to solve this? Btw,
> 
> > E:\Ruby\bin\>cmd /k “F:\Torque Game Engine Demo\System\Hack\Ruby\bin\gem.bat”  
> > The system cannot find the drive specified.

1. Avoid path with spaces

2. Add Ruby\bin directory to your path:

SET PATH=%PATH%;C:\Ruby\bin

1. proceed to gem installation with verbose and debug modes:

gem install xxx --debug -V

---

<div class="post-metadata">

**Author:** ![homer-16](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/838e76/32.png) [@homer-16](https://www.ruby-forum.com/u/homer-16)\
**Post date:** [April 14, 2010, 11:11am UTC](https://www.ruby-forum.com/t/gem-help/186887/3 "2010-04-14T11:11:29Z")

</div>

Hello

Which version of Ruby are you using?  
You can check it by:

ruby -v

If it is [i386-mingw32] or [i386-mswin32],  
you can install a binary package by:

gem install narray --platform=x86-mingw32

Otherwise, you need some compiler to compile sources.

Masahiro Tanaka

H- 16 wrote:

> I’m trying to DL a gem but I keep getting this message:
> 
> > E:\Ruby\bin\>cmd /k “F:\Torque Game Engine Demo\System\Hack\Ruby\bin\gem.bat”  
> > The system cannot find the drive specified.
> > 
> > E:\Ruby\bin\>gem i narray  
> > Building native extensions. This could take a while…  
> > ERROR: Error installing narray:  
> > ERROR: Failed to build gem native extension.
> > 
> > E:/Ruby/bin/ruby.exe extconf.rb  
> > checking for sys/types.h… no  
> > checking for u\_int8\_t… no  
> > checking for int16\_t… no  
> > checking for int32\_t… no  
> > checking for u\_int32\_t… no  
> > creating narray\_config.h  
> > creating Makefile
> > 
> > nmake  
> > ‘nmake’ is not recognized as an internal or external command,  
> > operable program or batch file.
> > 
> > Gem files will remain installed in E:/Ruby/lib/ruby/gems/1.8/gems/narray-\>0.5.9.7  
> > for inspection.  
> > Results logged to E:/Ruby/lib/ruby/gems/1.8/gems/narray-\>0.5.9.7/src/gem\_make.out
> > 
> > E:\Ruby\bin\>
> 
> Does anyone know how to solve this? Btw,
> 
> > E:\Ruby\bin\>cmd /k “F:\Torque Game Engine Demo\System\Hack\Ruby\bin\gem.bat”  
> > The system cannot find the drive specified.
> 
> This is not a problem.

---

<div class="post-metadata">

**Author:** ![homer-16](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/838e76/32.png) [@homer-16](https://www.ruby-forum.com/u/homer-16)\
**Post date:** [April 14, 2010, 8:07pm UTC](https://www.ruby-forum.com/t/gem-help/186887/4 "2010-04-14T20:07:21Z")

</div>

On Apr 13, 2010, at 11:58 , H- 16 wrote:

> > …  
> > creating Makefile
> > 
> > nmake  
> > ‘nmake’ is not recognized as an internal or external command,  
> > operable program or batch file.  
> > …

You don’t have nmake and, presumably, a compiler to build C extensions.

(or you do and you need to fix your PATH)

---

<div class="post-metadata">

**Author:** ![homer-16](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/838e76/32.png) [@homer-16](https://www.ruby-forum.com/u/homer-16)\
**Post date:** [April 14, 2010, 10:11pm UTC](https://www.ruby-forum.com/t/gem-help/186887/5 "2010-04-14T22:11:10Z")

</div>

Ryan D. wrote:

> On Apr 13, 2010, at 11:58 , H- 16 wrote:
> 
> > > …  
> > > creating Makefile
> > > 
> > > nmake  
> > > ‘nmake’ is not recognized as an internal or external command,  
> > > operable program or batch file.  
> > > …
> 
> You don’t have nmake and, presumably, a compiler to build C extensions.
> 
> (or you do and you need to fix your PATH)

Thanks! I’ll report back what happens.
