<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. 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 <<a href="mailto:kelman@berkeley.edu">kelman@berkeley.edu</a>> 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> </div>
<div>-Tony</div>
<div> </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> </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> </div>
</div>
<div style="font-size: small; font-family: Calibri; font-weight: normal; font-style: normal; text-decoration: none; display: inline; ">
Hi all,
<div> </div>
<div>I compiled and installed Ipopt and the R interface/package (ipoptr) on Mac OS X 10.8.5 as follows:</div>
<div> </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="-framework vecLib" --with-lapack="-framework vecLib" \</div>
<div>F77=gfortran FFLAGS="-fexceptions -m64 -fbackslash" \</div>
<div>CFLAGS="-fno-common -no-cpp-precomp -fexceptions -arch x86_64 -m64" \</div>
<div>CXXFLAGS="-fno-common -no-cpp-precomp -fexceptions -arch x86_64 -m64"</div>
<div>make</div>
<div>make test</div>
<div>sudo make install</div>
<div> </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> </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> </div>
<div>However, when I run the examples in ipoptr, I get the following error (start/end hash lines added by me):</div>
<div> </div>
<div>######## ERROR MESSAGE START ############</div>
<div> </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> For more information visit <a href="http://projects.coin-or.org/Ipopt">
http://projects.coin-or.org/Ipopt</a></div>
<div>******************************************************************************</div>
<div> </div>
<div>NOTE: You are using Ipopt by default with the MUMPS linear solver.</div>
<div> Other linear solvers might be more efficient (see Ipopt documentation).</div>
<div> </div>
<div> </div>
<div>This is Ipopt version 3.11.3, running with linear solver mumps.</div>
<div> </div>
<div>Number of nonzeros in equality constraint Jacobian...: 0</div>
<div>Number of nonzeros in inequality constraint Jacobian.: 0</div>
<div>Number of nonzeros in Lagrangian Hessian.............: 0</div>
<div> </div>
</div>
<div>Error in ipoptr(x0 = x0, eval_f = eval_f, eval_grad_f = eval_grad_f, eval_h = eval_h, :
</div>
<div>
<div> 'rho' must be an environment not NULL: detected in C-level eval</div>
</div>
<div> </div>
<div>######## ERROR MESSAGE END ############</div>
<div> </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 "rho" 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> </div>
<div>Thanks, much appreciate any help!</div>
<div> </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>