# pgf90 -g77libs

**URL:** <https://forums.developer.nvidia.com/t/pgf90-g77libs/131252>\
**Category:** Legacy PGI Compilers (archived)\
**Created:** [March 20, 2009, 10:46am UTC](https://forums.developer.nvidia.com/t/pgf90-g77libs/131252 "2009-03-20T10:46:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![asdgfhg](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@asdgfhg](https://forums.developer.nvidia.com/u/asdgfhg)\
**Post date:** [March 20, 2009, 10:46am UTC](https://forums.developer.nvidia.com/t/pgf90-g77libs/131252/1 "2009-03-20T10:46:35Z")

</div>

I installed pgf90 on SUSE 10.2.

When I try to use the command  
pgf90 -g77libs -V  
there is the warning message  
pgf90-Warning-compiler installation did not find libg2c or libgfortran - -g77libs ignored.

I installed libgfortran (from libgfortran-4.1.2\_20070115-0.11.i586.rpm) and g77 compiler (from compat-g77-3.3.5-42.1.i586.rpm) but it didn’t solve the problem.

How can I make pgf90 find the g77 support libraries?

---

<div class="post-metadata">

**Author:** ![MatColgrove](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/matcolgrove/32/14047_2.png) [@MatColgrove](https://forums.developer.nvidia.com/u/MatColgrove)\
**Post date:** [March 20, 2009, 8:11pm UTC](https://forums.developer.nvidia.com/t/pgf90-g77libs/131252/2 "2009-03-20T20:11:45Z")

</div>

Hi asdgfhg,

In your installation’s bin directories (both 32 and 64-bit), there is a file called “localrc” with a line the setting for “G77DIR”. During installation, if g77 or gfortran is found (it must be in your PATH), then the G77DIR variable will be set to the location of the GNU runtime libraries. If g77 or gfortran is not found, then it will be left blank.

Now that you have gfotran installed, you can either reinstall the PGI compilers or manually edit the ‘localrc’ files. For example:

```nohighlight
set G77DIR=/opt/gcc-4.3.3/lib/gcc/x86_64-unknown-linux-gnu/4.3.3/;

```

Hope this helps,  
Mat
