Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Can't install ruby-opengl

Reply
Thread Tools

Can't install ruby-opengl

 
 
J. D.
Guest
Posts: n/a
 
      05-27-2009
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.
--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
 
Luis Lavena
Guest
Posts: n/a
 
      05-27-2009
On May 27, 1:46*pm, "J. D." <(E-Mail Removed)> wrote:
> 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.


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...-of-one-click/
http://blog.mmediasys.com/2009/05/17...nd-other-news/
http://blog.mmediasys.com/2009/05/19...-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,
--
Luis Lavena

 
Reply With Quote
 
 
 
 
J. D.
Guest
Posts: n/a
 
      05-27-2009
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?

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

 
Reply With Quote
 
J. D.
Guest
Posts: n/a
 
      05-27-2009
I fixed my issue.

I went directly to:

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!
--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
Luis Lavena
Guest
Posts: n/a
 
      05-27-2009
On May 27, 5:47*pm, "J. D." <(E-Mail Removed)> wrote:
> 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?
>


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).

--
Luis Lavena
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Possible to Un-Install and Re-install IE6? Sens Fan Happy In OH Computer Support 3 07-11-2005 04:37 PM
Ghost Console version 8 Remote Client install will not install to remote pc Ed Computer Support 3 03-18-2005 05:18 PM
XP Pro Install - Can't Install pro_seg5.swf Luke O'Malley Computer Support 1 12-05-2004 07:15 AM
Can't seem to boot from XP install CD (after botched Linux install) Cloud Burst Computer Support 3 05-22-2004 02:52 PM
How to determine JDK install directory and/or do silent install of J2SE? RJGraham Java 8 02-14-2004 02:19 PM



Advertisments