File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Ruby and the fly likes gem installation problems in windows Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Languages » Ruby
Bookmark "gem installation problems in windows" Watch "gem installation problems in windows" New topic

gem installation problems in windows

Vamsi S Krishna

Joined: Jul 20, 2009
Posts: 4
Most of the gems are OS independent but few gems will throw errors like "nmake is not a recognizable command in Windows", since some gems are developed in unix or mac OS they throw this error, to solve this I can install nmake in my system. But can I make some changes in the gem itself that it can be made os independent? So if any one can give me some tips on this that will be great.

Lasse Koskela

Joined: Jan 23, 2002
Posts: 11962
I believe that error refers to gem not finding the nmake.exe that comes with some versions of Visual Studio. Maybe you can find and install Nmake from Microsoft's website?

Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Vamsi S Krishna

Joined: Jul 20, 2009
Posts: 4
Thanks for the reply Lasse.
I understand i can resolve it by installing nmake, cl.exe with the help of Visual C++ express edition.
What i am interested in knowing is, ability to modify the gem so that it can be used by other users without the need to install vc++.
There are so many gems that are os independent I want to learn how to do it.If you can give some related links and your experience, that will help me.
Peter Johnson

Joined: May 14, 2008
Posts: 5852

It all depends on what your gem contains. If it is pure Ruby code, it will work on all platforms. If the gem requires some native code, then it will have to be compiled on each platform.

JBoss In Action
I agree. Here's the link:
subject: gem installation problems in windows
It's not a secret anymore!