You're not using bash syntax. It's a mix of cshell and bash. Use export
instead of set.
export AMBERHOME=/path/to/amber10
export PATH=$AMBERHOME/exe:$PATH
Warning-- do not forget the $PATH at the end of the second statement or it
will completely overwrite your path and you won't be able to find any
executables (i.e. vi, rm, mv, etc.)!
Good luck!
Jason Swails
On Thu, Oct 15, 2009 at 8:34 AM, Nicolas Sapay <nicolas.sapay.cermav.cnrs.fr
> wrote:
> Hello,
>
> Did you source your .bashrc or .bash_profile after your modifications? If
> not, you have to:
>
> source .bashrc
>
> Cheers,
> Nicolas
>
>
> Sudeep Narayan Banerjee a écrit :
>
> Dear All,
>>
>> I tried to define the environment variables in .bashrc file, opened a
>> new
>> shell & typed in echo $AMBERHOME...it gave me nothing. I even tried with
>> .bash_profile file but still same output, that's nothing, null. In the
>> Amber10.pdf file its written that "You should then add $AMBERHOME/exe to
>> your
>> PATH." I am defining the line in the same file .bashrc and once again i
>> tried
>> with .bash_profile like
>>
>> set AMBERHOME=/root/amber10
>> PATH=$PATH:$AMBERHOME/exe
>> export AMBERHOME=/root/amber10/
>>
>> After that whenever I am doing cd $AMBERHOME/src it says "bash: cd: /src:
>> No
>> such file or directory". What to do in this case? I am doing from root.
>> Kindly help!
>>
>> Can I install it in CentOS?
>>
>>
>>
>>
>> Best Regards,
>> Sudeep Narayan Banerjee
>> Junior Computer Engineer
>> Email: sudeep.bose.res.in
>> S N Bose National Centre For Basic Sciences
>> Block JD, Sector III
>> Saltlake, Kolkata 700098
>>
>>
>> ---------- Original Message -----------
>> From: Chris Whittleston <csw34.cam.ac.uk>
>> To: AMBER Mailing List <amber.ambermd.org>
>> Sent: Wed, 7 Oct 2009 18:48:18 +0100
>> Subject: Re: [AMBER] Re: Fw: Help required in Amber10 Installation
>>
>>
>>
>>> David is right - you need to use a new shell because .bashrc is only read
>>> in
>>> (and the variables set) when you start a shell. If you want to re-
>>> read .bashrc manually, you can by typing:
>>>
>>> source .bashrc
>>>
>>> then try:
>>>
>>> echo $AMBERHOME
>>>
>>> Chris
>>>
>>> 2009/10/7 Bill Ross <ross.cgl.ucsf.edu>
>>>
>>>
>>>
>>>> In bash, if .bashrc doesn't work, you can try .profile
>>>>
>>>> export AMBERHOME=/some/dir/path
>>>>
>>>> Bill
>>>>
>>>> _______________________________________________
>>>> AMBER mailing list
>>>> AMBER.ambermd.org
>>>> http://lists.ambermd.org/mailman/listinfo/amber
>>>>
>>>>
>>>>
>>> --
>>> Chris Whittleston
>>> Department of Chemistry
>>> University of Cambridge
>>> Lensfield Road, Cambridge, CB2 1EW
>>> Email: csw34.cam.ac.uk
>>> Tel: +44 (0)1223 336423
>>> _______________________________________________
>>> AMBER mailing list
>>> AMBER.ambermd.org
>>> http://lists.ambermd.org/mailman/listinfo/amber
>>>
>>>
>> ------- End of Original Message -------
>>
>>
>> _______________________________________________
>> AMBER mailing list
>> AMBER.ambermd.org
>> http://lists.ambermd.org/mailman/listinfo/amber
>>
>>
>>
>
> _______________________________________________
> AMBER mailing list
> AMBER.ambermd.org
> http://lists.ambermd.org/mailman/listinfo/amber
>
>
--
---------------------------------------
Jason M. Swails
Quantum Theory Project,
University of Florida
Ph.D. Graduate Student
352-392-4032
_______________________________________________
AMBER mailing list
AMBER.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber
Received on Thu Oct 15 2009 - 06:00:05 PDT