How can I solve the CPLEX directory issues in R

Viewed 54

The problem is that, am trying to install a package cplexAPI using the code

install.packages("cplexAPI")
"C:/rtools40/mingw32/bin/"gcc  -I"C:/PROGRA~1/R/R-40~1.5/include" -DNDEBUG -g -D_R_=1 -DUSE_R=1 -I"\cplex\include"         -O2 -Wall  -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c cplexAPI.c -o cplexAPI.o
In file included from cplexAPI.h:26,
                 from cplexAPI.c:26:
cplexR.h:50:10: fatal error: ilcplex/cplex.h: No such file or directory
 #include <ilcplex/cplex.h>
          ^~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [C:/PROGRA~1/R/R-40~1.5/etc/i386/Makeconf:222: cplexAPI.o] Error 1
ERROR: compilation failed for package 'cplexAPI'
* removing 'C:/Users/ATM/Documents/R/win-library/4.0/cplexAPI'
Warning in install.packages :
 installation of package ‘cplexAPI’ had non-zero exit status

What have done

Have installed IBM ILOG CPLEX Optimization Studio

Version: 12.10.0.0

and tried to install the package again and i experience the same issue

Kindly assist

0 Answers
Related