Skip to content
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

./Rcplex2.h:4:10: fatal error: 'ilcplex/cplex.h' file not found #105

Open
dhanusha2504 opened this issue Jun 4, 2024 · 4 comments
Open

Comments

@dhanusha2504
Copy link

dhanusha2504 commented Jun 4, 2024

Describe the bug
Installed CPLEX and set the path in bashrc, installed sequenza and copynumber. However couldn't install JaBba, shows error meg as follows:

In file included from Rcplex2.c:2:
./Rcplex2.h:4:10: fatal error: 'ilcplex/cplex.h' file not found
#include <ilcplex/cplex.h>
^~~~~~~~~~~~~~~~~
1 error generated.
make: *** [Rcplex2.o] Error 1
ERROR: compilation failed for package ‘JaBbA’

  • removing ‘/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/JaBbA’
    Warning message:
    In i.p(...) :
    installation of package ‘/var/folders/c2/q4h5h5s940s76rf4dyhchh9dh_wk0p/T//Rtmpmq7z2L/file955f54a45d69/JaBbA_1.1.tar.gz’ had non-zero exit status

any help is appreciated.

@shihabdider
Copy link
Collaborator

What is the output of echo $CPLEX_DIR?

@dhanusha2504
Copy link
Author

its /Applications/CPLEX_Studio_Community2211/cplex; I have set the path for cplex.h also in bashrc.
export CPLEX_DIR=/Applications/CPLEX_Studio_Community2211/cplex
export CPLEX_INCLUDE_PATH=$CPLEX_DIR/cplex/include
export CPLEX_LIBRARY_PATH=$CPLEX_DIR/cplex/lib

@shihabdider
Copy link
Collaborator

I believe JaBbA only uses the CPLEX_DIR to derive the include and library paths, exporting them directly may not work. Can you please verify:

NOTE: if CPLEX_DIR is set correctly then $CPLEX_DIR/cplex/include and $CPLEX_DIR/cplex/lib should both exist.

If I remember right, the new versions of CPLEX have an extra cplex directory in the path.

@wwhwwxlz
Copy link

我相信 JaBbA 仅使用CPLEX_DIR来派生包含和库路径,直接导出它们可能不起作用。您能否验证:

注意:如果CPLEX_DIR设置正确,则 $CPLEX_DIR/cplex/include 和 $CPLEX_DIR/cplex/lib 都应该存在。

如果我没记错的话,新版本的 CPLEX 在路径中有一个额外的目录。cplex

在ARM64的机器上如何使用?我无法装上cplex

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants