Hi Andre,<div>I think that you just need to set DYLD_LIBRARY_PATH to the directory of the libraries (rather than LIBPATH).</div><div>Also, if you use a binary version, I would recommend that you use the version of Bonmin in binaries/CoinAll. It is much more recent.</div>
<div>Best,</div><div>Pierre<br><div class="gmail_quote">
On Mon, Jan 16, 2012 at 7:07 PM, Andre Girard <span dir="ltr">&lt;<a href="mailto:andre.girard@gerad.ca" target="_blank">andre.girard@gerad.ca</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hello all<br>
<br>
I downloaded the osx version of Bonmin but I am having a problem when I want to run it from ampl. I run this script run.sh from the amplExamples directory<br>
<br>
export PATH=$PATH:../../bin<br>
#<br>
#  Set up lib path<br>
export LIBPATH=$LIBPATH:../../lib<br>
#<br>
echo &#39;LIBPATH&#39;<br>
printenv LIBPATH<br>
echo &#39;PATH&#39;<br>
printenv PATH<br>
ampl toy.mod<br>
<br>
This is the output I get<br>
<br>
<br>
Andre-Girards-MacBook-Pro:amplExamples andre$ sh run.sh<br>
LIBPATH<br>
:../../lib<br>
PATH<br>
/opt/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/texbin:/usr/X11/bin:../../bin<br>
dyld: Library not loaded: /Users/kmartin/coin/COINNightlyBuild/Bonmin/releases-0.99.2-default/lib/libbonminampl.0.dylib<br>
  Referenced from: /Users/andre/Desktop/Bonmin-0.99.2-mac-osx-ix86-gcc4.0.1/examples/amplExamples/../../bin/bonmin<br>
  Reason: image not found<br>
error running bonmin:<br>
        termination code 5<br>
&lt;BREAK&gt;<br>
<br>
A workaround would be greatly appreciated.<br>
<br>
I tried to post a bug report on trac but I was not able find a button to register. Maybe someone can point me in the right direction so that I can file a bug.<br>
<br>
Regards<br>
<br>
A. Girard<br>
<br>
_______________________________________________<br>
Bonmin mailing list<br>
<a href="mailto:Bonmin@list.coin-or.org" target="_blank">Bonmin@list.coin-or.org</a><br>
<a href="http://list.coin-or.org/mailman/listinfo/bonmin" target="_blank">http://list.coin-or.org/mailman/listinfo/bonmin</a><br>
</blockquote></div><br></div>