From: rsimpson@ewrcsdra.CutThisOut.demon.co.uk
Subject: Re: How to 'install' the CPML - and why?
Date: 1999/06/15 [thread overview]
Message-ID: <lmg5k7.5ol.ln@snowwhite> (raw)
In-Reply-To: 7jtli3$5ia$1@baker.cc.tut.fi
Riku Anttila <rixa@looksignatureforaddress.tut.fi> wrote:
:> 2) Completely replacing libm-6.1 with cpml doesn't work. It breaks
:> various codes including gimp. Creative use of LD_LIBRARY_PATH fixes
:> the problem.
: Many other applications are affected as well. What do you mean by creative
: use of LD_LIBRARY_PATH? Did you figure a way to fix the problem for good?
: I made a small script that links libm.so.6.1 to the desired math library,
: but I have to use it manually every time I want to change.
1) Create a directory containing the shared version of cpml renamed to be
(for example) /usr/local/lib/cpml/libm.so.6.1
2) setenv LD_LIBRARY_PATH /usr/local/lib/cpml:$LD_LIBRARY_PATH
3) setiathome
You could put staged 2 & 3 together in a simple script. When an applications starts
it searches for shared libraries in the directories pointed to by LD_LIBRARY_PATH
before looking in the system defaults (e.g. /lib).
To check that it is working use strace to watch what files are being opened.
--
Richard Simpson
Farnborough, Hants, Uk Fax: 01252 392118
rsimpson@ewrcsdra.Cut_This_Out.demon.co.uk
I am not aware of any views shared by myself and my employers.
prev parent reply other threads:[~1999-06-15 4:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-06-05 4:00 How to 'install' the CPML - and why? Paavo Hartikainen
1999-06-11 4:00 ` rsimpson
1999-06-12 4:00 ` Riku Anttila
1999-06-15 4:00 ` rsimpson [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox