Posted by
Dirk Eddelbuettel on
Oct 30, 2003; 6:51pm
URL: http://quantlib.414.s1.nabble.com/QuantLib-Ruby-0-3-3-bug-report-and-building-assistance-tp10407p10408.html
On Thu, Oct 30, 2003 at 03:12:43PM -0600, Liguo Song wrote:
> I am building the RPM package for QuantLib-Ruby-0.3.3. As I know nothing
> about ruby, so I might need someone with more experience with this package
> to help me out.
Luigi helped me years ago, and I recall that I used some small patches of
his in either install.rb or setup.rb, or both. But based on the current
diff.gz, I do no longer. Not sure when those ceased to be required, maybe
around 0.3?
Here is what I do, in a nutshell:
cxxcompiler = g++
compilerflags = -O2
# per Luigi's suggestion
touch quantlib_wrap.cpp
CXX="$(cxxcompiler)" \
CFLAGS="$(compilerflags)" \
CXXFLAGS="$(compilerflags)" $(RUBY) setup.rb build
[...]
CXX="$(cxxcompiler)" \
CFLAGS="$(compilerflags)" \
CXXFLAGS="$(compilerflags)" \
$(RUBY) setup.rb install --prefix=debian/$(package)
You can look at any Debian mirror for QuantLib-Ruby_0.3.3-4.diff.gz (for the
most current release) which is a diff against the pristine QL sources.
> Second, does the test suite of QuantLib-Ruby require something like cppunit
> to run? If so, where can I get it?
It's a Debian package for me, but I cheat and don't run this for QL-Ruby.
You can look at our build-logs if you want to compare warnings:
http://buildd.debian.org/build.php?pkg=quantlib-rubyfor all different build architectures going back to the 0.2.1 release.
BTW I'm all for 0.3.4 -- good idea AFAICT.
Cheers, Dirk
--
Those are my principles, and if you don't like them... well, I have others.
-- Groucho Marx