PGI 5.2 Install

Hi.
I want to install PGI 5.2 in red hat 9.0
But, it didn’t work.

Install complete message is shown, but I command ‘whereis pgf90’
It is not found.

What is the problem? Please help~

OS : red hat linux 9.0
CPU : Pentium D 3.2
Ram : 1G
Mainboard : Intel

Hi choingjoo,

While I don’t use the ‘whereis’ command nor know much about it, I do believe that it only looks in certain system directories such as /usr/bin. If you used the defaults, then you PGI install should be located in /usr/pgi, otherwise it’s in the location which you specified during the installation. We recommend that you set the environment variable “PGI” to this base directory.

To use the compilers you need to set your PATH variable to include $PGI/linux86/5.2/bin and your MANPATH to include $PGI/linux86/5.2/man. You’ll also need to set the location of your license file by setting LM_LICENSE_FILE to $PGI/license.dat.

  • Mat

Thank you for answering my question.
I tried as you mention that set a default directory /PGI and install PGI.
And recieve trail license.

But, “set path =(/PGI/linux86/5.2/bin $path” is error
so,

PATH=/PGI/linux86/5.2/bin:$PATH
export PATH
MANPATH=$MANPATH:/PGI/linux86/man
export PATH

I think it is done. And next step is to verify the release number of the products.

pgf77 -V x.f

PGFTN-F-0002-Unable to open source input file: x.f

pgf90 -V x.f

PGF90-F-0002-Unable to open source input file: x.f
PGF90/any linux/x86 5.2-4: compliation aborted


What is the problem?
Thank you for reading my message

You need to either remove the file, or replace it with one that exists.

% pgf90 -V

pgf90 7.0-5 64-bit target on x86-64 Linux
Copyright 1989-2000, The Portland Group, Inc.  All Rights Reserved.
Copyright 2000-2007, STMicroelectronics, Inc.  All Rights Reserved.

% touch x.f
% pgf90 -V -c x.f

pgf90 7.0-5 64-bit target on x86-64 Linux
Copyright 1989-2000, The Portland Group, Inc.  All Rights Reserved.
Copyright 2000-2007, STMicroelectronics, Inc.  All Rights Reserved.
PGF90/x86-64 Linux 7.0-5
Copyright 1989-2000, The Portland Group, Inc.  All Rights Reserved.
Copyright 2000-2007, STMicroelectronics, Inc.  All Rights Reserved.
PGF90-W-0006-Input file empty (x.f)
PGF90/x86-64 Linux 7.0-5: compilation completed with warnings
PGF90/x86-64 Linux 7.0-5
Copyright 1989-2000, The Portland Group, Inc.  All Rights Reserved.
Copyright 2000-2007, STMicroelectronics, Inc.  All Rights Reserved.

Dear Mat

[root@ARL PGI]# pgf90 -V -c x.f

pgf90 5.2-4
Copyright 1989-2000, The Portland Group, Inc. All Rights Reserved.
Copyright 2000-2004, STMicroelectronics, Inc. All Rights Reserved.
PGF90/any Linux/x86 5.2-4
Copyright 1989-2000, The Portland Group, Inc. All Rights Reserved.
Copyright 2000-2004, STMicroelectronics, Inc. All Rights Reserved.
NOTE: your evaluation license will expire in 14 days, 23.9 hours.
For a permanent license, please read the order acknowledgement
that you received. Connect to https://www.pgroup.com/License with
the username and password in the order acknowledgement.

Name: choingjoo
User: choingjoo
Email: choing-joo@hanmail.net
Hostid: PGI=000EE8E0F19E77E06384F8
PGF90-W-0006-Input file empty (x.f)
PGF90/any Linux/x86 5.2-4: compilation completed with warnings
NOTE: your evaluation license will expire in 14 days, 23.9 hours.
For a permanent license, please read the order acknowledgement
that you received. Connect to https://www.pgroup.com/License with
the username and password in the order acknowledgement.

Name: choingjoo
User: choingjoo
Email: choing-joo@hanmail.net
Hostid: PGI=000EE8E0F19E77E06384F8
PGF90/x86 Linux/x86 5.2-4
Copyright 1989-2000, The Portland Group, Inc. All Rights Reserved.
Copyright 2000-2004, STMicroelectronics, Inc. All Rights Reserved.

and then,

I open the folder /usr/include/sys/ and /usr/include/bits.
and replace the files /PGI/linux86/5.2/include/sys/types.h and /PGI/linux86/5.2/include/bits/types.h to each files.
In my manual ‘ifdef GNUC’ or ‘ifdef GLIBC_HAS_LONG_LONG’ will show. But, I didn’t read any message.
So, I

[root@ARL PGI]# cd /PGI/linux86/5.2/include
[root@ARL include]# diff ./sys/types.h /usr/include/sys/types.h
[root@ARL include]# diff ./bits/types.h /usr/include/bits/types.h

Is it done? And I have a license, How can I replace the trail license to real one?
the file name is ‘license.dat’ and 1.7kilobytes

Thank you for reading my message.[/code]

Hi Choingjoo,

I open the folder /usr/include/sys/ and /usr/include/bits. and replace the files /PGI/linux86/5.2/include/sys/types.h and /PGI/linux86/5.2/include/bits/types.h to each files.

If you can, please revert the /usr/include header files back to the original version. You do not need to replace any system file with the PGI specific version. Other compilers may need the original system header file.

And I have a license, How can I replace the trail license to real one?
the file name is 'license.dat' and 1.7kilobyte

Assuming you have a node-locked license, simply put the license.dat file in the /PGI directory and then set the environment variable “LM_LICENSE_FILE” to /PGI/license.dat. If you have a “Server” license, please consult the PGI release notes on how to configure and start your FLEXLM license server.

  • Mat

Dear Mat!

And I have a three question.

  1. I want to install another OS (Fedora 3) but, I have a error message.

Installing sofrware into /home/choingjoo/PGI (this may take some time).
##################

dirname : too few arguments
Try ‘dirname --help’ for more information.
basename : too few arguments
Try ‘basename --help’ for more information.
dirname : too few arguments
Try ‘dirname --help’ for more information.
basename : too few arguments
Try ‘basename --help’ for more information.
dirname : too few arguments
Try ‘dirname --help’ for more information.
basename : too few arguments
Try ‘basename --help’ for more information.

like this. what can I do for installing?

  1. How can I confirm that PGI was installed and have a license on Redhat 9.0?

  2. I think the PGI was installed but when I reboot the computer, pgf90 is vanished. What is the reason? And I want to ssh connet to computer. Is it working in another user when the pgi was installed in Root?

Thank you for responding