PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

Free OpenACC Webinar

PGDBG GUI and environment variables
Goto page Previous  1, 2, 3, 4  Next
 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Debugging and Profiling
View previous topic :: View next topic  
Author Message
mkcolg



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

PostPosted: Mon Jan 11, 2010 10:37 am    Post subject: Reply with quote

Hi Pierre-François,

My only guess at this point is that there's an odd character in your LD_LIBRARY_PATH (maybe a space?) that's causing the problem.

What I'd like you to do is

1) set your LD_LIBRARY_PATH on the command line,
2) echo $LD_LIBRARY_PATH
3) launch pgdbg
4) in the pgdbg Command Window run the command "setenv LD_LIBRARY_PATH".

Please post the output of #2 and #4 and let me know which shell you're using.

Thanks,
Mat
Back to top
View user's profile
PFR



Joined: 23 Dec 2009
Posts: 12

PostPosted: Mon Jan 18, 2010 6:53 am    Post subject: Reply with quote

Matt,
Sorry for the late answer. Here are the outputs you required:
LD_LIBRARY_PATH=/cea/home/ldg/pr604419/lib/:/cea/home/ldg/pr604419/lib/mtspec/libraries/:/cea/home/ldg/pr604419/PROFON/lib:/cea/dase/produitsdase/lib/RHEL_5__x86_64:/usr/lib:/cea/home/ldg/pr604419/lib/fftw/lib:/usr/local/qt4/4.4.1-gcc/lib:/usr/lib/xorg:/usr/lib64/xorg:/usr/local/libre/lib:/usr/local/libre/lib64:/usr/lib64:/usr/local/gmt-4.1.3/lib:/usr/local/jre-1.6.0_12/lib:/usr/local/oracle-client-admin-10g/RHEL_5__x86_64/lib:/usr/local/oracle-client-admin-10g/RHEL_5__x86_64/lib32

Then, from within pgbdg, setenv LD_LIBRARY_PATH returns :
/cea/produits1/pghpf-8.0/linux86-64/8.0-1/bin/../lib

It appears that this path doesn't exist in LD_LIBRARY_PATH.

Thank you for your help.
Pierre-François
Back to top
View user's profile
mkcolg



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

PostPosted: Tue Jan 19, 2010 12:38 pm    Post subject: Reply with quote

Hi Pierre-François,

I sent this on to one of our tool engineers. Unfortunately, he's not able to reproduce the problem either and is as puzzled as I am.

His questions for you are:

Is there is a ".pgdbgrc" file in your home dir or the working directory that is overwriting LD_LIBRARY_PATH?

The pgdbg "driver" is just a /bin/sh shell script. Do you use some bash configuration or environment variable to specify a shell initialization file that might be overwriting the LD_LIBRARY_PATH?

Thanks,
Mat

I have not been able to reproduce it like this, but there may be a way.
[/quote]
Back to top
View user's profile
PFR



Joined: 23 Dec 2009
Posts: 12

PostPosted: Thu Jan 21, 2010 4:08 am    Post subject: Reply with quote

Hi Matt,
Well, I do happen to have a .bashrc in my home dir that adds relevant paths to my LD_LIBRARY_PATH. However, I could not find a .pgdbgrc in either my home directory or my working directory.
Do you think the pgdbg shell scripts doesn't see my own environment variables?

Thanks for your help.
Pierre-François
Back to top
View user's profile
mkcolg



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

PostPosted: Thu Jan 21, 2010 1:34 pm    Post subject: Reply with quote

Hi Pierre-François,

This just reminded me of a time several years ago when I wrote script to launch an application. It worked fine when I ran it from the command line but failed when I put it into a crontab. Like you, it failed because my LD_LIBRARY_PATH wasn't being set.

It turned out that I had added my "setenv LD_LIBRARY_PATH ..." (I use csh) after the following code in my .cshrc file:
Code:
  ##
  ## Exit if not interactive
  ##

if (! $?prompt) then
        exit $status
endif


In other words, since my cron job was not interactive, everything after this point in the script was not being set. Could the same thing be happening here?

- Mat
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Debugging and Profiling All times are GMT - 7 Hours
Goto page Previous  1, 2, 3, 4  Next
Page 2 of 4

 
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