On Apr 19, 2010, at 8:45 AM, Jeff Squyres wrote:

On Apr 19, 2010, at 9:30 AM, Paul Cizmas wrote:

I do note that the compile command line is:

/bin/sh ../../../libtool   --mode=compile /Applications/Absoft11.0/
bin/f90 -I../../../ompi/include -I../../../ompi/include -p. -I. -
I../../../ompi/mpi/f90  -m64 -lU77 -c -o mpi.lo mpi.f90

Do you have your .bashrc configured such that it is run for /bin/sh
as well?  (I'm a tcsh user; forgive if this is a dumb question)

I do not know this!!!  How can I check it?

Try this:

$ cat > testme <<EOF
#!/bin/sh
env | grep ABSOFT
exit 0
EOF
$ chmod +x testme
$ ./testme
ABSOFT=<your value>
$ /bin/sh ./testme
ABSOFT=<your value>


It does work properly.

Confirm that this works.  If it does, try this:

$ cat > Makefile <<EOF
all:
<tab>./testme
EOF
$ make
./testme
ABSOFT=<your value>

It does work properly.

Can you see if that works?

It does if I

export ABSOFT=foo

but not if I

ABSOFT=foo

For example:

bash-3.2$ ABSOFT=foo
bash-3.2$ ./testme
bash-3.2$ export ABSOFT=foo
bash-3.2$ ./testme
ABSOFT=foo
bash-3.2$

Here there was a difference - it did work for both cases:

~$ ABSOFT=foo
~$ testme
ABSOFT=foo
~$ export ABSOFT=foo
~$ testme
ABSOFT=foo
~$

Thank you,
Paul



--
Jeff Squyres
jsquy...@cisco.com
For corporate legal information go to:
http://www.cisco.com/web/about/doing_business/legal/cri/

_______________________________________________
users mailing list
us...@open-mpi.org
http://www.open-mpi.org/mailman/listinfo.cgi/users

Reply via email to