/usr/bin/ld: cannot find -lpgc

I want to complile a simple program test.f with pgf77 it give an error:
/usr/bin/ld: cannot find -lpgc
can you help me.
thanks
abdel

Hi abdel,

Most likely your installation failed. When you installed did you get any error messages? What OS are you using? Which PGI version?

  • Mat

Thank you mkcolg for your replay.
I reinstaled the last version 10.3 in Ubuntu 9.10, I had purshed my license.dat from your web site, but when I want to look if runing the lmgrd, I run this comand like:
/lmutil lmstat -a
lmutil - Copyright © 1989-2009 Acresso Software Inc. All Rights Reserved.
Flexible License Manager status on Thu 4/1/2010 13:06

License server status: 27000@pc-asa
License file(s) on pc-asa: /opt/pgi/license.dat:

pc-asa: license server UP (MASTER) v11.7

Vendor daemon status (on pc-asa):

pgroupd: UP v11.7
Feature usage info:

Users of pghpf-linux86: (Total of 1 license issued; Total of 0 licenses in use)

Users of pgf90-linux86: (Total of 1 license issued; Total of 0 licenses in use)

Users of pgf77-linux86: (Total of 1 license issued; Total of 0 licenses in use)

Users of pgprof: (Total of 1 license issued; Total of 0 licenses in use)

Users of pgdbg: (Total of 1 license issued; Total of 0 licenses in use)

Users of pgdbg-gui: (Total of 1 license issued; Total of 0 licenses in use)

when i run lmgrd -c $LM_LICENSE_FILE it gives:

(lmgrd) Failed to open the TCP port number in the license

In my license.dat I have this:

SERVER pc-asa 27000
DAEMON pgroupd pgroupd

Can you give me an idea to resolve this problem.
Thank you
abdel

abdel,

First things first. Let’s determine whether you have gcc installed.

Check the output dialogs of the following - if you do not produce
hello_32 or hello_64, then you do not have a full gcc install for
32-bit or 64-bit, respectively.

  1. % gcc -m32 -v -o hello_32 hello.c
    % file hello_32

  2. % gcc -m64 -v -o hello_64hello.c
    % file hello_64

hello.c is
% more hello.c
#include <stdio.h>
#include <stdlib.h>

int main()
{
printf(" hello\n");

}

If hello.c cannot be compiled by gcc in 32-bit or 64-bit,
pgi compilers will not install in 32-bit or 64-bit, respectively.

==========================================


Secondly, You can edit the port number (27000) in the
SERVER line of the license file, and change it to another
number without regenerating. Try replacing ‘27000’
with ‘7496’ and number we used to use.


Finally, I think you are using License PIN 508253. The subscription
for this PIN expired in 2004, and it is eligible for 5.1, but not the
current 10.3 release. On Ubuntu 9.10, release 5.1 will not install
or run properly.

Thank you jtull for replay.

  1. the program hello.c is compiled well in 32-bit but not in 64-bit.
  2. I edited the port number (27000) in the SERVER line of the license file, and I change it to ‘7496’.
  3. the compilation gives the same error:
    pgi-f77-lin32: LICENSE MANAGER PROBLEM: No such feature exists.
    =====================================

I think you are using License PIN 508253. The subscription
for this PIN expired in 2004, and it is eligible for 5.1, but not the
current 10.3 release. On Ubuntu 9.10, release 5.1 will not install
or run properly.

what I can do in this case?
1.Install the 5.1 version? —> will not install on Ubuntu 9.10
2.delete this license and purchase another?

Best regards

The other alternative is to install a version of linux that 5.1
will install on. But I see these are very old versions of linux,
like RHEL 3.0 or Red Hat 9.0. But so are the 5.1 compilers.

I don’t have good answer other than obtain a license for a newer
compiler.

regards,
dave