-
Notifications
You must be signed in to change notification settings - Fork 22
Using with CPLEX #16
Description
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
Tryconfig.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?