PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

Command not found

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
FedericoC



Joined: 31 Jan 2013
Posts: 2

PostPosted: Thu Jan 31, 2013 4:13 am    Post subject: Command not found Reply with quote

Hi,

I've just donwloaded and installed a trial version of PGI workstation: the installation (Ubuntu 12.10 x64) returned no errors and I can see the files in the standard directory. I've installed the program as root (sudo ./install) and set my license key using the environmental variable (export LM_LICENSE_FILE=path to the .dat folder)

Problem is if I type pgcc (or any other compiler command) the shell returns a "No command found", how's it? Do I need to source the commands? Do something else? Did I miss a step?

Thanks for any advice,

Federico
Back to top
View user's profile
FedericoC



Joined: 31 Jan 2013
Posts: 2

PostPosted: Thu Jan 31, 2013 4:45 am    Post subject: Reply with quote

I stand corrected: I've been able to source the commands, but when I try to compile something (like NetCDF libraries) the ./configure says that the C compiler does not work and cannot create executables...
Back to top
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 6134
Location: The Portland Group Inc.

PostPosted: Thu Jan 31, 2013 10:03 am    Post subject: Reply with quote

Hi FedericoC,

Quote:
Do I need to source the commands? Do something else? Did I miss a step?

The compiler's bin directory needs to be in your PATH environment variable. Please see Chapter 4, Step 3 of the Installation Instruction in: https://www.pgroup.com/doc/pgiinstall.pdf.
Quote:
the ./configure says that the C compiler does not work and cannot create executables...
While this could be caused by many reasons, the first step is to make sure you can compile a simple program, such as the following:
Code:
% cat hello.c
#include <stdio.h>
void main () {
   printf("HELLO\n");
}
% pgcc hello.c
% a.out
HELLO


Let me know if you see any errors. If not, then the problem is with how you have NetCDF configured, for which this guide may be helpful.

Best Regards,
Mat
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group