Re: [AMBER] PATH/evironment problem on Mac OS X

From: Ben Roberts <ben.roberts.geek.nz>
Date: Fri, 21 Jan 2011 13:18:07 -0500

Hi Gustaf,

On 21/1/2011, at 1:08 p.m., Gustaf Olsson wrote:

> Thanks for you input Ben, sadly; no such luck.
>
> Both the echo and env grep presents AMBERHOME as set correctly, but test still fails!
>
> /usr/local/amber11
> /usr/local/amber11/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
> VCN736:~ guolaa$ cd /usr/local/amber11/test/
> VCN736:test guolaa$ env | grep PATH
> PATH=/usr/local/packmol:/usr/local/amber11/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
> VCN736:test guolaa$ env | grep AMBERHOME
> AMBERHOME=/usr/local/amber11
> VCN736:test guolaa$ sudo make test
> (find . -name '*.dif' -o -name 'profile_mpi' | \
> while read dif ;\
> do \
> rm -f $dif ;\
> done ;\
> )
> rm -f TEST_FAILURES.diff
> Error: AMBERHOME should be defined or else some tests will fail !
> make: *** [is_amberhome_defined] Error 2
> VCN736:test guolaa$
>
> Best regards Gustaf

If you would, try running "cd /usr/local/amber11/test && ./test_amber_serial.sh". That will test $AMBERHOME first thing, and if the latter is not defined it will fail.

Also, where exactly are you setting $AMBERHOME? It may be that the test is starting up as a non-login shell. If it's doing that, setting AMBERHOME in bash_profile or its equivalent may be problematic; bash_profile files are ignored for non-login shells (I think).

-- 
For greater security, I support S/MIME encryption.
_______________________________________________
AMBER mailing list
AMBER.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber
Received on Fri Jan 21 2011 - 10:30:06 PST
Custom Search