Posted by
Dirk Eddelbuettel on
URL: http://quantlib.414.s1.nabble.com/error-while-loading-shared-libraries-libQuantLib-so-0-cannot-open-shared-object-file-No-such-file-ory-tp16551p16554.html
On 8 May 2015 at 19:09, Adam Mertz wrote:
| Running Ubuntu 14.04 LTS.
|
| Got through install and tried running the BermudanSwaption example to test.
| Binary compiled fine but when attempting to run it it throws the following
| error. Also library is installed in default '/usr/local/lib/' which has the
| libQuantLib.so.0 file in it as well as a couple others.
|
| '''
| error while loading shared libraries: libQuantLib.so.0: cannot open shared
| object file: No such file or directory
| '''
|
| ran the following and got this back.
| '''
| ldd ./BermudanSwaption
| linux-vdso.so.1 => (0x00007ffe70bbc000)
| libQuantLib.so.0 => not found <-
| I'd assume this is why I am throwing an error
| libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fead23f8000)
| libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fead20f1000)
| libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fead1edb000)
| libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fead1b16000)
| /lib64/ld-linux-x86-64.so.2 (0x00007fead2718000)
| '''
|
| Not sure what to do at this point. Any help would be greatly appreciated.
I am a little late to this but if install _both_ packages, ie
edd@max:~$ COLUMNS=95 dpkg -l | grep "^ii libquantlib"
ii libquantlib0 1.5-1utopic0 amd64 Quantitative Finance Library -- library
ii libquantlib0-dev 1.5-1utopic0 amd64 Quantitative Finance Library -- developm
edd@max:~$
the it should be as simple as
edd@max:/tmp/bermudan$ cp -vax ~/git/quantlib/QuantLib/Examples/BermudanSwaption/BermudanSwaption.cpp .
‘/home/edd/git/quantlib/QuantLib/Examples/BermudanSwaption/BermudanSwaption.cpp’ -> ‘./BermudanSwaption.cpp’
edd@max:/tmp/bermudan$ g++ -o BermudanSwaption BermudanSwaption.cpp -lQuantLib -Wall
edd@max:/tmp/bermudan$ ./BermudanSwaption
G2 (analytic formulae) calibration
1x5: model 10.04549 %, market 11.48000 % (-1.43451 %)
2x4: model 10.51234 %, market 11.08000 % (-0.56766 %)
3x3: model 10.70500 %, market 10.70000 % (+0.00500 %)
4x2: model 10.83817 %, market 10.21000 % (+0.62817 %)
5x1: model 10.94387 %, market 10.00000 % (+0.94387 %)
calibrated to:
a = 0.050056, sigma = 0.0094424
b = 0.050053, eta = 0.0094424
rho = -0.763
Hull-White (analytic formulae) calibration
1x5: model 10.62037 %, market 11.48000 % (-0.85963 %)
2x4: model 10.62959 %, market 11.08000 % (-0.45041 %)
3x3: model 10.63414 %, market 10.70000 % (-0.06586 %)
4x2: model 10.64428 %, market 10.21000 % (+0.43428 %)
5x1: model 10.66132 %, market 10.00000 % (+0.66132 %)
calibrated to:
a = 0.046414, sigma = 0.0058693
[... rest omitted ...]
I have a convenience backport of QL 1.5 for 14.10 over here as well:
https://launchpad.net/~edd/+archive/ubuntu/misc/+packagesDirk
--
http://dirk.eddelbuettel.com | @eddelbuettel |
[hidden email]
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users