Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.ruby > #6582

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

From Cactus <bill.kidder@gmail.com>
Newsgroups comp.lang.ruby
Subject How do I make RbConfig aware of an include directory? (1.9.2 on Fedora 16)
Date 2012-06-25 22:21 -0700
Organization http://groups.google.com
Message-ID <2528f578-3d8e-42a5-a88a-043bd2af0ad1@googlegroups.com> (permalink)

Show all headers | View raw


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

Back to comp.lang.ruby | Previous | Next | Find similar


Thread

How do I make RbConfig aware of an include directory? (1.9.2 on Fedora 16) Cactus <bill.kidder@gmail.com> - 2012-06-25 22:21 -0700

csiph-web