Community edition not installing on Susa Linux

Hi All,

For some reason I can’t install the 2017 Community edition on a Linux box here. I had successfully installed the 2016 Community edition, along with numerous paid-for versions. For the 2017 version, it seems the directory permissions are not correct. Here is the /usr/opt/pgi/linux86-64/17.10 directory:

drwxr-x--- 2 root root 4096 Oct 30 11:59 REDIST
drwxr-x--- 2 root root 4096 Dec  9 15:48 bin
drwxr-x--- 2 root root 4096 Oct 30 11:59 cray
drwxr-x--- 2 root root 4096 Dec  9 15:48 doc
drwxr-x--- 7 root root 4096 Oct 30 11:59 etc
drwxr-x--- 3 root root 4096 Oct 30 11:59 include
drwxr-x--- 2 root root 4096 Oct 30 11:59 include-gcc33
drwxr-x--- 4 root root 4096 Oct 30 11:59 include-gcc34
drwxr-x--- 4 root root 4096 Oct 30 11:59 include-gcc40
drwxr-x--- 4 root root 4096 Oct 30 11:59 include-gcc41
drwxr-x--- 4 root root 4096 Oct 30 11:59 include-gcc43
drwxr-x--- 4 root root 4096 Oct 30 11:59 include-gcc44
drwxr-x--- 4 root root 4096 Oct 30 11:59 include-gcc47
drwxr-x--- 4 root root 4096 Oct 30 11:59 include-gcc48
drwxr-x--- 4 root root 4096 Oct 30 11:59 include-gcc49
drwxr-x--- 4 root root 4096 Oct 30 11:59 include-gcc50
drwxr-x--- 4 root root 4096 Oct 30 11:59 include-gcc60
drwxr-x--- 2 root root 4096 Oct 30 11:59 include_acc
drwxr-x--- 2 root root 4096 Oct 30 11:59 include_man
drwxr-x--- 2 root root 4096 Oct 30 11:59 include_pin
lrwxrwxrwx 1 root root   42 Dec  9 15:48 jre -> /opt/pgi/linux86-64/2017/java/jre1.8.0_112
drwxr-x--- 2 root root 4096 Dec  9 15:48 lib
drwxr-x--- 4 root root 4096 Oct 30 11:59 man
lrwxrwxrwx 1 root root   28 Dec  9 15:48 mpi -> /opt/pgi/linux86-64/2017/mpi
drwxr-x--- 2 root root 4096 Oct 30 11:59 src

I (as a normal user) cannot read anything in the bin directory. I (as root) changed the permission of bin, and here are the contents:

-rwxr-x--- 1 root root    31048 Oct 30 11:59 CcffReader.jar
-rwxr-x--- 1 root root    57814 Oct 30 11:59 PGcomp.jar
-rwxr-x--- 1 root root    29475 Oct 30 11:59 PGlaf.jar
-rwxr-x--- 1 root root    67845 Oct 30 11:59 PGutil.jar
-rw-r----- 1 root root    36099 Oct 30 11:59 acc1rc
-rw-r----- 1 root root      712 Oct 30 11:59 acclin8664rc
-rw-r----- 1 root root     4660 Oct 30 11:59 addlocalrc
-rwxr-x--- 1 root root    61925 Oct 30 11:59 balloontip.jar
-rw-r----- 1 root root     1392 Oct 30 11:59 c++rc
-rw-r----- 1 root root     7504 Oct 30 11:59 ccrc
-rw-r----- 1 root root     3539 Oct 30 11:59 cppcurc
-rw-r----- 1 root root    48219 Oct 30 11:59 cpprc
-rw-r----- 1 root root    39562 Oct 30 11:59 fnativerc
-rwxr-x--- 1 root root   249441 Oct 30 11:59 ganymed-ssh2-build251.jar
-rw-r----- 1 root root    22274 Oct 30 11:59 iparc
-rwxr-x--- 1 root root  1485374 Oct 30 11:59 jide-common.jar
-rwxr-x--- 1 root root   338107 Oct 30 11:59 jide-dock.jar
-rwxr-x--- 1 root root   401753 Oct 30 11:59 jpgdbg.jar
-rw-r----- 1 root root     4501 Oct 30 11:59 lin8664rc
-rw-r----- 1 root root    14270 Oct 30 11:59 lin86rc
-rwxr-x--- 1 root root  1362736 Oct 30 11:59 lmborrow
-rwxr-x--- 1 root root  1551536 Oct 30 11:59 lmgrd
-rwxr-x--- 1 root root     4228 Dec  9 15:48 lmgrd.rc
-rwxr-x--- 1 root root  1362736 Oct 30 11:59 lmutil
-rw-r--r-- 1 root root     1083 Dec  9 15:48 localrc
-rwxr-x--- 1 root root    25346 Oct 30 11:59 makelocalrc
-rwxr-x--- 1 root root     1421 Oct 30 11:59 mpirun_dbg.pgdbg
-rw-r----- 1 root root    68156 Oct 30 11:59 nativerc
-rwxr-x--- 1 root root    12192 Oct 30 11:59 pgaccelerror
-rwxr-x--- 1 root root    27952 Oct 30 11:59 pgaccelinfo
-rwxr-x--- 1 root root    17048 Oct 30 11:59 pgacclnk
-rwxr-x--- 1 root root    85904 Oct 30 11:59 pgappend
-rwxr-x--- 1 root root  8116048 Oct 30 11:59 pgc
-rwxr-x--- 1 root root   209040 Oct 30 11:59 pgc++
-rwxr-x--- 1 root root  2556432 Oct 30 11:59 pgc_ex
-rwxr-x--- 1 root root   208336 Oct 30 11:59 pgcc
-rwxr-x--- 1 root root   252192 Oct 30 11:59 pgcollect
-rw-r----- 1 root root      980 Oct 30 11:59 pgcollectrc
-rwxr-x--- 1 root root    26240 Oct 30 11:59 pgcpuid
-rwxr-x--- 1 root root     6088 Oct 30 11:59 pgcudainit
-rwxr-x--- 1 root root   252160 Oct 30 11:59 pgdbg
-rw-r----- 1 root root     2423 Oct 30 11:59 pgdbglinrc
-rw-r----- 1 root root    22299 Oct 30 11:59 pgdbgrc
-rwxr-x--- 1 root root 71881912 Oct 30 11:59 pgdebug
-rwxr-x--- 1 root root    91728 Oct 30 11:59 pgexplain.xml
-rwxr-x--- 1 root root    57216 Oct 30 11:59 pgextract
-rwxr-x--- 1 root root   208336 Oct 30 11:59 pgf77
-rw-r----- 1 root root     1826 Oct 30 11:59 pgf77rc
-rwxr-x--- 1 root root   208336 Oct 30 11:59 pgf90
-rwxr-x--- 1 root root  6395312 Oct 30 11:59 pgf901
-rwxr-x--- 1 root root  7510672 Oct 30 11:59 pgf902
-rwxr-x--- 1 root root  2115760 Oct 30 11:59 pgf90_ex
-rw-r----- 1 root root     3863 Oct 30 11:59 pgf90rc
-rwxr-x--- 1 root root   208336 Oct 30 11:59 pgf95
-rwxr-x--- 1 root root   208336 Oct 30 11:59 pgfortran
-rwxr-x--- 1 root root  2298832 Oct 30 11:59 pgftn_ex
-rwxr-x--- 1 root root  5490352 Oct 30 11:59 pgftnc
-rw-r----- 1 root root     8079 Oct 30 11:59 pgftnrc
-rwxr-x--- 1 root root    39800 Oct 30 11:59 pggdecode
-rwxr-x--- 1 root root  4562256 Oct 30 11:59 pggpp1
-rwxr-x--- 1 root root  8638192 Oct 30 11:59 pggpp2
-rwxr-x--- 1 root root  2905872 Oct 30 11:59 pggpp2ex
-rwxr-xr-x 1 root root    41614 Dec  9 15:48 pgi_license_tool
-rwxr-x--- 1 root root    72912 Oct 30 11:59 pgicg
-rwxr-x--- 1 root root     9048 Oct 30 11:59 pgimport
-rwxr-x--- 1 root root   477200 Oct 30 11:59 pgipa
-rwxr-x--- 1 root root   208336 Oct 30 11:59 pgnvd
-rw-r----- 1 root root      609 Oct 30 11:59 pgnvd64rc
-rw-r----- 1 root root     1138 Oct 30 11:59 pgnvdlinrc
-rw-r----- 1 root root    26980 Oct 30 11:59 pgnvdrc
-rwxr-x--- 1 root root     8632 Oct 30 11:59 pgnvvm
-rwxr-x--- 1 root root     8776 Oct 30 11:59 pgobjinfo
-rwxr-x--- 1 root root   111504 Oct 30 11:59 pgprepro
-rwxr-x--- 1 root root   208272 Oct 30 11:59 pgprof
-rw-r----- 1 root root     5263 Oct 30 11:59 pgprofrc
-rwxr-x--- 1 root root  1565688 Oct 30 11:59 pgroupd
-rwxr-x--- 1 root root   459688 Oct 30 11:59 pgserv
-rwxr-x--- 1 root root    24112 Oct 30 11:59 pgsize
-rwxr-x--- 1 root root   692016 Oct 30 11:59 pgsmart
-rwxr-x--- 1 root root    13718 Oct 30 11:59 pgsupport
-rw-r----- 1 root root     5786 Oct 30 11:59 pgtjavarc
-rw-r----- 1 root root      836 Oct 30 11:59 pgtlinrc
-rw-r----- 1 root root      556 Oct 30 11:59 pgtoolsrc
-rw-r----- 1 root root     1934 Oct 30 11:59 pgtxwinrc
-rwxr-x--- 1 root root    43744 Oct 30 11:59 pgunzip
-rwxr-x--- 1 root root    49392 Oct 30 11:59 pgzip
-rwxr-x--- 1 root root  1057803 Oct 30 11:59 rsyntaxtextarea.jar
-rw-r----- 1 root root       48 Oct 30 11:59 versionrc
-rw-r----- 1 root root     5755 Oct 30 11:59 x8664rc
-rw-r----- 1 root root    73319 Oct 30 11:59 x86rc

None of those files are useable for normal (non-root) users. So I (as root) made all files readable to all, and made pgf90 executable to all.

Here is what happens when I try to use pgf90:

pgf90-Error-Unknown switch: -fast
pgf90-Error-Unknown switch: -Mfprelaxed
pgf90-Error-Unknown switch: -Mipa=fast,inline
pgf90-Error-Unknown switch: -mcmodel=medium
pgf90-Error-Unknown switch: -o

Here is the output of uname -a

Linux my_host 3.16.7-29-desktop #1 SMP PREEMPT Fri Oct 23 00:46:04 UTC 2015 (6be6a97) x86_64 x86_64 x86_64 GNU/Linux

Anyone know what is wrong?

Jerry

This looks like permissions issues.

The 17.10 compilers do not install properly with gcc 7.* or 8.*, so if you
have those newer gcc versions, no point on going further.

If you have gcc 6.2 or older, then I would determine if this was a
problem installing as root, and then failing to run as a normal user.

Suggest you take 10 minutes to install PGI compilers in a directory
you own, and once done

export PGI=/your/local/pgi/dir
export PATH=$PGI/linux86-64/17.10/bin:$PATH

and now run the compilers and see if they still fail.

dave

Hi Dave,

Here is our gcc version:

gcc --version
gcc (SUSE Linux) 4.8.3 20140627 [gcc-4_8-branch revision 212064]
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

I tried as you suggested, and installed the compilers in a subdirectory I own. They seem to work fine (I only tested pgf90 so far).

So something went wrong when I installed using SUDO to the default /opt/pgi location.

Jerry

I think it is rarely a good idea to install as root.

dave

Hi Dave,

I think it is rarely a good idea to install as root.

That may be so, but this is how we have been doing it, both with the 2016 November Community Edition and numerous paid versions. Something is different in the install script compared to the past.

Jerry

How you install is up to you. But the permissions set when you are
root, need to be changed by root.

I hesitate to tell you how to change the permissions, since there
may be good reasons for root owned files and dirs not being accessible
to the typical user.

Ask your IT what permissions they would recommend for your installation.

dave