# Gem installation failed

**URL:** <https://www.ruby-forum.com/t/gem-installation-failed/177576>\
**Category:** Rails\
**Created:** [October 20, 2009, 1:58pm UTC](https://www.ruby-forum.com/t/gem-installation-failed/177576 "2009-10-20T13:58:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![deva](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/7cd45c/32.png) [@deva](https://www.ruby-forum.com/u/deva)\
**Post date:** [October 20, 2009, 1:58pm UTC](https://www.ruby-forum.com/t/gem-installation-failed/177576/1 "2009-10-20T13:58:34Z")

</div>

i got this error message while installing mysql gem…

kindly help me to solve this issue…

JRuby limited openssl loaded. gem install jruby-openssl for full  
support.  
[http://wiki.jruby.org/wiki/JRuby\_Builtin\_OpenSSL](http://wiki.jruby.org/wiki/JRuby_Builtin_OpenSSL)  
Building native extensions. This could take a while…  
ERROR: Error installing mysql:  
ERROR: Failed to build gem native extension.

C:/Program Files/NetBeans 6.7.1/ruby2/jruby-1.2.0/bin/jruby.bat  
extconf.rb install mysql --no-rdoc --no-ri  
The system cannot find the path specified.  
‘cmd’ is not recognized as an internal or external command,  
operable program or batch file.

Gem files will remain installed in C:/Program Files/NetBeans  
6.7.1/ruby2/jruby-1.2.0/lib/ruby/gems/1.8/gems/mysql-2.8.1 for  
inspection.  
Results logged to C:/Program Files/NetBeans  
6.7.1/ruby2/jruby-1.2.0/lib/ruby/gems/1.8/gems/mysql-2.8.1/ext/mysql\_api/gem\_make.out

thanks in advance…

---

<div class="post-metadata">

**Author:** ![deva](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/7cd45c/32.png) [@deva](https://www.ruby-forum.com/u/deva)\
**Post date:** [October 20, 2009, 2:09pm UTC](https://www.ruby-forum.com/t/gem-installation-failed/177576/2 "2009-10-20T14:09:24Z")

</div>

On Tue, Oct 20, 2009 at 8:58 AM, Devendran Ganesan  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> ERROR: Error installing mysql:  
> ERROR: Failed to build gem native extension.
> 
> C:/Program Files/NetBeans 6.7.1/ruby2/jruby-1.2.0/bin/jruby.bat  
> extconf.rb install mysql --no-rdoc --no-ri  
> The system cannot find the path specified.  
> ‘cmd’ is not recognized as an internal or external command,  
> operable program or batch file.

I’m not a Windows user, nor a J\*\*\* user, not even a Netbeans user, but  
it seems like Netbeans is trying to execute “cmd” to get a DOS  
console.  
Try to open it your self and install the gem via the gem command.

Hope it helps.

–  
Leonardo M…  
There’s no place like ~

---

<div class="post-metadata">

**Author:** ![deva](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/7cd45c/32.png) [@deva](https://www.ruby-forum.com/u/deva)\
**Post date:** [October 20, 2009, 4:12pm UTC](https://www.ruby-forum.com/t/gem-installation-failed/177576/3 "2009-10-20T16:12:58Z")

</div>

On Tue, Oct 20, 2009 at 4:58 AM, Devendran Ganesan  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> JRuby limited openssl loaded. gem install jruby-openssl for full  
> support.  
> [http://wiki.jruby.org/wiki/JRuby\_Builtin\_OpenSSL](http://wiki.jruby.org/wiki/JRuby_Builtin_OpenSSL)  
> Building native extensions. This could take a while…  
> ERROR: Error installing mysql:  
> ERROR: Failed to build gem native extension.

You probably want the `jdbc-mysql` and (if you’re using Rails) the  
activerecord-jdbcmysql-adapter gem(s) instead.

## HTH,

Hassan S. ------------------------ removed\_email\_address@domain.invalid  
twitter: @hassan

---

<div class="post-metadata">

**Author:** ![deva](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/7cd45c/32.png) [@deva](https://www.ruby-forum.com/u/deva)\
**Post date:** [November 3, 2009, 1:36am UTC](https://www.ruby-forum.com/t/gem-installation-failed/177576/4 "2009-11-03T01:36:32Z")

</div>

Devendran Ganesan wrote:

> i got this error message while installing mysql gem…
> 
> kindly help me to solve this issue…
> 
> JRuby limited openssl loaded. gem install jruby-openssl for full  
> support.  
> [http://wiki.jruby.org/wiki/JRuby\_Builtin\_OpenSSL](http://wiki.jruby.org/wiki/JRuby_Builtin_OpenSSL)  
> Building native extensions. This could take a while…  
> ERROR: Error installing mysql:  
> ERROR: Failed to build gem native extension.
> 
> C:/Program Files/NetBeans 6.7.1/ruby2/jruby-1.2.0/bin/jruby.bat  
> extconf.rb install mysql --no-rdoc --no-ri  
> The system cannot find the path specified.  
> ‘cmd’ is not recognized as an internal or external command,  
> operable program or batch file.

Deva, any luck with this issue? Having the exact same problem when I  
upgraded to Netbeans 6.7.1 on Windows XP.
