help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

putenv('LD_LIBRARY_PATH',...) does not work


From: Guan, Yun
Subject: putenv('LD_LIBRARY_PATH',...) does not work
Date: Thu, 25 Jan 2007 11:09:50 -0600 (CST)
User-agent: SquirrelMail/1.4.5

Hi, everyone

any help for following problem will be appreciated.

To use MPITB for Octave, I need to be able to start an octave session in a
xterm windown, i.e. by using command "xterm -e octave". But I found out
that $LD_LIBRARY_PATH is reset by our system because xterm is setgid, i.e.
-rwxr-sr-x for xterm.

Then, I tried to use putenv to set LD_LIBRARY_PATH, but still that
libmpi.so.0 could not be found. Output I see on my desktop is at the end
of this email. Well,I probably cann't say putenv does not work since
$LD_LIBRARY_PATH is changed after using that command, but MPITB does not
recognize that.

Any suggestion how to fix the problem? I don't see the point why xterm is
setgid based on the Secutiry Considerations part in the article at
http://mirror.sg.depaul.edu/pub/x.org/R6.6/tars/RELNOTES.TXT
It seems installing xterm setuid-root is default. But on our system, xterm
is setgid, what is the point?

Thanks,

Yun
-------------------------------------------------------------------------
octave:1>getenv('LD_LIBRARY_PATH')
ans =
octave:2>putenv('LD_LIBRARY_PATH','/huis/yun/lam/7.1.2/lib:/usr/lib/octave-2.1.64')
octave:3>getenv('LD_LIBRARY_PATH')
ans = /huis/yun/lam/7.1.2/lib:/usr/lib/octave-2.1.64
octave:4>MPI_Init
error: libmpi.so.0: cannot open shared object file: No such file or directory
octave:4>
---------------------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]