| View previous topic :: View next topic |
| Author |
Message |
mkcolg
Joined: 30 Jun 2004 Posts: 5001 Location: The Portland Group Inc.
|
Posted: Mon Jan 11, 2010 10:37 am Post subject: |
|
|
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 |
|
 |
PFR
Joined: 23 Dec 2009 Posts: 12
|
Posted: Mon Jan 18, 2010 6:53 am Post subject: |
|
|
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 |
|
 |
mkcolg
Joined: 30 Jun 2004 Posts: 5001 Location: The Portland Group Inc.
|
Posted: Tue Jan 19, 2010 12:38 pm Post subject: |
|
|
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 |
|
 |
PFR
Joined: 23 Dec 2009 Posts: 12
|
Posted: Thu Jan 21, 2010 4:08 am Post subject: |
|
|
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 |
|
 |
mkcolg
Joined: 30 Jun 2004 Posts: 5001 Location: The Portland Group Inc.
|
Posted: Thu Jan 21, 2010 1:34 pm Post subject: |
|
|
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 |
|
 |
|