<div dir="ltr"><div dir="ltr"><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jan 2, 2014 at 10:44 AM, Hongying Li <span dir="ltr">&lt;<a href="mailto:lihongying17@gmail.com" target="_blank">lihongying17@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi again, <div><br></div><div>I just $ mv ~/bin/csdp /usr/local/bin</div><div>Now everything goes well.</div>
<div><br></div><div>Maybe the $PATH  is reseted somewhere, like in this one about rvm:  <a href="http://stackoverflow.com/questions/9561519/why-does-zsh-return-command-not-found-error-for-my-rvm-gems" target="_blank">http://stackoverflow.com/questions/9561519/why-does-zsh-return-command-not-found-error-for-my-rvm-gems</a></div>
<div><br></div><div>Better solutions ?</div><div><br></div><div>I forget to note that I’m using zsh, and .oh-my-zsh.</div><div>I have my PATH settings in .zshrc</div></div></blockquote><div><br></div><div>The problem here was that when MATLAB executed the &quot;system(&#39;csd&#39;)&quot; command, it started up a shell (I&#39;m not sure which shell, but it could have been e.g. csh), and that shell could not find the csdp executable in its search path.  You resolved the problem by moving the csdp executable into /usr/local/bin.  I don&#39;t know how MATLAB decides what shell to execute commands with- it&#39;s not clear at all that it will use your zsh shell.  </div>
</div></div><br clear="all"><div><br></div>-- <br>Brian Borchers                          <a href="mailto:borchers@nmt.edu" target="_blank">borchers@nmt.edu</a><br>Department of Mathematics      <a href="http://www.nmt.edu/~borchers/" target="_blank">http://www.nmt.edu/~borchers/</a><br>
New Mexico Tech                       Phone: (575) 322-2592<br>Socorro, NM 87801                   FAX: (575) 835-5366
</div>