Page 1 of 1

Adding PATH to .bashrc not working [SOLVED]

Posted: Thu Aug 02, 2012 3:57 am
by mint-o-licious
I'm trying to permanently add blender to my path but can not get it to work...
.bashrc:

Code: Select all

PATH=/usr/local/bin/blender-2.63-linux-glibc27-x86_64:"${PATH}"
PATH=/usr/local/bin/celtx:”${PATH}”
export PATH
executing source ~/.bashrc after change.

celtx works but not blender. Why?

exporting path form terminal works.
export PATH=/usr/local/bin/blender-2.63-linux-glibc27-x86_64

Re: Adding PATH to .bashrc not working

Posted: Thu Aug 02, 2012 5:18 am
by xenopeek
The quotes in the second line are wrong. Those are not quotes from the ASCII character set, but some Unicode extended characters. Probably from copying from a web page or from a office document.

Change them to plain quotes to make it work. I think.

Code: Select all

PATH=/usr/local/bin/blender-2.63-linux-glibc27-x86_64:"${PATH}"
PATH=/usr/local/bin/celtx:"${PATH}"
export PATH

Re: Adding PATH to .bashrc not working

Posted: Thu Aug 02, 2012 5:29 am
by mint-o-licious
Thanks, but that second line works. Its the first, blender, that doesn't work.

Re: Adding PATH to .bashrc not working

Posted: Thu Aug 02, 2012 7:43 am
by Habitual
PATH=$PATH:/usr/local/bin/blender-2.63-linux-glibc27-x86_64

should also work...

Code: Select all

echo "$PATH"
/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/lib/java/bin:/usr/lib/kde4/libexec:/usr/lib/qt/bin:/usr/share/texmf/bin:.:/home/jj/Bin/ec2/bin:/home/jj/Bin
PATH=$PATH:/usr/local/bin/blender-2.63-linux-glibc27-x86_64
echo "$PATH"
/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/lib/java/bin:/usr/lib/kde4/libexec:/usr/lib/qt/bin:/usr/share/texmf/bin:.:/home/jj/Bin/ec2/bin:/home/jj/Bin:/usr/local/bin/blender-2.63-linux-glibc27-x86_64
HTH.

Re: Adding PATH to .bashrc not working

Posted: Thu Aug 02, 2012 8:33 am
by xenopeek
mint-o-licious wrote:Thanks, but that second line works. Its the first, blender, that doesn't work.
I think that because of the error in the second line, you delete your path set in the first line. But Habitual's line should also work. So:

Code: Select all

PATH=$PATH:/usr/local/bin/blender-2.63-linux-glibc27-x86_64
PATH=$PATH:/usr/local/bin/celtx
export PATH

Re: Adding PATH to .bashrc not working

Posted: Thu Aug 02, 2012 8:37 pm
by veggen
Isn't ~/.pam_environment the preferred place to edit environment?
I added something like

Code: Select all

PATH DEFAULT=${PATH}:/path/to/add
(different syntax from the one in .bashrc since this one isn't a script) and works fine.

Re: Adding PATH to .bashrc not working

Posted: Fri Aug 03, 2012 2:10 am
by mint-o-licious
Thank you all.
It was as xenopeek pointed out the second line that broke the first one. Now my paths are working well again.