From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,20a4fafff18f08ca X-Google-Attributes: gid111c93,public From: rsimpson@ewrcsdra.CutThisOut.demon.co.uk Subject: Re: How to 'install' the CPML - and why? Date: 1999/06/15 Message-ID: #1/1 X-Deja-AN: 489834467 References: <7jtli3$5ia$1@baker.cc.tut.fi> Organization: Defence Evaluation & Research Agency User-Agent: tin/pre-1.4-19990216 ("Styrofoam") (UNIX) (Linux/2.2.9 (i686)) Newsgroups: comp.os.linux.alpha Riku Anttila 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.