# Stdlib installation location

**URL:** <https://fortran-lang.discourse.group/t/stdlib-installation-location/10610>\
**Category:** stdlib\
**Created:** [January 9, 2026, 10:21pm UTC](https://fortran-lang.discourse.group/t/stdlib-installation-location/10610 "2026-01-09T22:21:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fiolj](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/fiolj/32/6737_2.png) [@fiolj](https://fortran-lang.discourse.group/u/fiolj)\
**Post date:** [January 9, 2026, 10:21pm UTC](https://fortran-lang.discourse.group/t/stdlib-installation-location/10610/1 "2026-01-09T22:21:30Z")

</div>

Hi, after installing stdlib I’ve found a couple of inconsistencies (bugs?) with pkg-config that result in stdlib not “working with my programs” exactly as expected when using Make. When following the instructions I’ve found that:

1. The file `fortran_stdlib.pc` is installed in:  
`$(install_dir)/lib64/pkgconfig`  
instead of  
`$(install_dir)/lib/pkgconfig`  
as stated in the README.md. It can be “solved” but would be nice to fix the installation.

2. In the contents of `fortran_stdlib.pc` reads:  
`moduledir=${prefix}/include/fortran_stdlib/GNU-15.2.1`  
but in order to make it work I had to modify it to read:  
`moduledir=${prefix}/include/fortran_stdlib/GNU-15.2.1/fortran_stdlib`

I think that the file `fortran_stdlib.pc` is correct but there is an extra folder “fortran\_stdlib” in the installation path.

I don’t know the workings of `cmake` to see if efectively is a bug, and how to correct it. I’ve opened an [issue in the repository page](https://github.com/fortran-lang/stdlib/issues/1084).
