[ previous ] [ next ] [ threads ]
 To :  Yate mailing list <yate@v...>
 From :  Philipp Kempgen <philipp.kempgen@a...>
 Subject :  Re: [yate] On every system I install, I can run yate from the installdirectory using ./run, but even though I run 'make install', I can't runyate any other way
 Date :  Thu, 28 Aug 2008 12:25:14 +0200
Stefan Wintermeyer schrieb:
> Am 28.08.2008 um 04:31 schrieb Jim Van Meggelen:

>> yate: error while loading shared libraries: libyate.so.2.0.0: cannot  
>> open
>> shared object file: No such file or directory
>> I have checked and the library is in /usr/local/lib.

The library path is usually /lib and /usr/lib, so ld doesn't
try to find it in /usr/local/lib. But the latter seems to be the
best place for non-system shared libraries.

> Create /etc/ld.so.conf.d/yate.conf with the following content:
> ---cut---
> /usr/local/lib
> ---cut---
> Then run "ldconfig" and you are all set to run "yate".
>> 2) why would the 'make install' not take care of that
> I totally agree with you.
> @yate-team: In case it is "dirty" to do it in "make install" it would  
> be a good thing to print a message at the end of "make install" which  
> says "please run ldconfig bla bla bla".

`make install` needs to be run through `sudo` anyway so it
could as well do
	echo '/usr/local/lib' > /etc/ld.so.conf.d/yate.conf
(unless you ./configure with a custom --libdir)

I agree Yate should make it as easy as possible for the user.

   Philipp Kempgen

http://www.das-asterisk-buch.de  -  http://www.the-asterisk-book.com
Amooma GmbH - Bachstr. 126 - 56566 Neuwied  ->  http://www.amooma.de
Geschäftsführer: Stefan Wintermeyer, Handelsregister: Neuwied B14998