【问题标题】:how to add the directory containing `sci_mpi_mp.pc' to the PKG_CONFIG_PATH environment variable如何将包含 `sci_mpi_mp.pc' 的目录添加到 PKG_CONFIG_PATH 环境变量
【发布时间】:2014-07-15 05:43:20
【问题描述】:

当我使用Intel compiler 13 编译代码时,我遇到了以下错误:

pkg-config error:
Package sci_mpi_mp was not found in the pkg-config search path.
Perhaps you should add the directory containing `sci_mpi_mp.pc'
to the PKG_CONFIG_PATH environment variable
No package 'sci_mpi_mp' found

which pkg-config 给了我目录/usr/bin/pkg-config。那么,如何将其添加到PKG_CONFIG_PATH

提前致谢!!

【问题讨论】:

    标签: fortran pkg-config


    【解决方案1】:

    设置环境变量取决于你的shell:

    bash export PKG_CONFIG_PATH=/usr/bin/pkg-config

    csh setenv PKG_CONFIG_PATH /usr/bin/pkg-config

    检查你的 shell 手册。

    但更有可能是您的计算机上缺少文件sci_mpi_mp.pc

    【讨论】:

      猜你喜欢
      • 2019-08-07
      • 1970-01-01
      • 2014-04-21
      • 2014-10-23
      • 2016-09-25
      • 2020-10-07
      • 1970-01-01
      • 2021-11-05
      • 2020-01-03
      相关资源
      最近更新 更多