Dear Mat!
And I have a three question.
- 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?
-
How can I confirm that PGI was installed and have a license on Redhat 9.0?
-
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
hi choingjoo,
Please make sure that files linux86/bin/makelocalrc and linux86-64/bin/makelocalrc line ~299 has double quote over $SPECSFILE.
From:
if test -f $SPECSFILE ; then
To:
if test -f “$SPECSFILE” ; then
Then run following commands in each bin directory after you install,
makelocalrc -x $PGI/linux86/5.2
makelocalrc -x $PGI/linux86-64/5.2
This should fix the problem when install 5.2 on FC3.
Hongyon
Thank you for responding. But I don’t understand because I have a little skill to manage the linux. So. I’m so glad to descripe in detail.
choingjoo,
Assuming you installed PGI compilers in /home/choingjoo/PGI on 64-bit machine, there should be files
/home/choingjoo/PGI/linux86/5.2/bin/makelocalrc and /home/choingjoo/PGI/linux86-64/5.2/bin/makelocalrc.
You need to edit those two files at line 299 from:
if test -f $SPECSFILE; then
to
if test -f “$SPECSFILE”; then
Then, you need to run a makelocalrc script with following commands:
% cd /home/choingjoo/PGI/linux86-64/5.2/bin
% makelocalrc -x /home/choingjoo/PGI/linux86-64/5.2
% cd /home/choingjoo/PGI/linux86/5.2/bin
% makelocalrc -x /home/choingjoo/PGI/linux86/5.2
Hongyon
Thank you. I solve the problem.
But I have a another problem.
In install manual,
Step 7 types.h check. On many Linux systems, the PGI Workstation installation script copies the header files
/usr/include/sys/types.h/usr/include/bits/types.h
and places modified versions into
$PGI/linux86/5.2/include/sys/types.h
$PGI/linux86-64/5.2/include/sys/types.h
$PGI/linux86/5.2/include/bits/types.h
$PGI/linux86-64/5.2/include/bits/types.h
Could I replace the files? So, I conduct the switching process.
And I have a license.dat file. But it doesn’t include the header like this;
SERVER 7496
DAEMON pgroupd <install_dir>/linux86/bin/pgroupd
step 8. % LM_LICENSE_FILE=/PGI/license.dat
% export LM_LICENSE_FILE
% export PGI=/PGI
step 9. vi /PGI/linux86/5.2/bin/lmgrd.rc. and change the script.
step 10. % lmgrd.rc start
% lmgrd.rc stop
step 11. % cp /PGI/linux86/5.2/bin/lmgrd.rc /etc/rc.d/init.d/lmgrd
% ln -s /etc/rc.d/init.d/lmgrd /etc/rc.d/rc3.d/S90lmgrd
and then. when I reboot the computer, pgf90 was vanished.
what is the problem?
Hi Choingjoo,
In step 7 of the installation process, the installer will determine which version of “types.h” to use and install them automatically. You should not need to modify these files.
I’m not sure what you mean by “when I reboot the computer, pgf90 was vanished”. Do you mean that the entire installation was removed? or are the compilers simply not in your PATH environment variable?
Install forder ‘/PGI’ remained on computer, But. reboot the system and commnad following sentence;
root@ARL root]# pgf90 -V
-bash : pgf90: command not found
what is the problem?
You need add the path to the PGI “bin” directory to you shell’s PATH environment variable (as shown in step 5 of the PGI installation notes). It’s best to add this to your local startup files (~/.cshrc, ~/.bashrc) so that the PATH is always set whenever a new shell is opened.
[root@ARL PGI]# PATH=/PGI/linux86/5.2/bin:$PATH
[root@ARL PGI]# export PATH
[root@ARL PGI]# MANPATH=$MANPATH:/PGI/linux86/man
[root@ARL PGI]# export MANPATH
[root@ARL PGI]# whereis bashrc
bashrc: /etc/bashrc
[root@ARL PGI]# cd /etc
[root@ARL etc]# ./bashrc
-bash: ./bashrc: permission denied
I conduct following command, but I don’t understand ./bashrc.
Please explain in detail. Thank you~
In you home directory, you should have a shell start-up file. The name of the file will depend upon which Shell your using. For example if your shell is Bash, then you would put all the commands you want setup each time your open a new bash shell in a file called “.bashrc”. In Csh, the file is called “.cshrc”.
I would suggest either pick-up a book on UNIX shells or doing an internet search on creating a set-up file since the details can be quite lengthy.