[Ipopt-tickets] [Ipopt] #258: Problems with using the R Interface

Ipopt coin-trac at coin-or.org
Sun Feb 8 06:15:30 EST 2015


#258: Problems with using the R Interface
--------------------+------------------------
Reporter:  danielb  |      Owner:  ipopt-team
    Type:  defect   |     Status:  new
Priority:  normal   |  Component:  Ipopt
 Version:           |   Severity:  normal
Keywords:           |
--------------------+------------------------
 After building and installing IPOPT (version 3.12) under Windows 7 (64bit)
 with Cygwin, I have problems using it in R. All commands ( configure,
 make, make install, make test) are executed without error.

 When I try to build the R interface, I use the code in the "build" folder.
 The following error message occurs:


 {{{
 Error in reading:
 'C:/cygwin/home/daniel/CoinIpopt/build/Ipopt/contrib/RInterface/DESCRIPTION'
 }}}

 When I try to build from the source folder, I get another error message:

 {{{
 >
 install.packages('C:/cygwin/home/daniel/CoinIpopt/Ipopt/contrib/RInterface',
 repos=NULL, type='source')
 Installing package into ‘C:/Users/daniel/Documents/R/win-library/3.1’
 (as ‘lib’ is unspecified)
 * installing *source* package 'ipoptr' ...
 ** libs

 *** arch - i386
 g++ -m32 -I"C:/PROGRA~1/R/R-31~1.2/include" -DNDEBUG
 -I"d:/RCompile/CRANpkg/extralibs64/local/include"     -O2 -Wall
 -mtune=core2 -c IpoptRJournal.cpp -o IpoptRJournal.o
 In file included from IpoptRJournal.cpp:17:0:
 IpoptRJournal.hpp:20:48: fatal error: IpJournalist.hpp: No such file or
 directory
 compilation terminated.
 make: *** [IpoptRJournal.o] Error 1
 Warnung: Ausführung von Kommando 'make -f
 "C:/PROGRA~1/R/R-31~1.2/etc/i386/Makeconf" -f
 "C:/PROGRA~1/R/R-31~1.2/share/make/winshlib.mk"
 SHLIB_LDFLAGS='$(SHLIB_CXXLDFLAGS)' SHLIB_LD='$(SHLIB_CXXLD)'
 SHLIB="ipoptr.dll" OBJECTS="IpoptRJournal.o IpoptRNLP.o ipoptr.o"' ergab
 Status 2
 ERROR: compilation failed for package 'ipoptr'
 * removing 'C:/Users/daniel/Documents/R/win-library/3.1/ipoptr'
 Warning in install.packages :
   running command '"C:/PROGRA~1/R/R-31~1.2/bin/x64/R" CMD INSTALL -l
 "C:\Users\daniel\Documents\R\win-library\3.1"
 "C:/cygwin/home/daniel/CoinIpopt/Ipopt/contrib/RInterface"' had status 1
 Warning in install.packages :
   installation of package
 ‘C:/cygwin/home/daniel/CoinIpopt/Ipopt/contrib/RInterface’ had non-zero
 exit status

 }}}

 Do you have an idea, what I'm doing wrong here? Thanks in advance!

--
Ticket URL: <https://projects.coin-or.org/Ipopt/ticket/258>
Ipopt <http://projects.coin-or.org/Ipopt>
Interior-point optimizer for nonlinear programs.



More information about the Ipopt-tickets mailing list