Open Jason245Barnett opened 2 years ago
Hi, thanks for your attention to our work.
In addition to set the file path to where the file it generated, you also need to modify the file Makevars.win according to where you install CPLEX_Studio1210 (and not just copy paste the default path).
Let us know if there are further questions.
发件人: @. @.> 代表 Jason245Barnett 发送时间: Thursday, March 17, 2022 8:56 AM 收件人: LiChenPU/NetID @.> 抄送: Subscribed @.> 主题: [LiChenPU/NetID] Cannot install cplexAPI- Still not solved (Issue #6)
Hi Professor Chen,
Thanks for your amazing work ! I am trying to install cplexAPI, I encountered the similar problem. I already adopted your advice that set the file path to where the file it generated: C:\Users\User>R CMD INSTALL --build --no-multiarch C:\Users\User\Desktop\cplexAPI_1.4.0.tar.gz
I still got the following outcome:
R CMD INSTALL --build --no-multiarch \cplexAPI_1.4.0.tar.gz
installing to library 'C:/Users/PC4/Documents/R/win-library/4.1' installing source package 'cplexAPI' ... package 'cplexAPI' successfully unpacked and MD5 sums checked using staged installation ** libs "C:/rtools40/mingw64/bin/"gcc -I"C:/PROGRA1/R/R-411.2/include" -DNDEBUG -g -DR=1 -DUSE_R=1 -I"C:/Program Files/IBM/ILOG/CPLEX_Studio1210/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 #1 https://githubmemory.com/thephpleague/commonmark/issues/1 /R/R-41~1.2/etc/x64/Makeconf:238: cplexAPI.o] Error 1 ERROR: compilation failed for package 'cplexAPI' removing 'C:/Users/PC4/Documents/R/win-library/4.1/cplexAPI'
I already checked that I added R and R tools to the pathway variable. I am wondering what I can do to solve the problem? Could you please me some advice on it? Thank you so much!!
Best wishes,
Jason
― Reply to this email directly, view it on GitHub https://github.com/LiChenPU/NetID/issues/6 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AIN7EZC3U6EV22V2MLDYKTTVA J7LDANCNFSM5Q5O3SHA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&m t=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=u tm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub . You are receiving this because you are subscribed to this thread.Message ID: @.***>
Yeah I already changed that before. Since i think my version is 201.
Is there anything I can do to help?
Great thanks for your help!
Makevars.win looks like this now but it still does not work.
Sorry, I managed to install it anyway. Thanks!
Sorry, I managed to install it anyway. Thanks!
Hi Jason, Could you please let us know how u manage to install it? Thanks in advance :)
Hi Professor Chen,
Thanks for your amazing work ! I am trying to install cplexAPI, I encountered the similar problem. I already adopted your advice that set the file path to where the file it generated: C:\Users\User>R CMD INSTALL --build --no-multiarch C:\Users\User\Desktop\cplexAPI_1.4.0.tar.gz
I still got the following outcome:
R CMD INSTALL --build --no-multiarch \cplexAPI_1.4.0.tar.gz
installing to library 'C:/Users/PC4/Documents/R/win-library/4.1' installing source package 'cplexAPI' ... package 'cplexAPI' successfully unpacked and MD5 sums checked using staged installation ** libs "C:/rtools40/mingw64/bin/"gcc -I"C:/PROGRA~1/R/R-41~1.2/include" -DNDEBUG -g -DR=1 -DUSE_R=1 -I"C:/Program Files/IBM/ILOG/CPLEX_Studio1210/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 #1/R/R-41~1.2/etc/x64/Makeconf:238: cplexAPI.o] Error 1 ERROR: compilation failed for package 'cplexAPI' removing 'C:/Users/PC4/Documents/R/win-library/4.1/cplexAPI'
I already checked that I added R and R tools to the pathway variable. I am wondering what I can do to solve the problem? Could you please me some advice on it? Thank you so much!!
Best wishes,
Jason