<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type></HEAD>
<BODY
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'; COLOR: #000000">
<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; COLOR: #000000; FONT-STYLE: normal; TEXT-DECORATION: none; DISPLAY: inline">
<DIV style="FONT: 10pt tahoma">
<DIV> </DIV>
<DIV style="BACKGROUND: #f5f5f5">
<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; COLOR: #000000; 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>
<P>
<HR>
_______________________________________________<BR>Ipopt mailing
list<BR>Ipopt@list.coin-or.org<BR>http://list.coin-or.org/mailman/listinfo/ipopt<BR></DIV></DIV></DIV></BODY></HTML>