Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.ruby > #2830
| From | Ralf Mueller <ralf.mueller@zmaw.de> |
|---|---|
| Newsgroups | comp.lang.ruby |
| Subject | Re: problem with swig & ruby |
| Date | 2011-04-14 03:13 -0500 |
| Organization | Service de news de lacave.net |
| Message-ID | <4DA6AC7F.8020606@zmaw.de> (permalink) |
| References | <BANLkTimAouOikEQ+y=inyz1+TiPNo2qykw@mail.gmail.com> <BANLkTim7hMh56W8whVqOmGkQKMABvEoVcw@mail.gmail.com> |
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
Back to comp.lang.ruby | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
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
csiph-web