Quantlib-Swig Interface for Perl

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Quantlib-Swig Interface for Perl

MC-21
I am trying to install
QuantLib-SWIG-0.9.7 for making perl bindings

I have installed

boost_1_38_0
QuantLib-0.9.7
swig-1.3.38
QuantLib-SWIG-0.9.7

Perl v5.8.5
Linux 2.6.9-42.0.3.ELsmp

I just wanted perl bindings so I went to Perl directory of QuantLib-SWIG and issued make
and make install

After some settings the compilation went fine.

To test the installation I tried to run the example file european-option.pl
It complained about not finding the QuantLib.pm file I added the directory for the QunatLib.pm file to my path
Then ran european-option.pl

I am getting the error

Can't load '/usr/local/lib64/perl5/site_
perl/5.8.5/x86_64-linux-thread-multi//auto/QuantLib/QuantLib.so' for module QuantLib: /usr/local/lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-multi//auto/QuantLib/QuantLib.so: undefined symbol: _ZNSs4_Rep20_S_empty_rep_storageE at /usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi/DynaLoader.pm line 230.
 at /usr/local/lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-multi//QuantLib.pm line 11
Compilation failed in require at ./european-option.pl line 4.
BEGIN failed--compilation aborted at ./european-option.pl line 4.

I looked in the DynaLoader.pm file line 230 it shows a comment

   # Many dynamic extension loading problems will appear to come from
    # this section of code: XYZ failed at line 123 of DynaLoader.pm.
    # Often these errors are actually occurring in the initialisation
    # C code of the extension XS file. Perl reports the error as being
    # in this perl code simply because this was the last perl code
    # it executed.


I am lost can anybody help me diagnose this problem.

Thanks in advance





------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users