Login  Register

Re: ruby wrapper issues

Posted by Luigi Ballabio-2 on May 26, 2004; 9:27am
URL: http://quantlib.414.s1.nabble.com/ruby-wrapper-issues-tp10588p10589.html

On 2004.05.21 04:16, Mark Treiber wrote:
> Two quick questions about the ruby compilation.

And two much less quick answers. My apologies.

> 1). When I'm compiling the ruby wrapper under darwin I get a lot of  
> warnings like:
>
> /sw/include/ql/config.hpp:101:1: warning:
> "PACKAGE_BUGREPORT" redefined
>
> where "PACKAGE_BUGREPORT" is defined in ruby.h but set to "".  I'm  
> assuming this is normal right?  Will this affect ruby in any way?

It's ok. The macro is defined by autoconf, which I guess is used by  
both Ruby and QuantLib. There's no harm in redefining it.

> 2). When "setup.rb install" is passed --prefix, the wrapper is  
> installed in the ruby lib directory (with the new prefix) but when  
> the --prefix is excluded, the wrapper is installed into the ruby site  
> lib directory.

Oh, yes, I remember. The asymmetry was introduced by me in order to  
make the life easier for the Debian maintainer, who wanted the module  
to be installed in the ruby lib. It's fixed now---and Dirk, if you're  
reading this, from now on you'll have to install by using

ruby setup.rb install --prefix=/whatever --debian

If --debian is not used, the "correct" behavior (that is, that  
suggested by Mark) is triggered.

Thanks,
        Luigi