[#409331] Capture HTML table data, pass to Ruby, pass back and display result in HTML text field — Hubert Wagner <lists@...>

Hello :

11 messages 2013/08/04

[#409336] Rakefile Error - Please Help — "Jennifer T." <lists@...>

Hi,

13 messages 2013/08/04
[#409341] Re: Rakefile Error - Please Help — Hassan Schroeder <hassan.schroeder@...> 2013/08/04

On Sun, Aug 4, 2013 at 7:41 AM, Jennifer T. <lists@ruby-forum.com> wrote:

Finding config settings in windows

From: Douglas Allen <lists@...>
Date: 2013-08-05 18:46:49 UTC
List: ruby-talk #409371
Hey All.
I'm trying to figure out why the ruby.h dir is not giving me the right
location using RbConfig in Ruby 1.9.3 on Windows.

I ran irb
>> loc = File.join( Config::CONFIG['archdir'], 'ruby.h')
=> "C:/Ruby193/lib/ruby/1.9.1/i386-mingw32/ruby.h"

# No deprecation warning as below would.
but that's not where it is.

So I ran
>> RbConfig::CONFIG.each { | k, v | puts "#{k} => #{v}\n" }
and found
includedir => C:/Ruby193/include

which is where it is.

The reason I ask is that from the book Ruby Cookbook
I'm trying to get the first example from "chapter 22.1 Writing a C
Extension for Ruby" to compile with make. I have devkit set up okay I
think. But that RbConfig::Config has me confused as to why it points to
the wrong directory.

I run
ruby extconf.rb
and get my makefile

Then I run make
and get this error
make.exe: *** No rule to make target
`/C/Ruby193/include/ruby-1.9.1/ruby.h', needed by `example.o'.  Stop.

Can anyone help me?
Is there a way to set the config for the correct directory even if this
is not what the problem is?

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

In This Thread

Prev Next