error while loading shared libraries: libQuantLib.so.0: cannot open shared object file: No such file or directory

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

error while loading shared libraries: libQuantLib.so.0: cannot open shared object file: No such file or directory

Adam Mertz
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.

Thanks,
Adam

------------------------------------------------------------------------------
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
Reply | Threaded
Open this post in threaded view
|

Re: error while loading shared libraries: libQuantLib.so.0: cannot open shared object file: No such file or directory

Peter Caspers-4
Hi Adam,

is /usr/local/lib part of the enviroment variable LD_LIBRARY_PATH ?
You can use echo $LD_LIBRARY_PATH in a terminal session to output the
variable.

Best regards
Peter


On 9 May 2015 at 02:09, Adam Mertz <[hidden email]> 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.
>
> Thanks,
> Adam
>
> ------------------------------------------------------------------------------
> 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
>

------------------------------------------------------------------------------
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
Reply | Threaded
Open this post in threaded view
|

Re: error while loading shared libraries: libQuantLib.so.0: cannot open shared object file: No such file or directory

Adam Mertz
Eric's solution seems to of fixed it. Thank you both.

Adam

On Sat, May 9, 2015 at 5:03 AM, Peter Caspers <[hidden email]> wrote:
Hi Adam,

is /usr/local/lib part of the enviroment variable LD_LIBRARY_PATH ?
You can use echo $LD_LIBRARY_PATH in a terminal session to output the
variable.

Best regards
Peter


On 9 May 2015 at 02:09, Adam Mertz <[hidden email]> 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.
>
> Thanks,
> Adam
>
> ------------------------------------------------------------------------------
> 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
>


------------------------------------------------------------------------------
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
Reply | Threaded
Open this post in threaded view
|

Re: error while loading shared libraries: libQuantLib.so.0: cannot open shared object file: No such file or directory

Peter Caspers-4
mind to share ?

On 9 May 2015 at 17:11, Adam Mertz <[hidden email]> wrote:

> Eric's solution seems to of fixed it. Thank you both.
>
> Adam
>
> On Sat, May 9, 2015 at 5:03 AM, Peter Caspers <[hidden email]>
> wrote:
>>
>> Hi Adam,
>>
>> is /usr/local/lib part of the enviroment variable LD_LIBRARY_PATH ?
>> You can use echo $LD_LIBRARY_PATH in a terminal session to output the
>> variable.
>>
>> Best regards
>> Peter
>>
>>
>> On 9 May 2015 at 02:09, Adam Mertz <[hidden email]> 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.
>> >
>> > Thanks,
>> > Adam
>> >
>> >
>> > ------------------------------------------------------------------------------
>> > 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
>> >
>
>

------------------------------------------------------------------------------
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
Reply | Threaded
Open this post in threaded view
|

Re: error while loading shared libraries: libQuantLib.so.0: cannot open shared object file: No such file or directory

Dirk Eddelbuettel
In reply to this post by Adam Mertz

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/+packages

Dirk

--
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
Reply | Threaded
Open this post in threaded view
|

Re: error while loading shared libraries: libQuantLib.so.0: cannot open shared object file: No such file or directory

Eric Ehlers-3
In reply to this post by Peter Caspers-4
Hi Peter,

> > Eric's solution seems to of fixed it. Thank you both.

> mind to share ?

I suggested he try

export LD_LIBRARY_PATH=/usr/local/lib

Kind Regards,
Eric

------------------------------------------------------------------------------
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
Reply | Threaded
Open this post in threaded view
|

Re: error while loading shared libraries: libQuantLib.so.0: cannot open shared object file: No such file or directory

Peter Caspers-4
Hi Eric,
thanks !
best  regards
Peter

On 11 May 2015 at 11:30, Eric Ehlers <[hidden email]> wrote:

> Hi Peter,
>
>> > Eric's solution seems to of fixed it. Thank you both.
>
>> mind to share ?
>
> I suggested he try
>
> export LD_LIBRARY_PATH=/usr/local/lib
>
> Kind Regards,
> Eric

------------------------------------------------------------------------------
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