title: $MKLROOT not defined (Ubuntu)
body: <p>Environment : Linux, Ubuntu 16.04</p>
  
  <p>I tried to download MKL Library from intel website (<a href="https://software.intel.com/content/www/us/en/develop/tools/math-kernel-library.html" rel="nofollow noreferrer">https://software.intel.com/content/www/us/en/develop/tools/math-kernel-library.html</a>), and try to link mkl to my program.</p>
  
  <p>(I just downloaded <code>l_mkl_2020.1.217.tar</code> file, extracted it, and ran <code>./install.sh</code> inside that file)</p>
  
  <p>But every time I tried to build, below message was printed</p>
  
  <pre><code>$ pkg-config --cflags --libs mkl-dynamic-lp64-iomp.pc
  
  Variable 'MKLROOT' not defined in 'mkl-dynamic-lp64-iomp.pc
  </code></pre>
  
  <p>Even if I tried <code>export MKLROOT=/opt/intel/mkl</code> (which is my mkl root path), 
  It still couldn't find <code>MKLROOT</code> path</p>
  
  <p>I also tried run test.sh file like below,</p>
  
  <pre><code>echo $MKLROOT
  </code></pre>
  
  <p>and It clearly print <code>MKLROOT</code> variable out.</p>
  
  <p>are variable in intel .pc file is somewhat different from environment variable on Ubuntu? and why my mkl couldn't reach out to <code>MKLROOT</code> variable?</p>
  
  <p>If anyone can answer this, I'll truly appreciate for you. Thanks!</p>
  
  <p>--- addition ---</p>
  
  <p>I just resolved this issue by adding single line</p>
  
  <p><code>MKLROOT=/opt/intel/mkl</code></p>
  
  <p>at the very first part of <code>mkl-dynamic-lp64-iomp.pc</code> (even though its readonly file, I just typed <code>wq!</code>), but I think its not a radical solution. Still need answer and any help would be appreciated</p>