Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: LD_LIBRARY_PATH under linux
Replies: 12   Last Post: May 16, 2014 11:46 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Dan Shecjter

Posts: 2
Registered: 6/11/09
LD_LIBRARY_PATH under linux
Posted: Jun 11, 2009 5:06 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi,
I'm trying to set my LD_LIBRARY_PATH from within matlab under linux so it can find my .so that one of my .mexa64 requires...

If I try this:
p = getenv('LD_LIBRARY_PATH');
p = [p ':' pwd]
setenv('LD_LIBARARY_PATH', p);

I get the same OLD, unchanged LD_LIBRARY_PATH if I do another:
getenv('LD_LIBRARY_PATH')

I assume that matlab somehow detects me trying to change that and does not like that..

I there a normal way of achieving this from within matlab or do I have to do it externally from matlab.

Also, while on the subject...
How can I get this done in a matlab application?
I.e. if I pack the .so file inside the matlab app.. I probably need to somehow get the LD_LIBRARY_PATH or something else done to get it to work...

Any ideas?



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.