-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to install the package "cplexAPI" #5
Comments
Please check the user guide.
4. In command line, run line below to install package.
R CMD INSTALL --build --no-multiarch .\cplexAPI_1.4.0.tar.gz
If you see DONE (cplexAPI), then the package installation is successful.
Note: if error occurs relating to __declspec(dllimport deprecated), you need to go
to C:\Program Files\IBM\ILOG\CPLEX_Studio1210\cplex\include\ilcplex (or your
own installation folder), open the file cpxconst.h, go to the line indicated in the error
message or search for __declspec(dllimport deprecated), add _ in between, make it
to __declspec(dllimport_deprecated). Save file and repeat step 4.
发件人: ***@***.*** ***@***.***> 代表 ZENGTing94
发送时间: Thursday, November 18, 2021 7:32 PM
收件人: LiChenPU/NetID ***@***.***>
抄送: Subscribed ***@***.***>
主题: [LiChenPU/NetID] Unable to install the package "cplexAPI" (Issue #5)
Dear Prof.Chen,
Thanks for your excellent work! I am a graduate student majoring in metabolomics. According to your User_guide, I have installed R, Rstudio, Rtools40, CPLEX and Git. And my question is in the step 1.3.2. I can't install the package "cplexAPI".
setwd("C:/Users/11458/Desktop/cplexAPI")
devtools::build(vignettes=FALSE)
√ checking for file 'C:\Users\11458\Desktop\cplexAPI/DESCRIPTION' ...
* preparing 'cplexAPI':
√ checking DESCRIPTION meta-information ...
* cleaning src
√ checking vignette meta-information (421ms)
* checking for LF line-endings in source and make files and shell scripts
* checking for empty or unneeded directories
* building 'cplexAPI_1.4.0.tar.gz'
Warning: file 'cplexAPI/cleanup' did not have execute permissions: corrected
Warning: file 'cplexAPI/configure' did not have execute permissions: corrected
[1] "C:/Users/11458/Desktop/cplexAPI_1.4.0.tar.gz"
install.packages("C:/Users/11458/Desktop/cplexAPI_1.4.0.tar.gz", repos = NULL, type = "source")
Installing package into ‘C:/Users/11458/Documents/R/win-library/4.1’
(as ‘lib’ is unspecified)
* installing source package 'cplexAPI' ...
** using staged installation
** libs
*** arch - i386
/mingw32/bin/gcc -I"C:/PROGRA1/R/R-411.2/include" -DNDEBUG -g -D_R_=1 -DUSE_R=1 -I"C:/Program Files/IBM/ILOG/CPLEX_Studio_Community201/cplex/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c cplexAPI.c -o cplexAPI.o
C:/Program Files/IBM/ILOG/CPLEX_Studio_Community201/cplex/include/ilcplex/cpxconst.h:251:62: error: expected ')' before 'deprecated'
define CPXDEPRECATEDAPI(version) __declspec(dllimport deprecated)
^~~~~~~~~~
C:/Program Files/IBM/ILOG/CPLEX_Studio_Community201/cplex/include/ilcplex/cplex.h:1587:1: note: in expansion of macro 'CPXDEPRECATEDAPI'
CPXDEPRECATEDAPI(20010000)
^~~~~~~~~~~~~~~~
C:/Program Files/IBM/ILOG/CPLEX_Studio_Community201/cplex/include/ilcplex/cpxconst.h:251:41: error: expected identifier or '(' before ')' token
define CPXDEPRECATEDAPI(version) __declspec(dllimport deprecated)
^~~~~~~~~~
C:/Program Files/IBM/ILOG/CPLEX_Studio_Community201/cplex/include/ilcplex/cplex.h:1587:1: note: in expansion of macro 'CPXDEPRECATEDAPI'
CPXDEPRECATEDAPI(20010000)
^~~~~~~~~~~~~~~~
C:/Program Files/IBM/ILOG/CPLEX_Studio_Community201/cplex/include/ilcplex/cpxconst.h:251:62: error: expected ')' before 'deprecated'
define CPXDEPRECATEDAPI(version) __declspec(dllimport deprecated)
^~~~~~~~~~
C:/Program Files/IBM/ILOG/CPLEX_Studio_Community201/cplex/include/ilcplex/cplex.h:1599:1: note: in expansion of macro 'CPXDEPRECATEDAPI'
CPXDEPRECATEDAPI(20010000)
^~~~~~~~~~~~~~~~
C:/Program Files/IBM/ILOG/CPLEX_Studio_Community201/cplex/include/ilcplex/cpxconst.h:251:41: error: expected identifier or '(' before ')' token
define CPXDEPRECATEDAPI(version) __declspec(dllimport deprecated)
^~~~~~~~~~
C:/Program Files/IBM/ILOG/CPLEX_Studio_Community201/cplex/include/ilcplex/cplex.h:1599:1: note: in expansion of macro 'CPXDEPRECATEDAPI'
CPXDEPRECATEDAPI(20010000)
^~~~~~~~~~~~~~~~
C:/Program Files/IBM/ILOG/CPLEX_Studio_Community201/cplex/include/ilcplex/cpxconst.h:251:62: error: expected ')' before 'deprecated'
define CPXDEPRECATEDAPI(version) __declspec(dllimport deprecated)
^~~~~~~~~~
C:/Program Files/IBM/ILOG/CPLEX_Studio_Community201/cplex/include/ilcplex/cplex.h:2722:1: note: in expansion of macro 'CPXDEPRECATEDAPI'
CPXDEPRECATEDAPI(20010000)
^~~~~~~~~~~~~~~~
C:/Program Files/IBM/ILOG/CPLEX_Studio_Community201/cplex/include/ilcplex/cpxconst.h:251:41: error: expected identifier or '(' before ')' token
define CPXDEPRECATEDAPI(version) __declspec(dllimport deprecated)
^~~~~~~~~~
C:/Program Files/IBM/ILOG/CPLEX_Studio_Community201/cplex/include/ilcplex/cplex.h:2722:1: note: in expansion of macro 'CPXDEPRECATEDAPI'
CPXDEPRECATEDAPI(20010000)
^~~~~~~~~~~~~~~~
cplexAPI.c: In function 'refineConflict':
cplexAPI.c:4010:14: warning: implicit declaration of function 'CPXrefineconflict'; did you mean 'CPXrefineconflictext'? [-Wimplicit-function-declaration]
status = CPXrefineconflict(R_ExternalPtrAddr(env), R_ExternalPtrAddr(lp),
^~~~~~~~~~~~~~~~~
CPXrefineconflictext
cplexAPI.c: In function 'readCopySol':
cplexAPI.c:4515:14: warning: implicit declaration of function 'CPXreadcopysol'; did you mean 'CPXreadcopyprob'? [-Wimplicit-function-declaration]
status = CPXreadcopysol(R_ExternalPtrAddr(env), R_ExternalPtrAddr(lp),
^~~~~~~~~~~~~~
CPXreadcopyprob
cplexAPI.c: In function 'refineMIPstartConflict':
cplexAPI.c:5908:14: warning: implicit declaration of function 'CPXrefinemipstartconflict'; did you mean 'CPXrefinemipstartconflictext'? [-Wimplicit-function-declaration]
status = CPXrefinemipstartconflict(R_ExternalPtrAddr(env),
^~~~~~~~~~~~~~~~~~~~~~~~~
CPXrefinemipstartconflictext
make: *** [C:/PROGRA1/R/R-411.2/etc/i386/Makeconf:238: cplexAPI.o] Error 1
ERROR: compilation failed for package 'cplexAPI'
* removing 'C:/Users/11458/Documents/R/win-library/4.1/cplexAPI'
Warning in install.packages :
installation of package ‘C:/Users/11458/Desktop/cplexAPI_1.4.0.tar.gz’ had non-zero exit status
R CMD INSTALL --build --no-multiarch .\cplexAPI_1.4.0.tar.gz
Error: unexpected symbol in "R CMD"
Could you please kindly give me some suggestions about it?
Thank you so much!
Best wishes
Ting Zeng
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, <#5> view it on GitHub, or <https://github.com/notifications/unsubscribe-auth/AIN7EZHMYRSXHFDZ5OJNECTUMTPZDANCNFSM5IJL7QTQ> unsubscribe.
Triage notifications on the go with GitHub Mobile for <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> iOS or <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub> Android.
|
Hi there! I am also having the same issue when installing the cplexAPI package. I have completed all steps of the user guide, including 1.3.2 step 3 where the package cplexAPI_1.4.0.tar.gz is successfully built. I'm having trouble installing it using the $ R CMD INSTALL --build --no-multiarch \cplexAPI_1.4.0.tar.gz
|
Hi,
It looks like you need to specify a correct path of cplexAPI_1.4.0.tar.gz
for R CMD to recognize.
R CMD INSTALL --build --no-multiarch \cplexAPI_1.4.0.tar.gz
Set the path as where you build the file “cplexAPI_1.4.0.tar.gz”. Another
way of trouble shooting “R CMD INSTALL” is that you can download a
well-established package in tar.gz format and install it.
发件人: ***@***.***
***@***.***> 代表
lbrow121
发送时间: Sunday, December 5, 2021 3:15 AM
收件人: LiChenPU/NetID ***@***.***>
抄送: LiChenPU ***@***.***>; Comment
***@***.***>
主题: Re: [LiChenPU/NetID] Unable to install the package "cplexAPI" (Issue
#5)
Hi there!
I am also having the same issue when installing the cplexAPI package. I have
completed all steps of the user guide, including 1.3.2 step 3 where the
package cplexAPI_1.4.0.tar.gz is successfully built. I'm having trouble
installing it using the R CMD INSTALL --build --no-multiarch .\cplexAPI_1.4.
0.tar.gz line. I've searched online for help and found that MINGW64 compiler
is potentially not supported by IBM
(https://stackoverflow.com/questions/67462291/ilcplex-ilocplex-h-no-such-fil
e-or-directory). What are your thoughts on this? Do you have any advice on
this step? Thank you! The output is attached below.
Note: I did end up removing the dot before \cplexAPI_1.4.0.tar.gz as keeping
the dot gave me the following error:
Warning: invalid package '.cplexAPI_1.4.0.tar.gz Error: ERROR: no packages
specified
…_____
$ 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
-D_R_=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
#include <ilcplex/cplex.h>
^~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [C:/PROGRA1/R/R-411.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'
―
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#5 (comment)> , or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIN7EZC3ZVQOY6XZYTJFGKDUP
JSDJANCNFSM5IJL7QTQ> .
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>
.
|
Thanks a lot! I have installed it successfully.
… 在 2021年12月10日,下午1:15,LiChenPU ***@***.***> 写道:
Hi,
It looks like you need to specify a correct path of cplexAPI_1.4.0.tar.gz
for R CMD to recognize.
R CMD INSTALL --build --no-multiarch \cplexAPI_1.4.0.tar.gz
Set the path as where you build the file “cplexAPI_1.4.0.tar.gz”. Another
way of trouble shooting “R CMD INSTALL” is that you can download a
well-established package in tar.gz format and install it.
发件人: ***@***.***
***@***.***> 代表
lbrow121
发送时间: Sunday, December 5, 2021 3:15 AM
收件人: LiChenPU/NetID ***@***.***>
抄送: LiChenPU ***@***.***>; Comment
***@***.***>
主题: Re: [LiChenPU/NetID] Unable to install the package "cplexAPI" (Issue
#5)
Hi there!
I am also having the same issue when installing the cplexAPI package. I have
completed all steps of the user guide, including 1.3.2 step 3 where the
package cplexAPI_1.4.0.tar.gz is successfully built. I'm having trouble
installing it using the R CMD INSTALL --build --no-multiarch .\cplexAPI_1.4.
0.tar.gz line. I've searched online for help and found that MINGW64 compiler
is potentially not supported by IBM
(https://stackoverflow.com/questions/67462291/ilcplex-ilocplex-h-no-such-fil
e-or-directory). What are your thoughts on this? Do you have any advice on
this step? Thank you! The output is attached below.
Note: I did end up removing the dot before \cplexAPI_1.4.0.tar.gz as keeping
the dot gave me the following error:
Warning: invalid package '.cplexAPI_1.4.0.tar.gz Error: ERROR: no packages
specified
_____
$ 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
-D_R_=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
#include <ilcplex/cplex.h>
^~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [C:/PROGRA1/R/R-411.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'
―
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#5 (comment)> , or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIN7EZC3ZVQOY6XZYTJFGKDUP
JSDJANCNFSM5IJL7QTQ> .
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 authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
Hi Li, Thanks for the great work! I also have problem with cplexAPI but it is different to the above ones. I have tried R4.0 and R4.1 to install the cplexAPI and both gave me the same error messages:
Do you know which R version could work for cplexAPI_1.4.0? Any suggestion to install this package? Have you tried to test NetID on MaxOS? Thanks, |
Hi Owen,
|
Hello Professor Chen, I am also trying to set up this program on my Mac. I am having trouble with the last step installing the cplexAPI_1.4.0.tar.gz even though it is generated. It gives me an "zero-exit status" error. Any advice? Thanks |
Hi nickyflowz,
|
Hello Zty12, Thank you so much! After reinstalling C++ (Xcode for Mac) I was able to get the program up and running. I used the following command, slightly different from what you wrote above: Really appreciate the help! best |
I am also facing a similar issue but on Windows.
Please tell me what I should do, thanks! |
Hi RahulShanbhag1704, I am experiencing a similar issue to you with the setup of the CPLEX API and was wondering if you managed to solve your problem. Our error seems to be very similar so I'm hoping for a common fix. Thanks! |
Hi Rahul and Johan, |
Hi Did you solve your problem? |
Dear Prof.Chen,
Thanks for your excellent work! I am a graduate student majoring in metabolomics. According to your User_guide, I have installed R, Rstudio, Rtools40, CPLEX and Git. And my question is in the step 1.3.2. I can't install the package "cplexAPI".
Could you please kindly give me some suggestions about it?
Thank you so much!
Best wishes
Ting Zeng
The text was updated successfully, but these errors were encountered: