如何将包含`sci_mpi_mp.pc'的目录添加到PKG_CONFIG_PATH环境变量

时间:2014-07-15 05:43:20

标签: fortran pkg-config

当我使用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给了我{dir /usr/bin/pkg-config。那么,如何将其添加到PKG_CONFIG_PATH

提前致谢!!

1 个答案:

答案 0 :(得分:0)

设置环境变量取决于您的shell

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

csh setenv PKG_CONFIG_PATH /usr/bin/pkg-config

检查你的shell手册。

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