pkg-config is a helper tool used when compiling applications and libraries. It helps you insert the correct compiler options on the command line. This metadata is stored in pkg-config files. These files have the suffix .pc and reside in specific locations known to the pkg-config tool.

Availability and Restrictions


The following versions of pkg-config are available on OSC clusters:

0.28 X*
* Current default version

You can use  module spider pkg-config to view available modules for a given machine. Feel free to contact OSC Help if you need other versions for your work.


pkg-config is available to all OSC users without restriction.

Publisher/Vendor/Repository and License Type

Red Hat, Inc./ Open source


Usage on Oakley

Set-up on Oakley

To configure your environment for use of pkg-config on Oakley, run the following command: module load pkg-config. The default version will be loaded. To select a particular pkg-config version, use module load pkg-config/version. For example, use module load pkg-config/0.28 to load pkg-config 0.28 on Oakley.

Further Reading