How to install Free PGI on Mac without root privileges

Hi,

It sounds like need certain root privileges to install Free PGI on Mac.

Just wondering how to install Free PGI on Mac without root privileges

Thanks

Jerry

Hi Jerry,

You don’t need root privileges to install Free PGI. You do need to be at least admin to install, similar to any App installation on your system. I assume you have your own Mac, then you should have admin right.

Hongyon

Hongyon,

Thanks for kindly input

Sorry, I don’t have admin on this Mac.

Mac os : Darwin Kernel Version 12.5.0
Xcode : 5.0.2 Build version 5A3005

This is my installation steps

  1. double click to mount the dmg file
  2. drag the Free PGI icon to temperary directory.
  3. copy “Free PGI.app/Contents/Resources/pgi” to my home directory
  4. open a terminal
  5. set evn. variables PGI and PATH to appropriate directory
  6. source $PGI/osx86-64/14.3/bin/launch_pgi.csh


    For fortran compiler, it got these error messages

pgf90 hello.f90

pgf90-Warning-Malformed $expr(), nonnumeric value >
pgf90-Warning-Malformed $expr(), nonnumeric value >=
pgf90-Warning-Malformed $expr(), nonnumeric value >=
pgf90-Warning-Malformed $expr(), nonnumeric value >
pgf90-Warning-Malformed $expr(), nonnumeric value >
ld: warning: directory not found for option ‘-LXcode license agreement needed to be accepted system-wide\n type: sudo xcodebuild -license\nThen restart the app again’
ld: warning: directory not found for option ‘-LXcode license agreement needed to be accepted system-wide\n type: sudo xcodebuild -license\nThen restart the app again’
ld: warning: unknown option to -macosx_version_min, not 10.x
ld: library not found for -lgcc

For C compiler, it got these error messages


pgcc hello.c

pgcc-Warning-Malformed $expr(), nonnumeric value >
pgcc-Warning-Malformed $expr(), nonnumeric value >=
pgcc-Warning-Malformed $expr(), nonnumeric value >=
pgcc-Warning-Malformed $expr(), nonnumeric value >
pgcc-Warning-Malformed $expr(), nonnumeric value >
PGC-S-0040-Illegal use of symbol, __BEGIN_DECLS (/usr/include/stdio.h: 164)
PGC-S-0035-Syntax error: Recovery attempted by replacing identifier __BEGIN_DECLS by ‘;’ (/usr/include/stdio.h: 238)
PGC-W-0156-Type not specified, ‘int’ assumed (/usr/include/stdio.h: 238)
PGC-S-0036-Syntax error: Recovery attempted by inserting keyword typeof before ‘(’ (/usr/include/stdio.h: 250)
PGC-S-0138-Missing identifier for declarator in function prototype definition (/usr/include/stdio.h: 250)
PGC-S-0138-Missing identifier for declarator in function prototype definition (/usr/include/stdio.h: 250)
PGC-S-0040-Illegal use of symbol, __DARWIN_ALIAS_STARTING (/usr/include/stdio.h: 250)
PGC-S-0033-Missing declarator for dummy argument (/usr/include/stdio.h: 250)
PGC-S-0035-Syntax error: Recovery attempted by replacing typedef id __printflike by ‘=’ (/usr/include/stdio.h: 252)
PGC-S-0072-Initializer not allowed in this context (/usr/include/stdio.h: 252)
PGC-S-0140-Declaration for formal fprintf found in prototype function definition (/usr/include/stdio.h: 252)
PGC-S-0070-fprintf is not a dummy argument (/usr/include/stdio.h: 252)
PGC-S-0072-Initializer not allowed in this context (/usr/include/stdio.h: 252)
PGC-W-0095-Type cast required for this conversion (/usr/include/stdio.h: 252)
PGC-W-0155-Pointer value created from a nonlong integral type (/usr/include/stdio.h: 252)
PGC-S-0140-Declaration for formal fputc found in prototype function definition (/usr/include/stdio.h: 253)
PGC-S-0070-fputc is not a dummy argument (/usr/include/stdio.h: 253)
PGC-S-0037-Syntax error: Recovery attempted by deleting typedef id __DARWIN_ALIAS (/usr/include/stdio.h: 254)
PGC-S-0069-Dummy parameter specification not allowed here (/usr/include/stdio.h: 254)
PGC-S-0082-Function returning array not allowed (/usr/include/stdio.h: 254)
PGC-S-0140-Declaration for formal fputs found in prototype function definition (/usr/include/stdio.h: 254)
PGC-S-0070-fputs is not a dummy argument (/usr/include/stdio.h: 254)
PGC-S-0140-Declaration for formal fread found in prototype function definition (/usr/include/stdio.h: 255)
PGC-S-0070-fread is not a dummy argument (/usr/include/stdio.h: 255)
PGC-S-0037-Syntax error: Recovery attempted by deleting typedef id __DARWIN_ALIAS (/usr/include/stdio.h: 257)
PGC-S-0069-Dummy parameter specification not allowed here (/usr/include/stdio.h: 257)
PGC-S-0082-Function returning array not allowed (/usr/include/stdio.h: 257)
PGC-S-0140-Declaration for formal freopen found in prototype function definition (/usr/include/stdio.h: 257)
PGC-F-0008-Error limit exceeded (/usr/include/stdio.h: 257)
PGC/x86-64 OSX 14.3-0: compilation aborted

  1. Whether if it has to be a admin, just can install Free PGI on mac?

  2. And it looked like there were certain system/Xcode issues on the mac. How to fix these sort of issues?

Thanks

Jerry

Jerry,

You probably can install Free PGI somewhere else other than /Applications directory but it will not work properly.

The launch_pgi.sh/csh are designed to work under /Applications. The error you get from invoking pgcc is ue to the environment variables are not set correctly by launch_pgi. You might be able to find a workaround by looking in the launch_pgi.sh/csh script and set the environment accordingly.

Hongyon

i’ve installed the PG suit in a non-standard location and it works just fine.

check you env paths.