IT博客汇
  • 首页
  • 精华
  • 技术
  • 设计
  • 资讯
  • 扯淡
  • 权利声明
  • 登录 注册

    error while loading shared libraries libmkl_intel.so

    未央发表于 2017-07-18 02:35:00
    love 0

    Liunx 运行用 Intel MKL 库文件的程序出错 “error while loading shared libraries libmkl_intel.so” 解决办法

    2012-06-05 18:19 本站整理 浏览(9)
    编译例子:
    gcc -o foo foo.c -I/opt/intel/mkl/10.1.0.015/include  -L/opt/intel/mkl/10.1.0.015/lib/32 -lmkl_intel ... <other MKL libs>

    错误提示:
    ./foo: error while loading shared libraries libmkl_intel.so: cannot open shared object file No such file or directory

    解决办法:在Liunx 环境变量中加入Intel MKL 库文件路径
    Intel 官网详解:
    Before using the Intel® MKL shared libraries, update the system variable LD_LIBRARY_PATH to include the libraries location. For example, if the Intel MKL libraries are in the /opt/intel/mkl/10.1.0.015/lib/32 directory then the following command line can be
    used (assuming a bash shell):
    export LD_LIBRARY_PATH=/opt/intel/mkl/lib/ia32:$LD_LIBRARY_PATH


    未央 2017-07-18 10:35 发表评论


沪ICP备19023445号-2号
友情链接