<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Thank you !<div><br></div><div>I will try that.</div><div>Annick<br><div style=""><div>Le 23 oct. 2014 à 17:49, Eliot Miranda &lt;<a href="mailto:eliot.miranda@gmail.com">eliot.miranda@gmail.com</a>&gt; a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 23, 2014 at 8:46 AM, Eliot Miranda <span dir="ltr">&lt;<a href="mailto:eliot.miranda@gmail.com" target="_blank">eliot.miranda@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Hi Annick,<div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Wed, Oct 22, 2014 at 5:45 AM, Annick Fron <span dir="ltr">&lt;<a href="mailto:list@afceurope.com" target="_blank">list@afceurope.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi Eliot,<br>
<br>
&nbsp; &nbsp; &nbsp; &nbsp; My problem is not with the VM, my problem is with my own library that I connect to through FFI.<br>
I know where the libraries are !<br>
<br>
I have tried to add them in /etc/ld.so.conf.d , that does not work.<br>
I have tried export LD_LIBRARY_PATH, but somehow it erases some libraries needed by pharo.<br></blockquote><div><br></div></span><div>But if you use the script I include with my VMs it won't erase.&nbsp; It extends LD_LIBRARY_PATH.&nbsp; Find an example attached.</div></div></div></div></blockquote><div><br></div><div>Here's the operative line (the last one). PLUGINS is the directory containing VM plugins, SVMLLP is "Smalltalk VM LD_LIBRARY_PATH" and specifies the directories containing the C libraries the VM depends on (C library, libuuid, etc).</div><div><br></div><div>LD_LIBRARY_PATH=$PLUGINS:$SVMLLP:${LD_LIBRARY_PATH} exec "$BIN/squeak" "$@"</div><div>&nbsp;</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class=""><div><br></div><div>&nbsp;</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
I have done sudo ldconfig ...<br>
<br>
In fact I have one library that depends from another one.<br>
In FFI I call one method which calls another method in the other library.<br>
I have tried to create symbolics links in the directory …<br>
I have checked that nm gives the right symbol with the right type ..<br>
<br>
So I have no idea what to try now !<br>
<br>
Annick<br>
<br>
Le 22 oct. 2014 à 12:46, Eliot Miranda &lt;<a href="mailto:eliot.miranda@gmail.com" target="_blank">eliot.miranda@gmail.com</a>&gt; a écrit :<br>
<div><br>
&gt; Hi Annick,<br>
&gt;<br>
&gt;&nbsp; &nbsp; &nbsp;LD_LIBRARY_PATH should be set to point to the relevant directories, but this can be tricky as there is a lot if variation across Linux distros as to where libraries are kept.&nbsp; The squeak script that comes with the Cog VMs extends LD_LIBRARY_PATH, so if you know where your libraries are you can use the script to find the other libraries the VM needs (c library and plugins).<br>
&gt;<br>
&gt; Eliot (phone)<br>
&gt;<br>
&gt; On Oct 22, 2014, at 2:55 AM, Annick Fron &lt;<a href="mailto:list@afceurope.com" target="_blank">list@afceurope.com</a>&gt; wrote:<br>
&gt;<br>
&gt;&gt; Hi,<br>
&gt;&gt;<br>
&gt;&gt; I am using a module in FFI which depends on a large library let’s say 10 dynamic .so files in a directory.<br>
&gt;&gt; How is it possible to use this library without making all symbolic links ?<br>
&gt;&gt;<br>
&gt;&gt; Annick<br>
&gt;<br>
<br>
<br>
</div></blockquote></span></div><span class=""><font color="#888888"><br><br clear="all"><div><br></div>-- <br>best,<div>Eliot</div>
</font></span></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>best,<div>Eliot</div>
</div></div>
</blockquote></div><br></div></body></html>