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

Using with CPLEX #16

Open
AlyssaLytle opened this issue Jun 14, 2022 · 1 comment
Open

Using with CPLEX #16

AlyssaLytle opened this issue Jun 14, 2022 · 1 comment

Comments

@AlyssaLytle
Copy link

When I try to configure with cplex:

First I set the variable CPLEX_LOCATION:

setenv CPLEX_LOCATION /opt/ibm/ILOG/CPLEX_Studio221

./configure --with-cplex-includes= "-I$CPLEX_LOCATION/cplex/include/ -I$CPLEX_LOCATION/concert/include/" --with-cplex-libs="-lilocplex -lconcert -lcplex" --with-cplex-ldflags="-L$CPLEX_LOCATION/cplex/lib/x86-64_sles10_4.1/static_pic -L$CPLEX_LOCATION/concert/lib/x86-64_sles10_4.1/static_pic"

I get the error

configure: error: unrecognized option: -I/opt/ibm/ILOG/CPLEX_Studio221/cplex/include/ -I/opt/ibm/ILOG/CPLEX_Studio221/concert/include/' Try ./configure --help' for more information

So I got rid of the -I arguments and ran it as:
./configure --with-cplex-includes= "$CPLEX_LOCATION/cplex/include/ $CPLEX_LOCATION/concert/include/" --with-cplex-libs="-lilocplex -lconcert -lcplex" --with-cplex-ldflags="-L$CPLEX_LOCATION/cplex/lib/x86-64_sles10_4.1/static_pic -L$CPLEX_LOCATION/concert/lib/x86-64_sles10_4.1/static_pic"

And got the output:

configure: WARNING: you should use --build, --host, --target
configure: WARNING: invalid host type: /opt/ibm/ILOG/CPLEX_Studio221/cplex/include/ /opt/ibm/ILOG/CPLEX_Studio221/concert/include/
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking how to create a pax tar archive... gnutar
checking for /opt/ibm/ILOG/CPLEX_Studio221/cplex/include/... no
checking for /opt/ibm/ILOG/CPLEX_Studio221/cplex/include/... no
checking for /opt/ibm/ILOG/CPLEX_Studio221/cplex/include/... no
checking for /opt/ibm/ILOG/CPLEX_Studio221/cplex/include/... no
checking for /opt/ibm/ILOG/CPLEX_Studio221/cplex/include/... no
checking for /opt/ibm/ILOG/CPLEX_Studio221/cplex/include/... no
checking for /opt/ibm/ILOG/CPLEX_Studio221/cplex/include/... no
checking for /opt/ibm/ILOG/CPLEX_Studio221/cplex/include/... no
checking for /opt/ibm/ILOG/CPLEX_Studio221/cplex/include/... no
checking for /opt/ibm/ILOG/CPLEX_Studio221/cplex/include/... no
checking for /opt/ibm/ILOG/CPLEX_Studio221/cplex/include/... no
checking for /opt/ibm/ILOG/CPLEX_Studio221/cplex/include/... no
checking for /opt/ibm/ILOG/CPLEX_Studio221/cplex/include/... no
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of g++... gcc3
checking for /opt/ibm/ILOG/CPLEX_Studio221/cplex/include/... no
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking build system type... config.sub: too many arguments
Try config.sub --help' for more information. configure: error: /bin/bash ./config.sub /opt/ibm/ILOG/CPLEX_Studio221/cplex/include/ /opt/ibm/ILOG/CPLEX_Studio221/concert/include/ failed

Any intuition as to why I'm getting this error?

@oliehoek
Copy link
Member

I think the issue is the space between '=' and the string "-I$CPLEX_LOCATION/cplex/include/ -I$CPLEX_LOCATION/concert/include/"

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

2 participants