# Can't install ruby-opengl

**URL:** <https://www.ruby-forum.com/t/cant-install-ruby-opengl/168958>\
**Category:** Ruby\
**Created:** [May 27, 2009, 6:46pm UTC](https://www.ruby-forum.com/t/cant-install-ruby-opengl/168958 "2009-05-27T18:46:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![elricstorm](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/da6949/32.png) [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Post date:** [May 27, 2009, 6:46pm UTC](https://www.ruby-forum.com/t/cant-install-ruby-opengl/168958/1 "2009-05-27T18:46:00Z")

</div>

I receive the following error when trying to install it.

C:/Ruby/bin/ruby.exe -rubygems  
C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake  
RUBYARCHDIR=C:/Ruby/lib/ruby/gems/1.8/gems/ruby-opengl-0.60.1/lib  
RUBYLIBDIR=C:/Ruby/lib/ruby/gems/1.8/gems/ruby-opengl-0.60.1/lib  
ruby mkrf\_conf.rb  
(in C:/Ruby/lib/ruby/gems/1.8/gems/ruby-opengl-0.60.1)  
call rake --nosearch  
cl -nologo -MD -Zi -O2b2xg- -G6 -DWIN32 -DRUBY\_VERSION=186  
-IC:/Ruby/include -IC:/Ruby/lib/ruby/1.8/i386-mswin32  
-IC:/Ruby/lib/ruby/site\_ruby/1.8 -I. -c gl-1.0-1.1.c  
(in C:/Ruby/lib/ruby/gems/1.8/gems/ruby-opengl-0.60.1/ext/gl)  
‘cl’ is not recognized as an internal or external command,  
operable program or batch file.  
rake aborted!  
Command failed with status (1): [cl -nologo -MD -Zi -O2b2xg- -G6  
-DWIN32 …]

(See full trace by running task with --trace)  
rake aborted!  
Command failed with status (1): [call rake --nosearch…]

(See full trace by running task with --trace)

* * *

I’ve tried manually installing it and automatically installing it - both  
fail. I’m currently using the latest one-click installer version of ruby  
186.27. All other gems on my system are updated and working fine with  
the exception of this one.

My gems system is up to date.

I’ve searched heavily for this topic and all topics found do not contain  
a fix for the issue I’m having.

Any help would be greatly appreciated.

thanks.

---

<div class="post-metadata">

**Author:** ![elricstorm](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/da6949/32.png) [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Post date:** [May 27, 2009, 8:45pm UTC](https://www.ruby-forum.com/t/cant-install-ruby-opengl/168958/2 "2009-05-27T20:45:51Z")

</div>

On May 27, 1:46 pm, “J. D.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> -IC:/Ruby/include -IC:/Ruby/lib/ruby/1.8/i386-mswin32  
> Command failed with status (1): [call rake --nosearch…]  
> My gems system is up to date.
> 
> I’ve searched heavily for this topic and all topics found do not contain  
> a fix for the issue I’m having.
> 
> Any help would be greatly appreciated.

To install gems that depends on binary extension, like yours, you need  
a compiler.

Ruby needs a version specific compiler, the same used to build Ruby,  
which is Visual C 6.0

Unless you have a license, that compiler is not available.

I suggest you play with or try out the preview version of the new One-  
Click Installer based on GCC, let you build gems with native  
extensions without these issues.

[http://blog.mmediasys.com/2009/05/05/rubyinstaller-state-of-one-click/](http://blog.mmediasys.com/2009/05/05/rubyinstaller-state-of-one-click/)  
[http://blog.mmediasys.com/2009/05/17/rubyinstaller-updated-packages-and-other-news/](http://blog.mmediasys.com/2009/05/17/rubyinstaller-updated-packages-and-other-news/)  
[http://blog.mmediasys.com/2009/05/19/pure-ruby-readline-released-012/](http://blog.mmediasys.com/2009/05/19/pure-ruby-readline-released-012/)

Keep in mind that certain gems may not work, and headers and libraries  
to build certain gems are required to successfully build them.

Regards,

---

<div class="post-metadata">

**Author:** ![elricstorm](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/da6949/32.png) [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Post date:** [May 27, 2009, 11:31pm UTC](https://www.ruby-forum.com/t/cant-install-ruby-opengl/168958/3 "2009-05-27T23:31:15Z")

</div>

I fixed my issue.

I went directly to:

[http://rubyforge.org/frs/?group\_id=2103](http://rubyforge.org/frs/?group_id=2103)

… and downloaded the ruby-opengl-0.60.1-x86-mswin32.gem  
… ran gem install ruby-opengl-0.60.1-x86-mswin32.gem  
…  
… And it installed correctly with no issues.

I looked through your links though and the second one was very well  
written - I especially enjoyed your ideas about user file separation on  
a different partition.

Good read!

---

<div class="post-metadata">

**Author:** ![elricstorm](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/da6949/32.png) [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Post date:** [May 27, 2009, 10:47pm UTC](https://www.ruby-forum.com/t/cant-install-ruby-opengl/168958/4 "2009-05-27T22:47:33Z")

</div>

Hi Luis,

Wish I would have known this before I did all the things I just finished  
doing.

I figured out that I was missing cl.exe and so I grabbed the latest  
visual studio 2008 express and installed it and then encountered  
problems with path variables.

So, I updated all of the path variables and went to run the gem install  
and encountered the …

MSC Version Mismatch error…

At which point I looked through the doc notes for opengl and saw that  
the compiler has to be MSC 6.0 (which I believe the latest version I  
have is not compatible).

So, before I go heads into another session of fix this/fix that… let me  
make sure I understand what it is you are saying…

The version I need is no longer available unless I have a license so I  
need to play with the one-click-installer that’s based on GCC?

No other way around it eh?

---

<div class="post-metadata">

**Author:** ![elricstorm](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/da6949/32.png) [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Post date:** [May 28, 2009, 12:16am UTC](https://www.ruby-forum.com/t/cant-install-ruby-opengl/168958/5 "2009-05-28T00:16:57Z")

</div>

On May 27, 5:47 pm, “J. D.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> and encountered the …  
> The version I need is no longer available unless I have a license so I  
> need to play with the one-click-installer that’s based on GCC?
> 
> No other way around it eh?

Well, you can get VC8/9 to build extension for VC6 version of RUby,  
but is not the best approach I’ll suggest (if you appreciate your  
mental health).

GCC based Ruby is the candidate for One-Click Installer, since  
building extensions with 12 years old compiler is kind of obsolete  
(that is VC6).
