Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Rice installation issue.

Reply
Thread Tools

Rice installation issue.

 
 
George Thomas
Guest
Posts: n/a
 
      10-13-2009
I have rice gem (rice-1.1.0.gem) downloaded to my folder C:\Ruby19

I have tried the following at command prompt window to install rice.

gem install rice

However , I am getting the following error:

<<

Building native extensions. This could take a while…
ERROR: Error installing rice:
ERROR: Failed to build gem native extension.

C:/Ruby19/bin/ruby.exe extconf.rb

Gem file will remain installed in
C:/Ruby19/lib/ruby/gems/1.9.1/gems/rice-1.1.0 for inspection.

Results logged to
C:/Ruby19/lib/ruby/gems/1.9.1/gems/rice-1.1.0/gem_make.out
<<

I think rice gem is not installed properly in my PC.I have tried calling
require ‘mkmf-rice’ from the Interactive Ruby Window and it does not
find the file.

How can I overcome the issue and install rice?

Regards,
George
--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
 
Ilan Berci
Guest
Posts: n/a
 
      10-13-2009
George Thomas wrote:
> I have rice gem (rice-1.1.0.gem) downloaded to my folder C:\Ruby19
>
> I have tried the following at command prompt window to install rice.
>
> gem install rice
>
> However , I am getting the following error:
>
> <<
>
> Building native extensions. This could take a while…
> ERROR: Error installing rice:
> ERROR: Failed to build gem native extension.
>


You are trying to install a gem that requires compilation and you are on
Windows box which means that you either don't have a compiler (such as
MSVC) or you installed the wrong gem (There may be a windows version for
"rice")

hth

ilan


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

 
Reply With Quote
 
 
 
 
Brian Candler
Guest
Posts: n/a
 
      10-13-2009
Ilan Berci wrote:
> You are trying to install a gem that requires compilation and you are on
> Windows box which means that you either don't have a compiler (such as
> MSVC) or you installed the wrong gem (There may be a windows version for
> "rice")


and/or the gem might not be compatible with ruby 1.9.

I don't see any mention of 1.9 at rice.rubyforge.org, and I've also
checked out svn/trunk and don't see any mention of 1.9 in the commit
logs.

I believe there have been changes to the low-level C API between 1.8 and
1.9 - these may or may not affect rice.
--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
Jason Roelofs
Guest
Posts: n/a
 
      10-13-2009
[Note: parts of this message were removed to make it a legal post.]

On Tue, Oct 13, 2009 at 9:07 AM, Brian Candler <(E-Mail Removed)> wrote:

> Ilan Berci wrote:
> > You are trying to install a gem that requires compilation and you are on
> > Windows box which means that you either don't have a compiler (such as
> > MSVC) or you installed the wrong gem (There may be a windows version for
> > "rice")

>
> and/or the gem might not be compatible with ruby 1.9.
>
> I don't see any mention of 1.9 at rice.rubyforge.org, and I've also
> checked out svn/trunk and don't see any mention of 1.9 in the commit
> logs.
>
> I believe there have been changes to the low-level C API between 1.8 and
> 1.9 - these may or may not affect rice.
> --
> Posted via http://www.ruby-forum.com/.
>
>


Rice is not 1.9 compatible right now. I hope to get that taken care of soon
(slated for 1.4).

George, can you post what's
in C:/Ruby19/lib/ruby/gems/1.9.1/gems/rice-1.1.0/gem_make.out

Though as for building on Windows, I know it works over Cygwin, I doubt it
works over mingw, and I know it's not going to compile over VisualStudio
tools.

I'm working on a 1.3 release which I hope to have out soon. 1.1 is quite old
and there's been a ton of work since then. I'd recommend getting the source
from http://github.com/jameskilton/rice and building from there until this
new release is out.

Also, we've got our own mailing list:
http://groups.google.com/group/ruby-rice or I idle on IRC freenode
#ruby-rice for further help.

Jason

 
Reply With Quote
 
George Thomas
Guest
Posts: n/a
 
      10-14-2009

> George, can you post what's
> in C:/Ruby19/lib/ruby/gems/1.9.1/gems/rice-1.1.0/gem_make.out


The contents of the file is just
C:/Ruby19/bin/ruby.exe extconf.rb

I have installled earlier version of Ruby (1.8.6) in another PC. There
too I have the same issue and the contents of gem_make.out is

D:/Ruby/bin/ruby.exe extconf.rb install rice

Am I missing some settings?(In both PCs , Visual Studio is installed)

Regards,
George

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

 
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
[ANN] Rice 1.0.0 - Ruby Interface for C++ Extensions Jason Roelofs Ruby 4 02-11-2008 09:46 PM
Rice & Chessboard. Doubling Each Square Problem Jonathan Pritchard C Programming 17 09-15-2006 12:34 AM
Condoleeza Rice - Hot or Not? Tony Parkinson Digital Photography 4 04-13-2004 01:49 PM
Condoleeza Rice - Hot or Not? Tony Parkinson Digital Photography 11 04-11-2004 06:28 PM
price of rice. Ardvark MCSE 13 03-07-2004 06:46 PM



Advertisments