I am trying to build numpy and scipy on 64-bit Ubuntu 12.04 with Intel MKL.
I have installed all the prerequisites. The INTEL C++ complier and the Fortran compiler verision are all 2011 sp1 10.319 and MKL is the version within it.
I am following the installation instruction fromINTEL's website.
I have successfully build and installed numpy.
When building scipy I encounted the problem as follows:
error: could note create '/usr/local/lib/python2.7/dist-packages/scipy': Permission denied
when I try to put sudo in front of the install line, I got:
numpy.distutils.fcompiler.CompilerNotFound: intelem: f90 nor f77
Could anyone help me?
Do you mean you got the error at the step with the command
Compile and install SciPy with the Intel Compilers: (On 64-bit platforms replace "intel" with "intelem")
On Xubuntu 12.10, this issue is solved by linking ifort and icc in /usr/bin. Apparently, as @Pierre noticed, these files can't be found by the root account when you do "sudo python setup.py config ..." since they're usually installed to /opt. But the root account does look at /usr/bin, so put the links there.
I summarize the issue here so more users may clear about the problem:
The error "Permission denied" because non-super user. if use >sudo python setup.py config --compiler=intelem build_clib --compiler=intelem build_ext --compiler=intelem install
icc/ifort environment can be set up because sudo don't recognize the 'source source /opt/intel/composer_xe_2013_sp1.2.144/bin/iccvars.sh intel64".
So user can use root to build the numpy and scipy if possible.
Or either Pierre's solution
inking ifort and icc in /usr/bin