<div>If I move libspice-server libraries to /usr/bin there are not any problem and qemu starts correctly<br></div><div><br></div><div>ldd ./qemu-system-x86_64 | grep spice </div><div>-&gt;libspice-server.so.1 =&gt; /usr/lib/libspice-server.so.1 (0x00007f105edee000)</div>
<div><br></div><div><br></div><div><br></div><div>If I move libspice-server libraries to /usr/local/bin</div><div><br></div><div>ldd ./qemu-system-x86_64 | grep spice</div><div>-&gt;libspice-server.so.1 =&gt; /usr/local/lib/libspice-server.so.1 (0x00007fe07e24f000)</div>
<div><br></div><div>but when I run qemu I obtain the following error:</div><div>./qemu-system-x86_64: error while loading shared libraries: libspice-server.so.1: cannot open shared object file: No such file or directory<br>
<br></div><div>Qemu starts only if I put spice server libraries in /usr/lib.</div><div><br></div><br><div class="gmail_quote">2011/6/29 Christophe Fergeau <span dir="ltr">&lt;<a href="mailto:cfergeau@redhat.com">cfergeau@redhat.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On Wed, Jun 29, 2011 at 11:23:45AM +0200, Andrea Celestino wrote:<br>
&gt; I checked with &#39;ldd&#39; where qemu it&#39;s looking for spice-server:<br>
&gt; /usr/lib/<br>
&gt; but I installed spice 0.8.1 libraries in /usr/local/lib. This is the<br>
&gt; problem.<br>
&gt;<br>
&gt; I have tried to rebuild qemu after the command<br>
&gt; export LD_LIBRARY_PATH=/usr/local/lib<br>
&gt; but I didn&#39;t solve the problem. He looks for spice server in /usr/lib and<br>
&gt; not in /usr/local/lib.<br>
<br>
</div>LD_LIBRARY_PATH is not used at compile time, it&#39;s used by the runtime<br>
linker to locate libraries. You can compare<br>
ldd ... | grep spice<br>
with<br>
LD_LIBRARY_PATH=/usr/local/lib ldd ... | grep spice<br>
<font color="#888888"><br>
Christophe<br>
</font></blockquote></div><br>