Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Golden__Bruce
Beginner
119 Views

Install issues

I've followed the MKL 2018 Update 3.  No problem figuring out the configuration for download (Ubuntu 16.04 LTS with gcc, etc).  In the getting started guide it 1st says to check your installation and be sure that "mklvars.sh" and "mklvars.csh" are in (install directory)/bin.  In my case that's /opt/intel/bin, the default from the install script.  In that directory are two files, "compilervars.csh" and "compilervars.sh".  Ok, no big deal.  Intel changed the script names and didn't update the guide.  But when I go to the next step in the guide, "setting the environment variables", and execute the script I get,

$ /opt/intel/bin/compilervars.sh intel64

ERROR: architecture is not defined. Accepted values: ia32, intel64

Syntax:
  source mklvars.sh <arch> [MKL_interface] [mod]

   <arch> must be one of the following
       ia32         : Setup for IA-32 architecture
       intel64      : Setup for Intel(R) 64 architecture

   mod (optional) - set path to Intel(R) MKL F95 modules

   MKL_interface (optional) - Intel(R) MKL programming interface for intel64
                              Not applicable without mod
       lp64         : 4 bytes integer (default)
       ilp64        : 8 bytes integer

If the arguments to the sourced script are ignored (consult docs for
your shell) the alternative way to specify target is environment
variables COMPILERVARS_ARCHITECTURE or MKLVARS_ARCHITECTURE to pass
<arch> to the script, MKLVARS_INTERFACE to pass <MKL_interface> and
MKLVARS_MOD to pass <mod>

/opt/intel/bin/compilervars.sh: 42: [: =: unexpected operator
/opt/intel/bin/compilervars.sh: 50: [: =: unexpected operator
/opt/intel/bin/compilervars.sh: 159: [: =: unexpected operator
/opt/intel/bin/compilervars.sh: 171: [: =: unexpected operator

This seems simple enough and I can't believe it is broken.  What am I doing wrong!?!

0 Kudos
1 Reply
Ying_H_Intel
Employee
119 Views

Hi Bruce, 

Sorry for  the problem.  

It seems the compilervars.sh dees not work as expected.  Could you please try 

/opt/intel/mkl/bin/mklvars.sh intel64

We usually use the script under MKLROOT directory.  for example MKLROOT\bin\mklvars.sh.  Could you please let me know the link of getting started guide you are seeing, we may fix the problem there. 

Thanks

Ying