Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > How do I make RbConfig aware of an include directory? (1.9.2 onFedora 16)

Reply
Thread Tools

How do I make RbConfig aware of an include directory? (1.9.2 onFedora 16)

 
 
Cactus
Guest
Posts: n/a
 
      06-26-2012
I built 1.9.2-p320 from source on Fedora 16,
installed in /usr/local

I can't build the mysql2 gem because it thinks
that rb_thread_blocking_region isn't defined.
It is, but the conftest.c file that mkmf
generates fails because gcc can't find ruby.h

The reason why gcc can't find ruby.h is that the
gcc command-line generated from RbConfig doesn't
emit -I.... flags pointing to ruby.h and other
related .h files.

First, the .h files were installed in
/usr/local/include/ruby-1.9.1 although I was building
ruby 1.9.2 -- is this ok?

I could always add a symlink, but how do I make sure
that RbConfig knows about this location?

Thanks


 
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
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
/* #include <someyhing.h> */ => include it or do not include it?That is the question .... Andreas Bogenberger C Programming 3 02-22-2008 10:53 AM
rbconfig suggestion: ruby_apps Joel VanderWerf Ruby 3 12-09-2003 07:58 AM
[RCR] Include CONFIG::Config['rubydocdir'] in rbconfig.rb Gavin Sinclair Ruby 7 10-01-2003 10:24 PM
finding ruby.h / problem with rbconfig (LoadError) Oliver Obst Ruby 4 09-29-2003 08:54 AM



Advertisments