[Ipopt] Variable 'MKLROOT' not defined in ipopt.pc

Stefan Vigerske svigerske at gams.com
Sun Oct 20 13:52:10 EDT 2019


Hi,

I guess that pkg-config does not look at environment variables when 
handling the .pc file.
You could try adding a line
   MKLROOT=/home/eric/intel/compilers_and_libraries_2019.5.281/linux/mkl
to build/Ipopt/ipopt.pc before make install, but you may rather first 
try to find out how $MKLROOT made it into the ipopt.pc file at all.

Stefan

On 9/18/19 10:28 PM, Eric Antonelo wrote:
> Dear all,
> 
> I've tried to make install ipopt, but I get the following error:
> 
> Variable 'MKLROOT' not defined in
> '/home/eric/Software/CoinIpopt/build/lib/pkgconfig/ipopt.pc'
> 
> But MKLROOT is set in bash correctly to
> /home/eric/intel/compilers_and_libraries_2019.5.281/linux/mkl
> 
> Do you have any idea of what could be causing this?
> 
> Below, more details of the output of make install:
> 
> 
> 
> test -z "/home/eric/Software/CoinIpopt/build/share/coin/doc/Ipopt" ||
> mkdir -p -- "/home/eric/Software/CoinIpopt/build/share/coin/doc/Ipopt"
> 
> for file in README AUTHORS LICENSE ; do \
> 
>    if test -f "$file"; then dir=; else dir="../../Ipopt/"; fi; \
> 
>    if test -f "$dir$file"; then /usr/bin/install -c -m 644 "$dir$file"
> "/home/eric/Software/CoinIpopt/build/share/coin/doc/Ipopt/$file"; fi;
> \
> 
> done
> 
> test -z "/home/eric/Software/CoinIpopt/build/lib/pkgconfig" || mkdir
> -p -- "/home/eric/Software/CoinIpopt/build/lib/pkgconfig"
> 
>   /usr/bin/install -c -m 644 'ipopt.pc'
> '/home/eric/Software/CoinIpopt/build/lib/pkgconfig/ipopt.pc'
> 
> make  install-data-hook
> 
> make[4]: Entering directory '/home/eric/Software/CoinIpopt/build/Ipopt'
> 
> PKG_CONFIG_PATH=/home/eric/Software/CoinIpopt/build/lib64/pkgconfig:/home/eric/Software/CoinIpopt/build/lib/pkgconfig:/home/eric/Software/CoinIpopt/build/share/pkgconfig:/home/eric/intel/compilers_and_libraries_2019.5.281/linux/mkl/bin/pkgconfig:/home/eric/Software/CoinIpopt/build/lib/pkgconfig
> \
> 
> pkg-config --libs ipopt >
> /home/eric/Software/CoinIpopt/build/share/coin/doc/Ipopt/ipopt_addlibs_cpp.txt
> 
> Variable 'MKLROOT' not defined in
> '/home/eric/Software/CoinIpopt/build/lib/pkgconfig/ipopt.pc'
> 
> Makefile:1095: recipe for target 'install-data-hook' failed
> 
> make[4]: *** [install-data-hook] Error 1
> 
> make[4]: Leaving directory '/home/eric/Software/CoinIpopt/build/Ipopt'
> 
> Makefile:1000: recipe for target 'install-data-am' failed
> 
> make[3]: *** [install-data-am] Error 2
> 
> make[3]: Leaving directory '/home/eric/Software/CoinIpopt/build/Ipopt'
> 
> Makefile:960: recipe for target 'install-am' failed
> 
> make[2]: *** [install-am] Error 2
> 
> make[2]: Leaving directory '/home/eric/Software/CoinIpopt/build/Ipopt'
> 
> Makefile:679: recipe for target 'install-recursive' failed
> 
> make[1]: *** [install-recursive] Error 1
> 
> make[1]: Leaving directory '/home/eric/Software/CoinIpopt/build/Ipopt'
> 
> Makefile:323: recipe for target 'install-recursive' failed
> 
> make: *** [install-recursive] Error 1
> 
> _______________________________________________
> Ipopt mailing list
> Ipopt at list.coin-or.org
> https://list.coin-or.org/mailman/listinfo/ipopt
> 



More information about the Ipopt mailing list