<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; ">
Hi everyone,
<div><br>
</div>
<div>Thanks very much for responding. With Jelmer's help, I sorted things out by making some very minor changes in the R interface code.&nbsp;I have sent mail to Jelmer, Andreas and Stefan describing these changes.</div>
<div><br>
</div>
<div>Thanks again.</div>
<div><br>
</div>
<div>Best wishes,</div>
<div>Anirban</div>
<div><br>
<div>
<div>On Sep 1, 2013, at 10:47 PM, Tony Kelman &lt;<a href="mailto:kelman@berkeley.edu">kelman@berkeley.edu</a>&gt; wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div style="WORD-WRAP: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space" dir="ltr">
<div dir="ltr">
<div style="font-size: 12pt; font-family: Calibri; ">
<div>Looks like that’s coming from <a href="http://svn.r-project.org/R/trunk/src/main/eval.c">
<font face="Times New Roman">http://svn.r-project.org/R/trunk/src/main/eval.c</font></a>, inside R rather than in the Ipopt interface. I don’t know much of anything about R so take this with a grain of salt, but it might be that Ipopt configure was defaulting
 to CC=cc, which as of Mountain Lion is clang instead of gcc. Try setting CC=gcc in Ipopt configure, see if that helps?</div>
<div>&nbsp;</div>
<div>-Tony</div>
<div>&nbsp;</div>
<div style="font-size: small; font-family: Calibri; font-weight: normal; font-style: normal; text-decoration: none; display: inline; ">
<div style="FONT: 10pt tahoma">
<div>&nbsp;</div>
<div style="background-color: rgb(245, 245, 245); position: static; z-index: auto; background-position: initial initial; background-repeat: initial initial; ">
<div style="font-color: black"><b>From:</b> <a title="anirbanm@smu.edu.sg" href="mailto:anirbanm@smu.edu.sg">
Anirban MUKHERJEE</a> </div>
<div><b>Sent:</b> Friday, August 30, 2013 5:15 AM</div>
<div><b>To:</b> <a title="ipopt@list.coin-or.org" href="mailto:ipopt@list.coin-or.org">
ipopt@list.coin-or.org</a> </div>
<div><b>Subject:</b> [Ipopt] R interface (ipoptr) problem</div>
</div>
</div>
<div>&nbsp;</div>
</div>
<div style="font-size: small; font-family: Calibri; font-weight: normal; font-style: normal; text-decoration: none; display: inline; ">
Hi all,
<div>&nbsp;</div>
<div>I compiled and installed Ipopt and the R interface/package (ipoptr) on Mac OS X 10.8.5 as follows:</div>
<div>&nbsp;</div>
<div>
<div>mkdir ipopt</div>
<div>cd ~/ipopt</div>
<div>wget <a href="http://www.coin-or.org/download/source/Ipopt/Ipopt-3.11.3.tgz">
http://www.coin-or.org/download/source/Ipopt/Ipopt-3.11.3.tgz</a></div>
<div>tar zxvf Ipopt-3.11.3.tgz</div>
<div>cd ~/ipopt/Ipopt-3.11.3/ThirdParty/Metis/</div>
<div>./get.Metis</div>
<div>cd ~/ipopt/Ipopt-3.11.3/ThirdParty/Mumps/</div>
<div>./get.Mumps</div>
<div>cd ~/ipopt/Ipopt-3.11.3</div>
<div>mkdir build64</div>
<div>cd ~/ipopt/Ipopt-3.11.3/build64</div>
<div>../configure --disable-shared --prefix=/usr/local \</div>
<div>--with-blas=&quot;-framework vecLib&quot; --with-lapack=&quot;-framework vecLib&quot; \</div>
<div>F77=gfortran FFLAGS=&quot;-fexceptions -m64 -fbackslash&quot; \</div>
<div>CFLAGS=&quot;-fno-common -no-cpp-precomp -fexceptions -arch x86_64 -m64&quot; \</div>
<div>CXXFLAGS=&quot;-fno-common -no-cpp-precomp -fexceptions -arch x86_64 -m64&quot;</div>
<div>make</div>
<div>make test</div>
<div>sudo make install</div>
<div>&nbsp;</div>
<div>That seems to have installed ok (passes make test). I then installed ipoptr (R interface) from the build directory as described here:</div>
<div>&nbsp;</div>
<div><a href="http://www.coin-or.org/Ipopt/documentation/node17.html">http://www.coin-or.org/Ipopt/documentation/node17.html</a></div>
<div>&nbsp;</div>
<div>However, when I run the examples in ipoptr, I get the following error (start/end hash lines added by me):</div>
<div>&nbsp;</div>
<div>######## ERROR MESSAGE START ############</div>
<div>&nbsp;</div>
<div>
<div>******************************************************************************</div>
<div>This program contains Ipopt, a library for large-scale nonlinear optimization.</div>
<div>Ipopt is released as open source code under the Eclipse Public License (EPL).</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; For more information visit <a href="http://projects.coin-or.org/Ipopt">
http://projects.coin-or.org/Ipopt</a></div>
<div>******************************************************************************</div>
<div>&nbsp;</div>
<div>NOTE: You are using Ipopt by default with the MUMPS linear solver.</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Other linear solvers might be more efficient (see Ipopt documentation).</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>This is Ipopt version 3.11.3, running with linear solver mumps.</div>
<div>&nbsp;</div>
<div>Number of nonzeros in equality constraint Jacobian...:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0</div>
<div>Number of nonzeros in inequality constraint Jacobian.:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0</div>
<div>Number of nonzeros in Lagrangian Hessian.............:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0</div>
<div>&nbsp;</div>
</div>
<div>Error in ipoptr(x0 = x0, eval_f = eval_f, eval_grad_f = eval_grad_f, eval_h = eval_h,&nbsp; :
</div>
<div>
<div>&nbsp; 'rho' must be an environment not NULL: detected in C-level eval</div>
</div>
<div>&nbsp;</div>
<div>######## ERROR MESSAGE END ############</div>
<div>&nbsp;</div>
<div>I get the same error for all the examples (from the tests directory in the R package). Any suggestions? I tried looking at the code to see if I could find a &quot;rho&quot; but couldn't see anything. Btw: I am using R compiled on my own computer and not the CRAN
 binary. I have checked my R installation, and excepting ipoptr, all seems fine.</div>
<div>&nbsp;</div>
<div>Thanks, much appreciate any help!</div>
<div>&nbsp;</div>
<div>Best wishes,</div>
<div>Anirban</div>
</div>
<div><br class="webkit-block-placeholder">
</div>
<hr>
_______________________________________________<br>
Ipopt mailing list<br>
<a href="mailto:Ipopt@list.coin-or.org">Ipopt@list.coin-or.org</a><br>
http://list.coin-or.org/mailman/listinfo/ipopt<br>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</body>
</html>