Search code examples
fortranpkg-config

how to add the directory containing `sci_mpi_mp.pc' to the PKG_CONFIG_PATH environment variable


When I compile the code using Intel compiler 13, I met the following error:

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

and which pkg-config gives me the dir /usr/bin/pkg-config. So, how do I add it to PKG_CONFIG_PATH?

Thanks in advance!!


Solution

  • Setting environment variables depends on your shell:

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

    csh setenv PKG_CONFIG_PATH /usr/bin/pkg-config

    Check your shell manual.

    But it is more likely that the file sci_mpi_mp.pc is missing on your computer.