hsi544
April 12, 2014, 4:41pm
1
Hi,
I’ve installed free PGI on my machine but it does not seem to work. I keep getting the message “PGI has detected a configuration problem. You must first agree to the Xcode license before using Free PGI. To agree type, sudo xcodebuild -license in any Terminal window and then restart Free PGI”. I’ve run “sudo xcodebuild -license” but this does not seem to work as I keep getting the error message.
Could you please help ?
Cheers,
Tarik
Hi Tarik,
Did you install Xcode command line tools yet? Please following instruction how to get it installed at:
http://www.pgroup.com/products/freepgi/freepgi_install/
Hongyon
Hi,
I have same problem, too.
I have already agree the Xcode license, and installed the command-line tool
But still got same messages.
Could you help ?
Sincerely
CY
Hi CY,
Is this FreePGI or the PGI Workstation? If this is PGI Workstation, you may need to reinstall it again after licensing agreement.
To make sure it is system-wide, please do:
% sudo xcodebuild -license
Also, what does the following command give you:
% xcode-select --print-path
We expect:
/Applications/Xcode.app/Contents/Developer
Hongyon
Hi, Hongyon:
It’s FreePGI. and follow the step u provided:
I got:
dhcp-168-105-87-133:opt kazami$ xcode-select --print-path
/Applications/Xcode.app/Contents/Developer
But still got same messages.
Do u know why?
how can I skip this?
Because I do everything as mention in Install guide.
Sincerely
CY
hongyon2:
Hi CY,
Is this FreePGI or the PGI Workstation? If this is PGI Workstation, you may need to reinstall it again after licensing agreement.
To make sure it is system-wide, please do:
% sudo xcodebuild -license
Also, what does the following command give you:
% xcode-select --print-path
We expect:
/Applications/Xcode.app/Contents/Developer
Hongyon
CY,
I assume Free PGI is installed in /Applications directory?
There is a workaround script in the bin directory. Can you run and let us know what error message you will get(csh):
%source /Applications/Free\ PGI.app/Contents/Resources/pgi/osx86-64/14.3/bin/launch_pgi.csh
(bash):
%source /Applications/Free\ PGI.app/Contents/Resources/pgi/osx86-64/14.3/bin/launch_pgi.sh
What is your OS and Xcode version?
Hongyon
Hi, HongYon
as u suggested, I type the following command in my terminal:
source /Applications/Free\ PGI.app/Contents/Resources/pgi/osx86-64/14.3/bin/launch_pgi.sh
Finally, I didn’t get any error messages.
my terminal window will become blue, and after type “pgf90 -V”
I got:
dhcp-168-105-87-133:opt kazami$ pgf90 -V
pgf90 14.7-0 $__TEMP_PGI_OEM_INFO $INFOTPVAL
The Portland Group - PGI Compilers and Tools
Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved.
dhcp-168-105-87-133:opt kazami$ pgcc -V
pgcc 14.7-0 $__TEMP_PGI_OEM_INFO $INFOTPVAL
The Portland Group - PGI Compilers and Tools
Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved.
But, I still cannot launch FreePGI by application “Free\ PGI”
still ask “Xcode license agreement”
My OS: OSX 10.7.5
Xcode: 4.6.3
Sincerely
CY
Can you post your environment variables?
%env |grep PGI_
Hongyon
Here:
dhcp-168-105-87-133:opt kazami$ env |grep PGI_
PGI_LOCALDEFS=PGI_4XC
PGI_GCCINC=/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2/lib/gcc/i686-apple-darwin11/4.2.1/include
PGI_PGI_PATH=/Applications/Free PGI.app/Contents/Resources
PGI_OEM_INFO=64-bit target on Apple OS/X developer
PGI_GCCVERSION=40201
PGI_MINOSX=10.7.5
PGI_GCCDIR64=/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2/lib/gcc/i686-apple-darwin11/4.2.1/x86_64
PGI_ISCLANG31=402
PGI_HASGCC_EH=1
PGI_GCCDIR=/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2/lib/gcc/i686-apple-darwin11/4.2.1
PGI_MINOSXNUM=107
CY
CY,
The environment looks fine to me. Are you saying after you launch the script - launch_pgi.csh/sh, you still cannot use the compiler in that same Terminal?
You are right that you cannot run the App on 10.7.x OS. The issue has to do how we check for Xcode licensing agreement. But a workaround for now it to open up a Terminal, run the script, then you should be able to use the compiler from there.
We will try to fix the issue in the next release.
Hongyon
Hi, HongYon
After launch the script, I can use PGI in the same terminal window.
Just cannot start it from App. Because the App always complain about “I don’t agree the Xcode license agreement”
My OSX is 10.7.5, I have no idea about this issue.
Btw, thanks a lot for your help~ :)
Sincerely
CY