Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.ruby > #2729 > unrolled thread
| Started by | serialhex <serialhex@gmail.com> |
|---|---|
| First post | 2011-04-13 00:42 -0500 |
| Last post | 2011-04-14 03:16 -0500 |
| Articles | 4 — 2 participants |
Back to article view | Back to comp.lang.ruby
problem with swig & ruby serialhex <serialhex@gmail.com> - 2011-04-13 00:42 -0500
Re: problem with swig & ruby serialhex <serialhex@gmail.com> - 2011-04-13 13:19 -0500
Re: problem with swig & ruby Ralf Mueller <ralf.mueller@zmaw.de> - 2011-04-14 03:13 -0500
Re: problem with swig & ruby Ralf Mueller <ralf.mueller@zmaw.de> - 2011-04-14 03:16 -0500
| From | serialhex <serialhex@gmail.com> |
|---|---|
| Date | 2011-04-13 00:42 -0500 |
| Subject | problem with swig & ruby |
| Message-ID | <BANLkTimAouOikEQ+y=inyz1+TiPNo2qykw@mail.gmail.com> |
[Note: parts of this message were removed to make it a legal post.] ok, so i'm working on a project that requires me to use swig to write some ruby bindings. unfortunately, when i try and run swig & i give it the directory of ruby.h it gives me a "ruby/config.h not found" error. i'm using rvm so i can manage the different versions i'm going to be testing against, but that shouldnt matter as when i compiled from source it have me the same error. i _can_ find config.h, it's in "i686-linux/ruby" not "ruby" (relative to ruby.h). whats the deal with this? i mean i can _easily_ symlink or copy config.h to the proper place, but i shouldnt have to do this. and before anyone asks i did configure with --enable-shared. is this a bug i need to talk to the head-honchos about?? i would like this resolved so i dont have to worry about this when i install other versions of ruby (or asking people to do this for their version of ruby). i mean, it kind of looks bad if i ask someone to symlink something for me (and yes i could do it for them in my config scripts, but the whole thing should be unessisary!) thanks in advance! hex
[toc] | [next] | [standalone]
| From | serialhex <serialhex@gmail.com> |
|---|---|
| Date | 2011-04-13 13:19 -0500 |
| Message-ID | <BANLkTim7hMh56W8whVqOmGkQKMABvEoVcw@mail.gmail.com> |
| In reply to | #2729 |
[Note: parts of this message were removed to make it a legal post.] no one has a good (or bad) answer to this? :-/ crap! hex On Wed, Apr 13, 2011 at 1:42 AM, serialhex <serialhex@gmail.com> wrote: > ok, so i'm working on a project that requires me to use swig to write some > ruby bindings. unfortunately, when i try and run swig & i give it the > directory of ruby.h it gives me a "ruby/config.h not found" error. i'm > using rvm so i can manage the different versions i'm going to be testing > against, but that shouldnt matter as when i compiled from source it have me > the same error. i _can_ find config.h, it's in "i686-linux/ruby" not > "ruby" > (relative to ruby.h). whats the deal with this? i mean i can _easily_ > symlink or copy config.h to the proper place, but i shouldnt have to do > this. and before anyone asks i did configure with --enable-shared. is > this > a bug i need to talk to the head-honchos about?? i would like this > resolved > so i dont have to worry about this when i install other versions of ruby > (or asking people to do this for their version of ruby). i mean, it kind > of looks bad if i ask someone to symlink something for me (and yes i could > do it for them in my config scripts, but the whole thing should be > unessisary!) > > thanks in advance! > hex >
[toc] | [prev] | [next] | [standalone]
| From | Ralf Mueller <ralf.mueller@zmaw.de> |
|---|---|
| Date | 2011-04-14 03:13 -0500 |
| Message-ID | <4DA6AC7F.8020606@zmaw.de> |
| In reply to | #2779 |
37 min of waiting is not that long....get yourself a coffee as a pacifier
here is my hint:
to get the right value for CPPFLAGS, call this script:
require 'mkmf'
if RUBY_VERSION[0,3] == '1.8'
puts "-I#{Config::expand(CONFIG['rubyhdrdir'])}"
else
puts "-I#{Config::expand(CONFIG['rubyhdrdir'])}
-I#{Config::expand(CONFIG['rubyhdrdir'])}/#{Config::expand(CONFIG['arch'])}"
end
On my system, its outpout is
-I/usr/include/ruby-1.9.1 -I/usr/include/ruby-1.9.1/x86_64-linux
Ruby uses two config.h files, one for platform independent and one for platform dependent settings.
hth
ralf
[toc] | [prev] | [next] | [standalone]
| From | Ralf Mueller <ralf.mueller@zmaw.de> |
|---|---|
| Date | 2011-04-14 03:16 -0500 |
| Message-ID | <4DA6ACD3.6080100@zmaw.de> |
| In reply to | #2779 |
BTW, there a SWIG mailing list: swig-user@lists.sourceforge.net
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.ruby
csiph-web